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.248.26 == '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} = 906910 ${VIM_NAME} SEPARATOR=_ ${vim_name_prefix} ${rand} Catenates the given items together and returns the resulted string. ${VIM_NAME} = basic01_906910 ${VIM_NAME} Makes a variable available everywhere within the scope of the current suite. ${VIM_NAME} = basic01_906910 ${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_906910 --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_906910 --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_906910 --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} = f357b939-da5e-404e-a140-3be5a2123d37 ${stdout} Logs the given message with the given level. f357b939-da5e-404e-a140-3be5a2123d37 ${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} = f357b939-da5e-404e-a140-3be5a2123d37 ${CREATED_VIM_ACCOUNT_ID} Makes a variable available everywhere within the scope of the current suite. ${CREATED_VIM_ACCOUNT_ID} = f357b939-da5e-404e-a140-3be5a2123d37 ${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_906910 " | 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_906910 " | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = f357b939-da5e-404e-a140-3be5a2123d37 ${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} = f357b939-da5e-404e-a140-3be5a2123d37 ${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=f357b939-da5e-404e-a140-3be5a2123d37 ${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=f357b939-da5e-404e-a140-3be5a2123d37 ${param_name} = vim_account_id ${param_value} = f357b939-da5e-404e-a140-3be5a2123d37 ${match},${param_name},${param_value} Logs the given message with the given level. vim_account_id=f357b939-da5e-404e-a140-3be5a2123d37,vim_account_id,f357b939-da5e-404e-a140-3be5a2123d37 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = vim_account_id="f357b939-da5e-404e-a140-3be5a2123d37", ${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.248.26:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f3539b055a0>, 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.248.26:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%22f357b939-da5e-404e-a140-3be5a2123d37%22,%7D path_url=/api/v1/query?query=osm_vim_status%7Bvim_account_id=%22f357b939-da5e-404e-a140-3be5a2123d37%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.248.26:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%22f357b939-da5e-404e-a140-3be5a2123d37%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 14 Apr 2024 01:32:48 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=f357b939-da5e-404e-a140-3be5a2123d37 ${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=f357b939-da5e-404e-a140-3be5a2123d37 ${param_name} = vim_account_id ${param_value} = f357b939-da5e-404e-a140-3be5a2123d37 ${match},${param_name},${param_value} Logs the given message with the given level. vim_account_id=f357b939-da5e-404e-a140-3be5a2123d37,vim_account_id,f357b939-da5e-404e-a140-3be5a2123d37 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = vim_account_id="f357b939-da5e-404e-a140-3be5a2123d37", ${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.248.26:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f3539b04880>, 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.248.26:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%22f357b939-da5e-404e-a140-3be5a2123d37%22,%7D path_url=/api/v1/query?query=osm_vim_status%7Bvim_account_id=%22f357b939-da5e-404e-a140-3be5a2123d37%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.248.26:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%22f357b939-da5e-404e-a140-3be5a2123d37%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 14 Apr 2024 01:33:03 GMT', 'Content-Length': '87'} body={"status":"success","data":{"resultType":"vector","result":[]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': []}} ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [] ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 0 ${results} = 0 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> Metric osm_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=f357b939-da5e-404e-a140-3be5a2123d37 ${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=f357b939-da5e-404e-a140-3be5a2123d37 ${param_name} = vim_account_id ${param_value} = f357b939-da5e-404e-a140-3be5a2123d37 ${match},${param_name},${param_value} Logs the given message with the given level. vim_account_id=f357b939-da5e-404e-a140-3be5a2123d37,vim_account_id,f357b939-da5e-404e-a140-3be5a2123d37 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = vim_account_id="f357b939-da5e-404e-a140-3be5a2123d37", ${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.248.26:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f3539b06470>, 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.248.26:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%22f357b939-da5e-404e-a140-3be5a2123d37%22,%7D path_url=/api/v1/query?query=osm_vim_status%7Bvim_account_id=%22f357b939-da5e-404e-a140-3be5a2123d37%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.248.26:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%22f357b939-da5e-404e-a140-3be5a2123d37%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 14 Apr 2024 01:33:18 GMT', 'Content-Length': '87'} body={"status":"success","data":{"resultType":"vector","result":[]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': []}} ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [] ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 0 ${results} = 0 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> Metric osm_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=f357b939-da5e-404e-a140-3be5a2123d37 ${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=f357b939-da5e-404e-a140-3be5a2123d37 ${param_name} = vim_account_id ${param_value} = f357b939-da5e-404e-a140-3be5a2123d37 ${match},${param_name},${param_value} Logs the given message with the given level. vim_account_id=f357b939-da5e-404e-a140-3be5a2123d37,vim_account_id,f357b939-da5e-404e-a140-3be5a2123d37 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = vim_account_id="f357b939-da5e-404e-a140-3be5a2123d37", ${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.248.26:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f3539b52590>, 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.248.26:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%22f357b939-da5e-404e-a140-3be5a2123d37%22,%7D path_url=/api/v1/query?query=osm_vim_status%7Bvim_account_id=%22f357b939-da5e-404e-a140-3be5a2123d37%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.248.26:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%22f357b939-da5e-404e-a140-3be5a2123d37%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 14 Apr 2024 01:33:33 GMT', 'Content-Length': '195'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_vim_status","job":"airflow_osm_vim_status_f357b939-da5e-404e-a140-3be5a2123d37","vim_account_id":"f357b939-da5e-404e-a140-3be5a2123d37"},"value":[1713058413.641,"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_f357b939-da5e-404e-a140-3be5a2123d37', 'vim_account_id': 'f35... ${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_f357b939-da5e-404e-a140-3be5a2123d37', 'vim_account_id': 'f357b939-da5e-404e-a140-3be5a2123d37'}, 'value': [1713058413.641, '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_906910 " | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = f357b939-da5e-404e-a140-3be5a2123d37 ${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} = f357b939-da5e-404e-a140-3be5a2123d37 ${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 f357b939-da5e-404e-a140-3be5a2123d37 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 f357b939-da5e-404e-a140-3be5a2123d37 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 dac5dd14-5749-49c4-a4f9-69e5b5f3d4bb ${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} = dac5dd14-5749-49c4-a4f9-69e5b5f3d4bb ${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 affd54b5-ab55-41a0-87c2-45b7b1737fd9 ${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} = affd54b5-ab55-41a0-87c2-45b7b1737fd9 ${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} = 9b66ef4d-7631-4a62-b61e-316706a2fd42 ${stdout} Logs the given message with the given level. 9b66ef4d-7631-4a62-b61e-316706a2fd42 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 9b66ef4d-7631-4a62-b61e-316706a2fd42 ${ns_id} Logs the given message with the given level. 9b66ef4d-7631-4a62-b61e-316706a2fd42 ${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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ ${rc} ${stdout} osm ns-list --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 | 9b66ef4d-7631-4a62-b61e-316706a2fd42 | 2024-04-14T01:33:42 | BUILDING | INSTANTIATING (d996f585-4c80-4cc9-a2f9-6ea6baaf7862) | N/A | +------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 9b66ef4d-7631-4a62-b61e-316706a2fd42 | 2024-04-14T01:33:42 | BUILDING | INSTANTIATING (d996f585-4c80-4cc9-a2f9-6ea6baaf7862) | N/A | +------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-----------------------------------+ | 9e18130d-f276-46b2-a91b-763787b47f05 | basic_05_instant-vnf-ubuntu_cloudinit-vnf-VM-0 | ACTIVE | osm-ext=172.21.248.152 | ubuntu18.04 | ubuntu_cloudinit-vnf-VM-vnf-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-----------------------------------+ ${rc} ${stdout} osm ns-list --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 | 9b66ef4d-7631-4a62-b61e-316706a2fd42 | 2024-04-14T01:33:42 | BUILDING | INSTANTIATING (d996f585-4c80-4cc9-a2f9-6ea6baaf7862) | N/A | +------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 9b66ef4d-7631-4a62-b61e-316706a2fd42 | 2024-04-14T01:33:42 | BUILDING | INSTANTIATING (d996f585-4c80-4cc9-a2f9-6ea6baaf7862) | N/A | +------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-----------------------------------+ | 6afc5119-3b7b-4da9-a772-4abcebc8a61e | basic_22-3-simple_provides-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | f007c67a-87e6-4834-8620-80260ce99175 | basic_22-3-simple_requires-0 | ACTIVE | osm-ext=172.21.248.142 | ubuntu18.04 | simple_requires-1-1-flv | | fe6815ff-ee69-4d2a-959d-48e12a09b841 | basic_22-2-simple_provides-0 | ACTIVE | osm-ext=172.21.248.144 | ubuntu18.04 | simple_requires-1-1-flv | | 615fa4b3-65b6-4764-86e7-b943dce9ec0a | basic_22-2-simple_requires-0 | ACTIVE | osm-ext=172.21.249.228 | ubuntu18.04 | simple_requires-1-1-flv | | 999921af-4a67-44ef-b2fb-5fcf28951c34 | basic_22-1-simple_provides-0 | ACTIVE | osm-ext=172.21.248.209 | ubuntu18.04 | simple_requires-1-1-flv | | c4bbb23e-2b50-4cf4-9e2d-89d4b0f672b2 | basic_22-1-simple_requires_kdu-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu18.04 | simple_requires-1-1-flv | | dd814232-ff7b-4d7b-b3c4-45fa01eb8425 | basic_22-1-simple_requires-0 | ACTIVE | osm-ext=172.21.249.138 | ubuntu18.04 | simple_requires-1-1-flv | | 9e18130d-f276-46b2-a91b-763787b47f05 | basic_05_instant-vnf-ubuntu_cloudinit-vnf-VM-0 | ACTIVE | osm-ext=172.21.248.152 | ubuntu18.04 | ubuntu_cloudinit-vnf-VM-vnf-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-----------------------------------+ ${rc} ${stdout} osm ns-list --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 | 9b66ef4d-7631-4a62-b61e-316706a2fd42 | 2024-04-14T01:33:42 | 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 | +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-----------------------------------+ | 6afc5119-3b7b-4da9-a772-4abcebc8a61e | basic_22-3-simple_provides-0 | ACTIVE | osm-ext=172.21.248.19 | ubuntu18.04 | simple_requires-1-1-flv | | f007c67a-87e6-4834-8620-80260ce99175 | basic_22-3-simple_requires-0 | ACTIVE | osm-ext=172.21.248.142 | ubuntu18.04 | simple_requires-1-1-flv | | fe6815ff-ee69-4d2a-959d-48e12a09b841 | basic_22-2-simple_provides-0 | ACTIVE | osm-ext=172.21.248.144 | ubuntu18.04 | simple_requires-1-1-flv | | 615fa4b3-65b6-4764-86e7-b943dce9ec0a | basic_22-2-simple_requires-0 | ACTIVE | osm-ext=172.21.249.228 | ubuntu18.04 | simple_requires-1-1-flv | | 999921af-4a67-44ef-b2fb-5fcf28951c34 | basic_22-1-simple_provides-0 | ACTIVE | osm-ext=172.21.248.209 | ubuntu18.04 | simple_requires-1-1-flv | | c4bbb23e-2b50-4cf4-9e2d-89d4b0f672b2 | basic_22-1-simple_requires_kdu-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu18.04 | simple_requires-1-1-flv | | dd814232-ff7b-4d7b-b3c4-45fa01eb8425 | basic_22-1-simple_requires-0 | ACTIVE | osm-ext=172.21.249.138 | ubuntu18.04 | simple_requires-1-1-flv | | 9e18130d-f276-46b2-a91b-763787b47f05 | basic_05_instant-vnf-ubuntu_cloudinit-vnf-VM-0 | ACTIVE | osm-ext=172.21.248.152 | ubuntu18.04 | ubuntu_cloudinit-vnf-VM-vnf-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-----------------------------------+ ${rc} ${stdout} osm ns-list --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 | 9b66ef4d-7631-4a62-b61e-316706a2fd42 | 2024-04-14T01:33:42 | 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} = 9b66ef4d-7631-4a62-b61e-316706a2fd42 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 9b66ef4d-7631-4a62-b61e-316706a2fd42 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 9b66ef4d-7631-4a62-b61e-316706a2fd42 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.152 ${stdout} Logs the given message with the given level. 172.21.248.152 ${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.152 ${ip_addr} Logs the given message with the given level. 172.21.248.152 ${VNF_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. ${VNF_IP_ADDR} = 172.21.248.152 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.152: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 14 01:35:26 UTC 2024 System load: 0.16 Processes: 97 Usage of /: 11.5% of 9.52GB Users logged in: 0 Memory usage: 6% IP address for ens3: 172.21.248.152 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} = +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-----------------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-----------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-----------------------------------+ | 6afc5119-3b7b-4da9-a772-4abcebc8a61e | basic_22-3-simple_provides-0 | ACTIVE | osm-ext=172.21.248.19 | ubuntu18.04 | simple_requires-1-1-flv | | f007c67a-87e6-4834-8620-80260ce99175 | basic_22-3-simple_requires-0 | ACTIVE | osm-ext=172.21.248.142 | ubuntu18.04 | simple_requires-1-1-flv | | fe6815ff-ee69-4d2a-959d-48e12a09b841 | basic_22-2-simple_provides-0 | ACTIVE | osm-ext=172.21.248.144 | ubuntu18.04 | simple_requires-1-1-flv | | 615fa4b3-65b6-4764-86e7-b943dce9ec0a | basic_22-2-simple_requires-0 | ACTIVE | osm-ext=172.21.249.228 | ubuntu18.04 | simple_requires-1-1-flv | | 999921af-4a67-44ef-b2fb-5fcf28951c34 | basic_22-1-simple_provides-0 | ACTIVE | osm-ext=172.21.248.209 | ubuntu18.04 | simple_requires-1-1-flv | | c4bbb23e-2b50-4cf4-9e2d-89d4b0f672b2 | basic_22-1-simple_requires_kdu-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu18.04 | simple_requires-1-1-flv | | dd814232-ff7b-4d7b-b3c4-45fa01eb8425 | basic_22-1-simple_requires-0 | ACTIVE | osm-ext=172.21.249.138 | ubuntu18.04 | simple_requires-1-1-flv | | 9e18130d-f276-46b2-a91b-763787b47f05 | basic_05_instant-vnf-ubuntu_cloudinit-vnf-VM-0 | ACTIVE | osm-ext=172.21.248.152 | ubuntu18.04 | ubuntu_cloudinit-vnf-VM-vnf-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-----------------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_05_instantiation_params_cloud_init 2>&1'. ${rc} = 0 ${stdout} = basic_05_instantiation_params_cloud_init ${rc},${stdout} Logs the given message with the given level. 0,basic_05_instantiation_params_cloud_init ${stdout} ${ns} Fails if objects are equal after converting them to strings. basic_05_instantiation_params_cloud_init == basic_05_instantiation_params_cloud_init ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ | 6afc5119-3b7b-4da9-a772-4abcebc8a61e | basic_22-3-simple_provides-0 | ACTIVE | osm-ext=172.21.248.19 | ubuntu18.04 | simple_requires-1-1-flv | | f007c67a-87e6-4834-8620-80260ce99175 | basic_22-3-simple_requires-0 | ACTIVE | osm-ext=172.21.248.142 | ubuntu18.04 | simple_requires-1-1-flv | | fe6815ff-ee69-4d2a-959d-48e12a09b841 | basic_22-2-simple_provides-0 | ACTIVE | osm-ext=172.21.248.144 | ubuntu18.04 | simple_requires-1-1-flv | | 615fa4b3-65b6-4764-86e7-b943dce9ec0a | basic_22-2-simple_requires-0 | ACTIVE | osm-ext=172.21.249.228 | ubuntu18.04 | simple_requires-1-1-flv | | 999921af-4a67-44ef-b2fb-5fcf28951c34 | basic_22-1-simple_provides-0 | ACTIVE | osm-ext=172.21.248.209 | ubuntu18.04 | simple_requires-1-1-flv | | c4bbb23e-2b50-4cf4-9e2d-89d4b0f672b2 | basic_22-1-simple_requires_kdu-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu18.04 | simple_requires-1-1-flv | | dd814232-ff7b-4d7b-b3c4-45fa01eb8425 | basic_22-1-simple_requires-0 | ACTIVE | osm-ext=172.21.249.138 | ubuntu18.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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.248.26 == '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} = 35eee91f-b416-4763-81dd-424c5da2fc96 ${stdout} Logs the given message with the given level. 35eee91f-b416-4763-81dd-424c5da2fc96 ${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} = 35eee91f-b416-4763-81dd-424c5da2fc96 ${created_vim_account_id} Logs the given message with the given level. 35eee91f-b416-4763-81dd-424c5da2fc96 ${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} = 35eee91f-b416-4763-81dd-424c5da2fc96 ${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} = 35eee91f-b416-4763-81dd-424c5da2fc96 ${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=35eee91f-b416-4763-81dd-424c5da2fc96 ${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=35eee91f-b416-4763-81dd-424c5da2fc96 ${param_name} = vim_account_id ${param_value} = 35eee91f-b416-4763-81dd-424c5da2fc96 ${match},${param_name},${param_value} Logs the given message with the given level. vim_account_id=35eee91f-b416-4763-81dd-424c5da2fc96,vim_account_id,35eee91f-b416-4763-81dd-424c5da2fc96 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = vim_account_id="35eee91f-b416-4763-81dd-424c5da2fc96", ${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.248.26:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f3538c80c40>, 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.248.26:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%2235eee91f-b416-4763-81dd-424c5da2fc96%22,%7D path_url=/api/v1/query?query=osm_vim_status%7Bvim_account_id=%2235eee91f-b416-4763-81dd-424c5da2fc96%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.248.26:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%2235eee91f-b416-4763-81dd-424c5da2fc96%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 14 Apr 2024 01:35: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=35eee91f-b416-4763-81dd-424c5da2fc96 ${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=35eee91f-b416-4763-81dd-424c5da2fc96 ${param_name} = vim_account_id ${param_value} = 35eee91f-b416-4763-81dd-424c5da2fc96 ${match},${param_name},${param_value} Logs the given message with the given level. vim_account_id=35eee91f-b416-4763-81dd-424c5da2fc96,vim_account_id,35eee91f-b416-4763-81dd-424c5da2fc96 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = vim_account_id="35eee91f-b416-4763-81dd-424c5da2fc96", ${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.248.26:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f3538c56a10>, 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.248.26:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%2235eee91f-b416-4763-81dd-424c5da2fc96%22,%7D path_url=/api/v1/query?query=osm_vim_status%7Bvim_account_id=%2235eee91f-b416-4763-81dd-424c5da2fc96%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.248.26:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%2235eee91f-b416-4763-81dd-424c5da2fc96%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 14 Apr 2024 01:36: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=35eee91f-b416-4763-81dd-424c5da2fc96 ${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=35eee91f-b416-4763-81dd-424c5da2fc96 ${param_name} = vim_account_id ${param_value} = 35eee91f-b416-4763-81dd-424c5da2fc96 ${match},${param_name},${param_value} Logs the given message with the given level. vim_account_id=35eee91f-b416-4763-81dd-424c5da2fc96,vim_account_id,35eee91f-b416-4763-81dd-424c5da2fc96 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = vim_account_id="35eee91f-b416-4763-81dd-424c5da2fc96", ${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.248.26:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f3538cb0460>, 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.248.26:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%2235eee91f-b416-4763-81dd-424c5da2fc96%22,%7D path_url=/api/v1/query?query=osm_vim_status%7Bvim_account_id=%2235eee91f-b416-4763-81dd-424c5da2fc96%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.248.26:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%2235eee91f-b416-4763-81dd-424c5da2fc96%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 14 Apr 2024 01:36:30 GMT', 'Content-Length': '196'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_vim_status","job":"airflow_osm_vim_status_35eee91f-b416-4763-81dd-424c5da2fc96","vim_account_id":"35eee91f-b416-4763-81dd-424c5da2fc96"},"value":[1713058590.003,"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_35eee91f-b416-4763-81dd-424c5da2fc96', 'vim_account_id': '35e... ${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_35eee91f-b416-4763-81dd-424c5da2fc96', 'vim_account_id': '35eee91f-b416-4763-81dd-424c5da2fc96'}, 'value': [1713058590.003, '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 5815216d-23a2-41e2-9464-4b3859cacb99 ${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} = 5815216d-23a2-41e2-9464-4b3859cacb99 ${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 203c8eb9-cf40-4b5d-805d-203eae207b76 ${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} = 203c8eb9-cf40-4b5d-805d-203eae207b76 ${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} = f55bb6b4-60a2-42eb-a18b-7f423c5db2c5 ${stdout} Logs the given message with the given level. f55bb6b4-60a2-42eb-a18b-7f423c5db2c5 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = f55bb6b4-60a2-42eb-a18b-7f423c5db2c5 ${ns_id} Logs the given message with the given level. f55bb6b4-60a2-42eb-a18b-7f423c5db2c5 ${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 | +--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ | 6afc5119-3b7b-4da9-a772-4abcebc8a61e | basic_22-3-simple_provides-0 | ACTIVE | osm-ext=172.21.248.19 | ubuntu18.04 | simple_requires-1-1-flv | | f007c67a-87e6-4834-8620-80260ce99175 | basic_22-3-simple_requires-0 | ACTIVE | osm-ext=172.21.248.142 | ubuntu18.04 | simple_requires-1-1-flv | | fe6815ff-ee69-4d2a-959d-48e12a09b841 | basic_22-2-simple_provides-0 | ACTIVE | osm-ext=172.21.248.144 | ubuntu18.04 | simple_requires-1-1-flv | | 615fa4b3-65b6-4764-86e7-b943dce9ec0a | basic_22-2-simple_requires-0 | ACTIVE | osm-ext=172.21.249.228 | ubuntu18.04 | simple_requires-1-1-flv | | 999921af-4a67-44ef-b2fb-5fcf28951c34 | basic_22-1-simple_provides-0 | ACTIVE | osm-ext=172.21.248.209 | ubuntu18.04 | simple_requires-1-1-flv | | c4bbb23e-2b50-4cf4-9e2d-89d4b0f672b2 | basic_22-1-simple_requires_kdu-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu18.04 | simple_requires-1-1-flv | | dd814232-ff7b-4d7b-b3c4-45fa01eb8425 | basic_22-1-simple_requires-0 | ACTIVE | osm-ext=172.21.249.138 | ubuntu18.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | f55bb6b4-60a2-42eb-a18b-7f423c5db2c5 | 2024-04-14T01:36:35 | BUILDING | INSTANTIATING (ec093d67-4a40-4bd1-b577-7ab315d16377) | N/A | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | f55bb6b4-60a2-42eb-a18b-7f423c5db2c5 | 2024-04-14T01:36:35 | BUILDING | INSTANTIATING (ec093d67-4a40-4bd1-b577-7ab315d16377) | N/A | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ | a0a6ea5c-b42c-4ffd-9971-b318e9a44eac | basic_08_disable-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | f325e6ee-a109-4d20-8cb1-018a21a6edb3 | basic_08_disable-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 9e4eb42e-648b-413f-a468-520922039360 | basic_08_disable-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | b49d94a2-428b-42b2-88a7-5fa91a1a1fb9 | basic_08_disable-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 6afc5119-3b7b-4da9-a772-4abcebc8a61e | basic_22-3-simple_provides-0 | ACTIVE | osm-ext=172.21.248.19 | ubuntu18.04 | simple_requires-1-1-flv | | f007c67a-87e6-4834-8620-80260ce99175 | basic_22-3-simple_requires-0 | ACTIVE | osm-ext=172.21.248.142 | ubuntu18.04 | simple_requires-1-1-flv | | fe6815ff-ee69-4d2a-959d-48e12a09b841 | basic_22-2-simple_provides-0 | ACTIVE | osm-ext=172.21.248.144 | ubuntu18.04 | simple_requires-1-1-flv | | 615fa4b3-65b6-4764-86e7-b943dce9ec0a | basic_22-2-simple_requires-0 | ACTIVE | osm-ext=172.21.249.228 | ubuntu18.04 | simple_requires-1-1-flv | | 999921af-4a67-44ef-b2fb-5fcf28951c34 | basic_22-1-simple_provides-0 | ACTIVE | osm-ext=172.21.248.209 | ubuntu18.04 | simple_requires-1-1-flv | | c4bbb23e-2b50-4cf4-9e2d-89d4b0f672b2 | basic_22-1-simple_requires_kdu-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu18.04 | simple_requires-1-1-flv | | dd814232-ff7b-4d7b-b3c4-45fa01eb8425 | basic_22-1-simple_requires-0 | ACTIVE | osm-ext=172.21.249.138 | ubuntu18.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | f55bb6b4-60a2-42eb-a18b-7f423c5db2c5 | 2024-04-14T01:36:35 | BUILDING | INSTANTIATING (ec093d67-4a40-4bd1-b577-7ab315d16377) | N/A | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | f55bb6b4-60a2-42eb-a18b-7f423c5db2c5 | 2024-04-14T01:36:35 | BUILDING | INSTANTIATING (ec093d67-4a40-4bd1-b577-7ab315d16377) | N/A | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+----------------------------------+--------+----------------------------------------------------------------------------------+-------------+-------------------------+ | a0a6ea5c-b42c-4ffd-9971-b318e9a44eac | basic_08_disable-vnf2-dataVM-0 | ACTIVE | basic_08_disable-datanet=192.168.86.208; basic_08_disable-internal=192.168.58.27 | ubuntu20.04 | simple_requires-1-1-flv | | f325e6ee-a109-4d20-8cb1-018a21a6edb3 | basic_08_disable-vnf2-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.58.239; osm-ext=172.21.248.48 | ubuntu20.04 | simple_requires-1-1-flv | | 9e4eb42e-648b-413f-a468-520922039360 | basic_08_disable-vnf1-dataVM-0 | ACTIVE | basic_08_disable-datanet=192.168.86.2; basic_08_disable-internal=192.168.203.78 | ubuntu20.04 | simple_requires-1-1-flv | | b49d94a2-428b-42b2-88a7-5fa91a1a1fb9 | basic_08_disable-vnf1-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.203.170; osm-ext=172.21.249.94 | ubuntu20.04 | simple_requires-1-1-flv | | 6afc5119-3b7b-4da9-a772-4abcebc8a61e | basic_22-3-simple_provides-0 | ACTIVE | osm-ext=172.21.248.19 | ubuntu18.04 | simple_requires-1-1-flv | | f007c67a-87e6-4834-8620-80260ce99175 | basic_22-3-simple_requires-0 | ACTIVE | osm-ext=172.21.248.142 | ubuntu18.04 | simple_requires-1-1-flv | | fe6815ff-ee69-4d2a-959d-48e12a09b841 | basic_22-2-simple_provides-0 | ACTIVE | osm-ext=172.21.248.144 | ubuntu18.04 | simple_requires-1-1-flv | | 615fa4b3-65b6-4764-86e7-b943dce9ec0a | basic_22-2-simple_requires-0 | ACTIVE | osm-ext=172.21.249.228 | ubuntu18.04 | simple_requires-1-1-flv | | 999921af-4a67-44ef-b2fb-5fcf28951c34 | basic_22-1-simple_provides-0 | ACTIVE | osm-ext=172.21.248.209 | ubuntu18.04 | simple_requires-1-1-flv | | c4bbb23e-2b50-4cf4-9e2d-89d4b0f672b2 | basic_22-1-simple_requires_kdu-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu18.04 | simple_requires-1-1-flv | | dd814232-ff7b-4d7b-b3c4-45fa01eb8425 | basic_22-1-simple_requires-0 | ACTIVE | osm-ext=172.21.249.138 | ubuntu18.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------+--------+----------------------------------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | f55bb6b4-60a2-42eb-a18b-7f423c5db2c5 | 2024-04-14T01:36:35 | 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 | +--------------------------------------+----------------------------------+--------+----------------------------------------------------------------------------------+-------------+-------------------------+ | a0a6ea5c-b42c-4ffd-9971-b318e9a44eac | basic_08_disable-vnf2-dataVM-0 | ACTIVE | basic_08_disable-datanet=192.168.86.208; basic_08_disable-internal=192.168.58.27 | ubuntu20.04 | simple_requires-1-1-flv | | f325e6ee-a109-4d20-8cb1-018a21a6edb3 | basic_08_disable-vnf2-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.58.239; osm-ext=172.21.248.48 | ubuntu20.04 | simple_requires-1-1-flv | | 9e4eb42e-648b-413f-a468-520922039360 | basic_08_disable-vnf1-dataVM-0 | ACTIVE | basic_08_disable-datanet=192.168.86.2; basic_08_disable-internal=192.168.203.78 | ubuntu20.04 | simple_requires-1-1-flv | | b49d94a2-428b-42b2-88a7-5fa91a1a1fb9 | basic_08_disable-vnf1-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.203.170; osm-ext=172.21.249.94 | ubuntu20.04 | simple_requires-1-1-flv | | 6afc5119-3b7b-4da9-a772-4abcebc8a61e | basic_22-3-simple_provides-0 | ACTIVE | osm-ext=172.21.248.19 | ubuntu18.04 | simple_requires-1-1-flv | | f007c67a-87e6-4834-8620-80260ce99175 | basic_22-3-simple_requires-0 | ACTIVE | osm-ext=172.21.248.142 | ubuntu18.04 | simple_requires-1-1-flv | | fe6815ff-ee69-4d2a-959d-48e12a09b841 | basic_22-2-simple_provides-0 | ACTIVE | osm-ext=172.21.248.144 | ubuntu18.04 | simple_requires-1-1-flv | | 615fa4b3-65b6-4764-86e7-b943dce9ec0a | basic_22-2-simple_requires-0 | ACTIVE | osm-ext=172.21.249.228 | ubuntu18.04 | simple_requires-1-1-flv | | 999921af-4a67-44ef-b2fb-5fcf28951c34 | basic_22-1-simple_provides-0 | ACTIVE | osm-ext=172.21.248.209 | ubuntu18.04 | simple_requires-1-1-flv | | c4bbb23e-2b50-4cf4-9e2d-89d4b0f672b2 | basic_22-1-simple_requires_kdu-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu18.04 | simple_requires-1-1-flv | | dd814232-ff7b-4d7b-b3c4-45fa01eb8425 | basic_22-1-simple_requires-0 | ACTIVE | osm-ext=172.21.249.138 | ubuntu18.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------+--------+----------------------------------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | f55bb6b4-60a2-42eb-a18b-7f423c5db2c5 | 2024-04-14T01:36:35 | 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} = f55bb6b4-60a2-42eb-a18b-7f423c5db2c5 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = f55bb6b4-60a2-42eb-a18b-7f423c5db2c5 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 | +--------------------------------------+----------------------------------+--------+----------------------------------------------------------------------------------+-------------+-------------------------+ | a0a6ea5c-b42c-4ffd-9971-b318e9a44eac | basic_08_disable-vnf2-dataVM-0 | ACTIVE | basic_08_disable-datanet=192.168.86.208; basic_08_disable-internal=192.168.58.27 | ubuntu20.04 | simple_requires-1-1-flv | | f325e6ee-a109-4d20-8cb1-018a21a6edb3 | basic_08_disable-vnf2-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.58.239; osm-ext=172.21.248.48 | ubuntu20.04 | simple_requires-1-1-flv | | 9e4eb42e-648b-413f-a468-520922039360 | basic_08_disable-vnf1-dataVM-0 | ACTIVE | basic_08_disable-datanet=192.168.86.2; basic_08_disable-internal=192.168.203.78 | ubuntu20.04 | simple_requires-1-1-flv | | b49d94a2-428b-42b2-88a7-5fa91a1a1fb9 | basic_08_disable-vnf1-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.203.170; osm-ext=172.21.249.94 | ubuntu20.04 | simple_requires-1-1-flv | | 6afc5119-3b7b-4da9-a772-4abcebc8a61e | basic_22-3-simple_provides-0 | ACTIVE | osm-ext=172.21.248.19 | ubuntu18.04 | simple_requires-1-1-flv | | f007c67a-87e6-4834-8620-80260ce99175 | basic_22-3-simple_requires-0 | ACTIVE | osm-ext=172.21.248.142 | ubuntu18.04 | simple_requires-1-1-flv | | fe6815ff-ee69-4d2a-959d-48e12a09b841 | basic_22-2-simple_provides-0 | ACTIVE | osm-ext=172.21.248.144 | ubuntu18.04 | simple_requires-1-1-flv | | 615fa4b3-65b6-4764-86e7-b943dce9ec0a | basic_22-2-simple_requires-0 | ACTIVE | osm-ext=172.21.249.228 | ubuntu18.04 | simple_requires-1-1-flv | | 999921af-4a67-44ef-b2fb-5fcf28951c34 | basic_22-1-simple_provides-0 | ACTIVE | osm-ext=172.21.248.209 | ubuntu18.04 | simple_requires-1-1-flv | | c4bbb23e-2b50-4cf4-9e2d-89d4b0f672b2 | basic_22-1-simple_requires_kdu-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu18.04 | simple_requires-1-1-flv | | dd814232-ff7b-4d7b-b3c4-45fa01eb8425 | basic_22-1-simple_requires-0 | ACTIVE | osm-ext=172.21.249.138 | ubuntu18.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | +--------------------------------------+----------------------------------+--------+-----------------------------------------------------------------+-------------+-------------------------+ | a0a6ea5c-b42c-4ffd-9971-b318e9a44eac | basic_08_disable-vnf2-dataVM-0 | ACTIVE | basic_08_disable-internal=192.168.58.27 | ubuntu20.04 | simple_requires-1-1-flv | | f325e6ee-a109-4d20-8cb1-018a21a6edb3 | basic_08_disable-vnf2-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.58.239; osm-ext=172.21.248.48 | ubuntu20.04 | simple_requires-1-1-flv | | 9e4eb42e-648b-413f-a468-520922039360 | basic_08_disable-vnf1-dataVM-0 | ACTIVE | | ubuntu20.04 | simple_requires-1-1-flv | | b49d94a2-428b-42b2-88a7-5fa91a1a1fb9 | basic_08_disable-vnf1-mgmtVM-0 | ACTIVE | | ubuntu20.04 | simple_requires-1-1-flv | | 6afc5119-3b7b-4da9-a772-4abcebc8a61e | basic_22-3-simple_provides-0 | ACTIVE | osm-ext=172.21.248.19 | ubuntu18.04 | simple_requires-1-1-flv | | f007c67a-87e6-4834-8620-80260ce99175 | basic_22-3-simple_requires-0 | ACTIVE | osm-ext=172.21.248.142 | ubuntu18.04 | simple_requires-1-1-flv | | fe6815ff-ee69-4d2a-959d-48e12a09b841 | basic_22-2-simple_provides-0 | ACTIVE | osm-ext=172.21.248.144 | ubuntu18.04 | simple_requires-1-1-flv | | 615fa4b3-65b6-4764-86e7-b943dce9ec0a | basic_22-2-simple_requires-0 | ACTIVE | osm-ext=172.21.249.228 | ubuntu18.04 | simple_requires-1-1-flv | | 999921af-4a67-44ef-b2fb-5fcf28951c34 | basic_22-1-simple_provides-0 | ACTIVE | osm-ext=172.21.248.209 | ubuntu18.04 | simple_requires-1-1-flv | | c4bbb23e-2b50-4cf4-9e2d-89d4b0f672b2 | basic_22-1-simple_requires_kdu-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu18.04 | simple_requires-1-1-flv | | dd814232-ff7b-4d7b-b3c4-45fa01eb8425 | basic_22-1-simple_requires-0 | ACTIVE | osm-ext=172.21.249.138 | ubuntu18.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ | 6afc5119-3b7b-4da9-a772-4abcebc8a61e | basic_22-3-simple_provides-0 | ACTIVE | osm-ext=172.21.248.19 | ubuntu18.04 | simple_requires-1-1-flv | | f007c67a-87e6-4834-8620-80260ce99175 | basic_22-3-simple_requires-0 | ACTIVE | osm-ext=172.21.248.142 | ubuntu18.04 | simple_requires-1-1-flv | | fe6815ff-ee69-4d2a-959d-48e12a09b841 | basic_22-2-simple_provides-0 | ACTIVE | osm-ext=172.21.248.144 | ubuntu18.04 | simple_requires-1-1-flv | | 615fa4b3-65b6-4764-86e7-b943dce9ec0a | basic_22-2-simple_requires-0 | ACTIVE | osm-ext=172.21.249.228 | ubuntu18.04 | simple_requires-1-1-flv | | 999921af-4a67-44ef-b2fb-5fcf28951c34 | basic_22-1-simple_provides-0 | ACTIVE | osm-ext=172.21.248.209 | ubuntu18.04 | simple_requires-1-1-flv | | c4bbb23e-2b50-4cf4-9e2d-89d4b0f672b2 | basic_22-1-simple_requires_kdu-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu18.04 | simple_requires-1-1-flv | | dd814232-ff7b-4d7b-b3c4-45fa01eb8425 | basic_22-1-simple_requires-0 | ACTIVE | osm-ext=172.21.249.138 | ubuntu18.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 b042617d-2dc3-44a1-a5a3-6de9fde9607e ${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} = b042617d-2dc3-44a1-a5a3-6de9fde9607e ${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 9c94ef8d-d0f6-473a-8e1d-61c79303b844 ${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} = 9c94ef8d-d0f6-473a-8e1d-61c79303b844 ${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} = 914ee212-0a2d-404d-ac27-fa8919efb137 ${stdout} Logs the given message with the given level. 914ee212-0a2d-404d-ac27-fa8919efb137 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 914ee212-0a2d-404d-ac27-fa8919efb137 ${ns_id} Logs the given message with the given level. 914ee212-0a2d-404d-ac27-fa8919efb137 ${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 | +--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ | 6afc5119-3b7b-4da9-a772-4abcebc8a61e | basic_22-3-simple_provides-0 | ACTIVE | osm-ext=172.21.248.19 | ubuntu18.04 | simple_requires-1-1-flv | | f007c67a-87e6-4834-8620-80260ce99175 | basic_22-3-simple_requires-0 | ACTIVE | osm-ext=172.21.248.142 | ubuntu18.04 | simple_requires-1-1-flv | | fe6815ff-ee69-4d2a-959d-48e12a09b841 | basic_22-2-simple_provides-0 | ACTIVE | osm-ext=172.21.248.144 | ubuntu18.04 | simple_requires-1-1-flv | | 615fa4b3-65b6-4764-86e7-b943dce9ec0a | basic_22-2-simple_requires-0 | ACTIVE | osm-ext=172.21.249.228 | ubuntu18.04 | simple_requires-1-1-flv | | 999921af-4a67-44ef-b2fb-5fcf28951c34 | basic_22-1-simple_provides-0 | ACTIVE | osm-ext=172.21.248.209 | ubuntu18.04 | simple_requires-1-1-flv | | c4bbb23e-2b50-4cf4-9e2d-89d4b0f672b2 | basic_22-1-simple_requires_kdu-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu18.04 | simple_requires-1-1-flv | | dd814232-ff7b-4d7b-b3c4-45fa01eb8425 | basic_22-1-simple_requires-0 | ACTIVE | osm-ext=172.21.249.138 | ubuntu18.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | 914ee212-0a2d-404d-ac27-fa8919efb137 | 2024-04-14T01:38:45 | BUILDING | INSTANTIATING (5a969fb6-45da-492a-9dac-7336c5afb201) | N/A | +------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 914ee212-0a2d-404d-ac27-fa8919efb137 | 2024-04-14T01:38:45 | BUILDING | INSTANTIATING (5a969fb6-45da-492a-9dac-7336c5afb201) | N/A | +------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | b8601d83-050f-4610-b5b6-931205b4b305 | basic_09_manual_-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.92 | ubuntu20.04 | simple_requires-1-1-flv | | 6afc5119-3b7b-4da9-a772-4abcebc8a61e | basic_22-3-simple_provides-0 | ACTIVE | osm-ext=172.21.248.19 | ubuntu18.04 | simple_requires-1-1-flv | | f007c67a-87e6-4834-8620-80260ce99175 | basic_22-3-simple_requires-0 | ACTIVE | osm-ext=172.21.248.142 | ubuntu18.04 | simple_requires-1-1-flv | | fe6815ff-ee69-4d2a-959d-48e12a09b841 | basic_22-2-simple_provides-0 | ACTIVE | osm-ext=172.21.248.144 | ubuntu18.04 | simple_requires-1-1-flv | | 615fa4b3-65b6-4764-86e7-b943dce9ec0a | basic_22-2-simple_requires-0 | ACTIVE | osm-ext=172.21.249.228 | ubuntu18.04 | simple_requires-1-1-flv | | 999921af-4a67-44ef-b2fb-5fcf28951c34 | basic_22-1-simple_provides-0 | ACTIVE | osm-ext=172.21.248.209 | ubuntu18.04 | simple_requires-1-1-flv | | c4bbb23e-2b50-4cf4-9e2d-89d4b0f672b2 | basic_22-1-simple_requires_kdu-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu18.04 | simple_requires-1-1-flv | | dd814232-ff7b-4d7b-b3c4-45fa01eb8425 | basic_22-1-simple_requires-0 | ACTIVE | osm-ext=172.21.249.138 | ubuntu18.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | 914ee212-0a2d-404d-ac27-fa8919efb137 | 2024-04-14T01:38: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 | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | b8601d83-050f-4610-b5b6-931205b4b305 | basic_09_manual_-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.92 | ubuntu20.04 | simple_requires-1-1-flv | | 6afc5119-3b7b-4da9-a772-4abcebc8a61e | basic_22-3-simple_provides-0 | ACTIVE | osm-ext=172.21.248.19 | ubuntu18.04 | simple_requires-1-1-flv | | f007c67a-87e6-4834-8620-80260ce99175 | basic_22-3-simple_requires-0 | ACTIVE | osm-ext=172.21.248.142 | ubuntu18.04 | simple_requires-1-1-flv | | fe6815ff-ee69-4d2a-959d-48e12a09b841 | basic_22-2-simple_provides-0 | ACTIVE | osm-ext=172.21.248.144 | ubuntu18.04 | simple_requires-1-1-flv | | 615fa4b3-65b6-4764-86e7-b943dce9ec0a | basic_22-2-simple_requires-0 | ACTIVE | osm-ext=172.21.249.228 | ubuntu18.04 | simple_requires-1-1-flv | | 999921af-4a67-44ef-b2fb-5fcf28951c34 | basic_22-1-simple_provides-0 | ACTIVE | osm-ext=172.21.248.209 | ubuntu18.04 | simple_requires-1-1-flv | | c4bbb23e-2b50-4cf4-9e2d-89d4b0f672b2 | basic_22-1-simple_requires_kdu-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu18.04 | simple_requires-1-1-flv | | dd814232-ff7b-4d7b-b3c4-45fa01eb8425 | basic_22-1-simple_requires-0 | ACTIVE | osm-ext=172.21.249.138 | ubuntu18.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | 914ee212-0a2d-404d-ac27-fa8919efb137 | 2024-04-14T01:38: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} = 914ee212-0a2d-404d-ac27-fa8919efb137 ${id} Logs the given message with the given level. 914ee212-0a2d-404d-ac27-fa8919efb137 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} = 914ee212-0a2d-404d-ac27-fa8919efb137 ${stdout} Logs the given message with the given level. 914ee212-0a2d-404d-ac27-fa8919efb137 ${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} = 914ee212-0a2d-404d-ac27-fa8919efb137 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 914ee212-0a2d-404d-ac27-fa8919efb137 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 914ee212-0a2d-404d-ac27-fa8919efb137 | grep 914ee212-0a2d-404d-ac27-fa8919efb137 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = 15b764ce-6e77-4d3f-b2c9-dc3878b50806 ${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} = [ 15b764ce-6e77-4d3f-b2c9-dc3878b50806 ] @{vdur} @{vnfr_list} = [ 15b764ce-6e77-4d3f-b2c9-dc3878b50806 ] ${vnfr_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 15b764ce-6e77-4d3f-b2c9-dc3878b50806 ${VNF_ID} ${vnfr_list}[0] Makes a variable available everywhere within the scope of the current suite. ${VNF_ID} = 15b764ce-6e77-4d3f-b2c9-dc3878b50806 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 15b764ce-6e77-4d3f-b2c9-dc3878b50806 --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} = 4466f7fa-1d6e-4566-8849-bfcf0687af06 ${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 4466f7fa-1d6e-4566-8849-bfcf0687af06 --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 4466f7fa-1d6e-4566-8849-bfcf0687af06 ${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 4466f7fa-1d6e-4566-8849-bfcf0687af06 --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 4466f7fa-1d6e-4566-8849-bfcf0687af06 ${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 4466f7fa-1d6e-4566-8849-bfcf0687af06 --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 4466f7fa-1d6e-4566-8849-bfcf0687af06 --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} = 4466f7fa-1d6e-4566-8849-bfcf0687af06 ${ns_op_id} Logs the given message with the given level. 4466f7fa-1d6e-4566-8849-bfcf0687af06 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 15b764ce-6e77-4d3f-b2c9-dc3878b50806 --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} = c7bab6dd-c52a-4dcd-aea0-c5e7df6ed485 ${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 c7bab6dd-c52a-4dcd-aea0-c5e7df6ed485 --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 c7bab6dd-c52a-4dcd-aea0-c5e7df6ed485 ${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 c7bab6dd-c52a-4dcd-aea0-c5e7df6ed485 --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 c7bab6dd-c52a-4dcd-aea0-c5e7df6ed485 --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} = c7bab6dd-c52a-4dcd-aea0-c5e7df6ed485 ${ns_op_id} Logs the given message with the given level. c7bab6dd-c52a-4dcd-aea0-c5e7df6ed485 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 15b764ce-6e77-4d3f-b2c9-dc3878b50806 --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 | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | b8601d83-050f-4610-b5b6-931205b4b305 | basic_09_manual_-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.92 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_09_manual_scaling_test 2>&1'. ${rc} = 0 ${stdout} = basic_09_manual_scaling_test ${rc},${stdout} Logs the given message with the given level. 0,basic_09_manual_scaling_test ${stdout} ${ns} Fails if objects are equal after converting them to strings. basic_09_manual_scaling_test == basic_09_manual_scaling_test ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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} = 494bfa9b-d335-4db3-8c1b-48dc176e4ea8 ${stdout} Logs the given message with the given level. 494bfa9b-d335-4db3-8c1b-48dc176e4ea8 ${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} = 6c6e76ea-a03b-4606-8772-5bbe216f05be ${stdout} Logs the given message with the given level. 6c6e76ea-a03b-4606-8772-5bbe216f05be ${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} = 39cd1838-a7d8-4ea9-8ee5-bd8646bf913e ${stdout} Logs the given message with the given level. 39cd1838-a7d8-4ea9-8ee5-bd8646bf913e ${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 5f4d4452-0b9d-4506-9434-05a9ba04f7e0 ${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} = 5f4d4452-0b9d-4506-9434-05a9ba04f7e0 ${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 da544660-8aca-4e14-9f76-07c7ea8ae57b ${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} = da544660-8aca-4e14-9f76-07c7ea8ae57b ${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} = d8ffd3d7-daec-4449-85d0-15c70585289a ${stdout} Logs the given message with the given level. d8ffd3d7-daec-4449-85d0-15c70585289a ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = d8ffd3d7-daec-4449-85d0-15c70585289a ${ns_id} Logs the given message with the given level. d8ffd3d7-daec-4449-85d0-15c70585289a ${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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ ${rc} ${stdout} osm ns-list --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 | d8ffd3d7-daec-4449-85d0-15c70585289a | 2024-04-14T01:41:27 | BUILDING | INSTANTIATING (67c39699-a9eb-44ce-b1b4-9a454c6b6cd4) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | d8ffd3d7-daec-4449-85d0-15c70585289a | 2024-04-14T01:41:27 | BUILDING | INSTANTIATING (67c39699-a9eb-44ce-b1b4-9a454c6b6cd4) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | N... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | 76957eb8-d12f-4e08-85de-7008e2faea4c | k8s_10-k8s_proxy-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 34c40b97-f3b6-4679-af91-08acea9b69f4 | k8s_10-k8s_proxy-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | cd3c22f1-3c87-476b-b896-336e508ef970 | basic_16-vnf-hackfest_basic_metrics-VM-2 | ACTIVE | osm-ext=172.21.249.191 | ubuntu20.04 | simple_requires-1-1-flv | | 591b8af4-2c75-425c-988b-8f455f4ffc7a | basic_16-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.248.130 | ubuntu20.04 | simple_requires-1-1-flv | | 3f1016a2-c67f-4b59-92da-940f74c63620 | basic_16-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.57 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | d8ffd3d7-daec-4449-85d0-15c70585289a | 2024-04-14T01:41:27 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | N... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | 76957eb8-d12f-4e08-85de-7008e2faea4c | k8s_10-k8s_proxy-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 34c40b97-f3b6-4679-af91-08acea9b69f4 | k8s_10-k8s_proxy-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | cd3c22f1-3c87-476b-b896-336e508ef970 | basic_16-vnf-hackfest_basic_metrics-VM-2 | ACTIVE | osm-ext=172.21.249.191 | ubuntu20.04 | simple_requires-1-1-flv | | 591b8af4-2c75-425c-988b-8f455f4ffc7a | basic_16-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.248.130 | ubuntu20.04 | simple_requires-1-1-flv | | 3f1016a2-c67f-4b59-92da-940f74c63620 | basic_16-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.57 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | d8ffd3d7-daec-4449-85d0-15c70585289a | 2024-04-14T01:41:27 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} BROKEN Fails if ``container`` contains ``item`` one or more times. ${ns_id} ${id} = d8ffd3d7-daec-4449-85d0-15c70585289a ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = d8ffd3d7-daec-4449-85d0-15c70585289a 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 d8ffd3d7-daec-4449-85d0-15c70585289a | grep d8ffd3d7-daec-4449-85d0-15c70585289a | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = c2400677-bdfd-450d-9839-9d7ff1fd066a ${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} = [ c2400677-bdfd-450d-9839-9d7ff1fd066a ] @{vdur} @{vnfr_list} = [ c2400677-bdfd-450d-9839-9d7ff1fd066a ] ${vnfr_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: c2400677-bdfd-450d-9839-9d7ff1fd066a ${VNF_ID} ${vnfr_list}[0] Makes a variable available everywhere within the scope of the current suite. ${VNF_ID} = c2400677-bdfd-450d-9839-9d7ff1fd066a 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 c2400677-bdfd-450d-9839-9d7ff1fd066a --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} = 2f21727a-95be-4eea-94e0-f37c9995241d ${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 2f21727a-95be-4eea-94e0-f37c9995241d --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 2f21727a-95be-4eea-94e0-f37c9995241d ${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 2f21727a-95be-4eea-94e0-f37c9995241d --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 2f21727a-95be-4eea-94e0-f37c9995241d ${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 2f21727a-95be-4eea-94e0-f37c9995241d --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 2f21727a-95be-4eea-94e0-f37c9995241d --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} = 2f21727a-95be-4eea-94e0-f37c9995241d ${ns_op_id} Logs the given message with the given level. 2f21727a-95be-4eea-94e0-f37c9995241d 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 c2400677-bdfd-450d-9839-9d7ff1fd066a --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} = a6089eb0-d933-460a-b626-41c114d4efc5 ${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 a6089eb0-d933-460a-b626-41c114d4efc5 --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 a6089eb0-d933-460a-b626-41c114d4efc5 ${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 a6089eb0-d933-460a-b626-41c114d4efc5 --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 a6089eb0-d933-460a-b626-41c114d4efc5 --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} = a6089eb0-d933-460a-b626-41c114d4efc5 ${ns_op_id} Logs the given message with the given level. a6089eb0-d933-460a-b626-41c114d4efc5 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 c2400677-bdfd-450d-9839-9d7ff1fd066a --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 | +--------------------------------------+-------------------------------------------------+--------+------------------------------------------------------------------+-------------+-------------------------+ | 52fd2c80-a88b-4536-b095-0f4c3ffc817b | basic_24-affinity-basic-1-affinity_basic-VM-2-0 | ACTIVE | osm-ext=172.21.248.42 | ubuntu20.04 | simple_requires-1-1-flv | | 856c6038-80f3-4bec-85c4-02f929bdbceb | basic_24-affinity-basic-1-affinity_basic-VM-1-0 | ACTIVE | osm-ext=172.21.249.40 | ubuntu20.04 | simple_requires-1-1-flv | | 76957eb8-d12f-4e08-85de-7008e2faea4c | k8s_10-k8s_proxy-vnf2-mgmtVM-0 | ACTIVE | k8s_10-k8s_proxy-datanet=192.168.147.172; osm-ext=172.21.248.171 | ubuntu18.04 | simple_requires-1-1-flv | | 34c40b97-f3b6-4679-af91-08acea9b69f4 | k8s_10-k8s_proxy-vnf1-mgmtVM-0 | ACTIVE | k8s_10-k8s_proxy-datanet=192.168.147.134; osm-ext=172.21.248.16 | ubuntu18.04 | simple_requires-1-1-flv | | cd3c22f1-3c87-476b-b896-336e508ef970 | basic_16-vnf-hackfest_basic_metrics-VM-2 | ACTIVE | osm-ext=172.21.249.191 | ubuntu20.04 | simple_requires-1-1-flv | | 591b8af4-2c75-425c-988b-8f455f4ffc7a | basic_16-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.248.130 | ubuntu20.04 | simple_requires-1-1-flv | | 3f1016a2-c67f-4b59-92da-940f74c63620 | basic_16-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.57 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | +--------------------------------------+-------------------------------------------------+--------+------------------------------------------------------------------+-------------+-------------------------+ | 52fd2c80-a88b-4536-b095-0f4c3ffc817b | basic_24-affinity-basic-1-affinity_basic-VM-2-0 | ACTIVE | osm-ext=172.21.248.42 | ubuntu20.04 | simple_requires-1-1-flv | | 856c6038-80f3-4bec-85c4-02f929bdbceb | basic_24-affinity-basic-1-affinity_basic-VM-1-0 | ACTIVE | osm-ext=172.21.249.40 | ubuntu20.04 | simple_requires-1-1-flv | | 76957eb8-d12f-4e08-85de-7008e2faea4c | k8s_10-k8s_proxy-vnf2-mgmtVM-0 | ACTIVE | k8s_10-k8s_proxy-datanet=192.168.147.172; osm-ext=172.21.248.171 | ubuntu18.04 | simple_requires-1-1-flv | | 34c40b97-f3b6-4679-af91-08acea9b69f4 | k8s_10-k8s_proxy-vnf1-mgmtVM-0 | ACTIVE | k8s_10-k8s_proxy-datanet=192.168.147.134; osm-ext=172.21.248.16 | ubuntu18.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 595ec0c1-3d6d-405a-8dfc-4d92de8e26fa ${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} = 595ec0c1-3d6d-405a-8dfc-4d92de8e26fa ${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 3d742abc-ccf6-4be0-804b-a5ce0f1b1056 ${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} = 3d742abc-ccf6-4be0-804b-a5ce0f1b1056 ${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 294486b6-6acd-4e61-9a91-b435152f1281 ${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} = 294486b6-6acd-4e61-9a91-b435152f1281 ${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 cc8835d3-eb3e-4e27-b268-d4deaf02bcba ${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} = cc8835d3-eb3e-4e27-b268-d4deaf02bcba ${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} = f16b030b-8d2c-43a5-aa50-101cb2958f54 ${stdout} Logs the given message with the given level. f16b030b-8d2c-43a5-aa50-101cb2958f54 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = f16b030b-8d2c-43a5-aa50-101cb2958f54 ${ns_id} Logs the given message with the given level. f16b030b-8d2c-43a5-aa50-101cb2958f54 ${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 | +--------------------------------------+--------------------------------+--------+------------------------------------------------------------------+-------------+-------------------------+ | 76957eb8-d12f-4e08-85de-7008e2faea4c | k8s_10-k8s_proxy-vnf2-mgmtVM-0 | ACTIVE | k8s_10-k8s_proxy-datanet=192.168.147.172; osm-ext=172.21.248.171 | ubuntu18.04 | simple_requires-1-1-flv | | 34c40b97-f3b6-4679-af91-08acea9b69f4 | k8s_10-k8s_proxy-vnf1-mgmtVM-0 | ACTIVE | k8s_10-k8s_proxy-datanet=192.168.147.134; osm-ext=172.21.248.16 | ubuntu18.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------+--------+------------------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | f16b030b-8d2c-43a5-aa50-101cb2958f54 | 2024-04-14T01:43:57 | BUILDING | INSTANTIATING (d0b6d549-1bc1-4823-b886-446444f8a4b0) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | f16b030b-8d2c-43a5-aa50-101cb2958f54 | 2024-04-14T01:43:57 | BUILDING | INSTANTIATING (d0b6d549-1bc1-4823-b886-446444f8a4b0) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+--------------------------------+--------+------------------------------------------------------------------+-------------+-------------------------+ | 71a460a9-4a52-438d-bdfe-c138d3f0b5fc | basic_25_charm_u-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 865e86aa-c848-49bc-a450-97b9f251c168 | basic_25_charm_u-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | bb1e8da9-f5c1-4765-9f7e-e2fb95abb1a0 | basic_18-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | eefacefa-9c01-4737-a23e-c6fd2700af1d | basic_18-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 76957eb8-d12f-4e08-85de-7008e2faea4c | k8s_10-k8s_proxy-vnf2-mgmtVM-0 | ACTIVE | k8s_10-k8s_proxy-datanet=192.168.147.172; osm-ext=172.21.248.171 | ubuntu18.04 | simple_requires-1-1-flv | | 34c40b97-f3b6-4679-af91-08acea9b69f4 | k8s_10-k8s_proxy-vnf1-mgmtVM-0 | ACTIVE | k8s_10-k8s_proxy-datanet=192.168.147.134; osm-ext=172.21.248.16 | ubuntu18.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------+--------+------------------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | f16b030b-8d2c-43a5-aa50-101cb2958f54 | 2024-04-14T01:43:57 | BUILDING | INSTANTIATING (d0b6d549-1bc1-4823-b886-446444f8a4b0) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | f16b030b-8d2c-43a5-aa50-101cb2958f54 | 2024-04-14T01:43:57 | BUILDING | INSTANTIATING (d0b6d549-1bc1-4823-b886-446444f8a4b0) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+--------------------------------+--------+------------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | 71a460a9-4a52-438d-bdfe-c138d3f0b5fc | basic_25_charm_u-vnf2-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.91.32; osm-ext=172.21.248.239 | ubuntu18.04 | simple_requires-1-1-flv | | 865e86aa-c848-49bc-a450-97b9f251c168 | basic_25_charm_u-vnf1-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.91.243; osm-ext=172.21.248.224 | ubuntu18.04 | simple_requires-1-1-flv | | bb1e8da9-f5c1-4765-9f7e-e2fb95abb1a0 | basic_18-vnf2-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.218; basic_18-datanet2=192.168.20.235; basic_18-datanet3=192.168.30.176; osm-ext=172.21.248.235 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | eefacefa-9c01-4737-a23e-c6fd2700af1d | basic_18-vnf1-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.123; basic_18-datanet2=192.168.20.166; basic_18-datanet3=192.168.30.96; osm-ext=172.21.249.50 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------+--------+------------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | f16b030b-8d2c-43a5-aa50-101cb2958f54 | 2024-04-14T01:43: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 | +--------------------------------------+--------------------------------+--------+------------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | 71a460a9-4a52-438d-bdfe-c138d3f0b5fc | basic_25_charm_u-vnf2-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.91.32; osm-ext=172.21.248.239 | ubuntu18.04 | simple_requires-1-1-flv | | 865e86aa-c848-49bc-a450-97b9f251c168 | basic_25_charm_u-vnf1-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.91.243; osm-ext=172.21.248.224 | ubuntu18.04 | simple_requires-1-1-flv | | bb1e8da9-f5c1-4765-9f7e-e2fb95abb1a0 | basic_18-vnf2-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.218; basic_18-datanet2=192.168.20.235; basic_18-datanet3=192.168.30.176; osm-ext=172.21.248.235 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | eefacefa-9c01-4737-a23e-c6fd2700af1d | basic_18-vnf1-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.123; basic_18-datanet2=192.168.20.166; basic_18-datanet3=192.168.30.96; osm-ext=172.21.249.50 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------+--------+------------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | f16b030b-8d2c-43a5-aa50-101cb2958f54 | 2024-04-14T01:43: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} = f16b030b-8d2c-43a5-aa50-101cb2958f54 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = f16b030b-8d2c-43a5-aa50-101cb2958f54 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 f16b030b-8d2c-43a5-aa50-101cb2958f54 | grep f16b030b-8d2c-43a5-aa50-101cb2958f54 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = 304f8ae2-910c-4f41-b1a4-db54573f13c5 968b2446-f99a-4797-9459-7e3e7c0f3924 ${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} = [ 304f8ae2-910c-4f41-b1a4-db54573f13c5 | 968b2446-f99a-4797-9459-7e3e7c0f3924 ] @{vdur} @{vnfr_list} = [ 304f8ae2-910c-4f41-b1a4-db54573f13c5 | 968b2446-f99a-4797-9459-7e3e7c0f3924 ] ${vnfr_list} Logs the length and contents of the ``list`` using given ``level``. List length is 2 and it contains following items: 0: 304f8ae2-910c-4f41-b1a4-db54573f13c5 1: 968b2446-f99a-4797-9459-7e3e7c0f3924 ${VNF_ID1} ${vnfr_list}[0] Makes a variable available everywhere within the scope of the current suite. ${VNF_ID1} = 304f8ae2-910c-4f41-b1a4-db54573f13c5 ${VNF_ID2} ${vnfr_list}[1] Makes a variable available everywhere within the scope of the current suite. ${VNF_ID2} = 968b2446-f99a-4797-9459-7e3e7c0f3924 ${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 f16b030b-8d2c-43a5-aa50-101cb2958f54 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.50 ${stdout} Logs the given message with the given level. 172.21.249.50 ${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.50 ${VNF1_IPMGMT} ${ip} Makes a variable available everywhere within the scope of the current suite. ${VNF1_IPMGMT} = 172.21.249.50 ${VNF1_IPMGMT} Logs the given message with the given level. 172.21.249.50 ${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 f16b030b-8d2c-43a5-aa50-101cb2958f54 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.235 ${stdout} Logs the given message with the given level. 172.21.248.235 ${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.235 ${VNF2_IPMGMT} ${ip} Makes a variable available everywhere within the scope of the current suite. ${VNF2_IPMGMT} = 172.21.248.235 ${VNF2_IPMGMT} Logs the given message with the given level. 172.21.248.235 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 304f8ae2-910c-4f41-b1a4-db54573f13c5 --literal | yq '.vdur[0].interfaces[] | select(.name == "eth1")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 192.168.10.123 ${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.123 ${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 304f8ae2-910c-4f41-b1a4-db54573f13c5 --literal | yq '.vdur[0].interfaces[] | select(.name == "eth2")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 192.168.20.166 ${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.166 ${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 304f8ae2-910c-4f41-b1a4-db54573f13c5 --literal | yq '.vdur[0].interfaces[] | select(.name == "eth3")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 192.168.30.96 ${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.96 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 968b2446-f99a-4797-9459-7e3e7c0f3924 --literal | yq '.vdur[0].interfaces[] | select(.name == "eth1")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 192.168.10.218 ${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.218 ${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 968b2446-f99a-4797-9459-7e3e7c0f3924 --literal | yq '.vdur[0].interfaces[] | select(.name == "eth2")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 192.168.20.235 ${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.235 ${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 968b2446-f99a-4797-9459-7e3e7c0f3924 --literal | yq '.vdur[0].interfaces[] | select(.name == "eth3")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 192.168.30.176 ${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.176 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.50: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 14 01:45:34 UTC 2024 System load: 0.72 Users logged in: 0 Usage of /: 14.0% of 9.52GB IPv4 address for ens3: 172.21.249.50 Memory usage: 10% IPv4 address for ens4: 192.168.10.123 Swap usage: 0% IPv4 address for ens5: 192.168.20.166 Processes: 109 IPv4 address for ens6: 192.168.30.96 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.50/22 192.168.10.123/24 192.168.20.166/24 192.168.30.96/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.50/22 192.168.10.123/24 192.168.20.166/24 192.168.30.96/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.50/22 192.168.10.123/24 192.168.20.166/24 192.168.30.96/24 ${stdout} Logs the given message with the given level. 172.21.249.50/22 192.168.10.123/24 192.168.20.166/24 192.168.30.96/24 @{ip} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{ip} = [ 172.21.249.50/22 | 192.168.10.123/24 | 192.168.20.166/24 | 192.168.30.96/24 ] ${ip}[1] ${DATANET1_PREFIX} msg=${ip}[1] doesn't match subnet's regexp ${DATANET1_PREFIX} Fails if ``string`` does not match ``pattern`` as a regular expression. ${ip}[2] ${DATANET2_PREFIX} msg=${ip}[2] doesn't match subnet's regexp ${DATANET2_PREFIX} Fails if ``string`` does not match ``pattern`` as a regular expression. ${ip}[3] ${DATANET3_PREFIX} msg=${ip}[3] doesn't match subnet's regexp ${DATANET3_PREFIX} Fails if ``string`` does not match ``pattern`` as a regular expression. Check whether IP addresses of the first VNF configured inside the VM meet the expected CIDR. basic_18 cluster_main daily regression ${VNF2_IPMGMT} msg=IP address of the data VNF '${VNF_MEMBER_INDEX_2}' is not available Fails unless the given variable exists within the current scope. ${PRIVATEKEY} msg=SSH private key not available Fails unless the given variable exists within the current scope. ${stdout} ${VNF2_IPMGMT} ${USERNAME} ${EMPTY} ${PRIVATEKEY} ip --brief addr show up | grep -v "^lo" | awk '{print $3}' Execute via SSH a command in a remote host and, if the command succeeds, return the output. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.248.235: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 disabled due to load higher than 1.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-18-vnf2-datavm-0:~$ ${stdout} ${rc} ${command} return_rc=True return_stdout=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'ip --brief addr show up | grep -v "^lo" | awk '{print $3}''. Command exited with return code 0. ${stdout} = 172.21.248.235/22 192.168.10.218/24 192.168.20.235/24 192.168.30.176/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.235/22 192.168.10.218/24 192.168.20.235/24 192.168.30.176/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.235/22 192.168.10.218/24 192.168.20.235/24 192.168.30.176/24 ${stdout} Logs the given message with the given level. 172.21.248.235/22 192.168.10.218/24 192.168.20.235/24 192.168.30.176/24 @{ip} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{ip} = [ 172.21.248.235/22 | 192.168.10.218/24 | 192.168.20.235/24 | 192.168.30.176/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.50: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 14 01:45:39 UTC 2024 System load: 0.83 Users logged in: 0 Usage of /: 14.2% of 9.52GB IPv4 address for ens3: 172.21.249.50 Memory usage: 10% IPv4 address for ens4: 192.168.10.123 Swap usage: 0% IPv4 address for ens5: 192.168.20.166 Processes: 109 IPv4 address for ens6: 192.168.30.96 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 14 01:45:35 2024 from 172.21.249.4 To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@basic-18-vnf1-datavm-0:~$ ${stdout} ${rc} ${command} return_rc=True return_stdout=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'ip addr ; ping -c 5 172.21.248.235'. 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:6e:b1:10 brd ff:ff:ff:ff:ff:ff inet 172.21.249.50/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86352sec preferred_lft 86352sec inet6 fe80::f816:3eff:fe6e:b110/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:40:c2:6a brd ff:ff:ff:ff:ff:ff inet 192.168.10.123/24 brd 192.168.10.255 scope global ens4 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe40:c26a/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:07:46:eb brd ff:ff:ff:ff:ff:ff inet 192.168.20.166/24 brd 192.168.20.255 scope global ens5 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe07:46eb/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:b3:e3:6f brd ff:ff:ff:ff:ff:ff inet 192.168.30.96/24 brd 192.168.30.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:feb3:e36f/64 scope link valid_lft forever preferred_lft forever PING 172.21.248.235 (172.21.248.235) 56(84) bytes of data. 64 bytes from 172.21.248.235: icmp_seq=1 ttl=64 time=3.20 ms 64 bytes from 172.21.248.235: icmp_seq=2 ttl=64 time=0.531 ms 64 bytes from 172.21.248.235: icmp_seq=3 ttl=64 time=0.673 ms 64 bytes from 172.21.248.235: icmp_seq=4 ttl=64 time=0.711 ms 64 bytes from 172.21.248.235: icmp_seq=5 ttl=64 time=0.514 ms --- 172.21.248.235 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4077ms rtt min/avg/max/mdev = 0.514/1.126/3.203/1.041 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:6e:b1:10 brd ff:ff:ff:ff:ff:ff inet 172.21.249.50/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86352sec preferred_lft 86352sec inet6 fe80::f816:3eff:fe6e:b110/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:40:c2:6a brd ff:ff:ff:ff:ff:ff inet 192.168.10.123/24 brd 192.168.10.255 scope global ens4 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe40:c26a/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:07:46:eb brd ff:ff:ff:ff:ff:ff inet 192.168.20.166/24 brd 192.168.20.255 scope global ens5 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe07:46eb/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:b3:e3:6f brd ff:ff:ff:ff:ff:ff inet 192.168.30.96/24 brd 192.168.30.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:feb3:e36f/64 scope link valid_lft forever preferred_lft forever PING 172.21.248.235 (172.21.248.235) 56(84) bytes of data. 64 bytes from 172.21.248.235: icmp_seq=1 ttl=64 time=3.20 ms 64 bytes from 172.21.248.235: icmp_seq=2 ttl=64 time=0.531 ms 64 bytes from 172.21.248.235: icmp_seq=3 ttl=64 time=0.673 ms 64 bytes from 172.21.248.235: icmp_seq=4 ttl=64 time=0.711 ms 64 bytes from 172.21.248.235: icmp_seq=5 ttl=64 time=0.514 ms --- 172.21.248.235 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4077ms rtt min/avg/max/mdev = 0.514/1.126/3.203/1.041 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.50: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 14 01:45:44 UTC 2024 System load: 0.76 Users logged in: 0 Usage of /: 14.2% of 9.52GB IPv4 address for ens3: 172.21.249.50 Memory usage: 10% IPv4 address for ens4: 192.168.10.123 Swap usage: 0% IPv4 address for ens5: 192.168.20.166 Processes: 108 IPv4 address for ens6: 192.168.30.96 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 14 01:45: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-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.218'. Command exited with return code 0. ${stdout} = PING 192.168.10.218 (192.168.10.218) 56(84) bytes of data. 64 bytes from 192.168.10.218: icmp_seq=1 ttl=64 time=2.68 ms 64 bytes from 192.168.10.218: icmp_seq=2 ttl=64 time=0.812 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.218 (192.168.10.218) 56(84) bytes of data. 64 bytes from 192.168.10.218: icmp_seq=1 ttl=64 time=2.68 ms 64 bytes from 192.168.10.218: icmp_seq=2 ttl=64 time=0.812 ms 64 bytes from 192.168.10.218: icmp_seq=3 ttl=64 time=0.783 ms 64 bytes from 192.168.10.218: icmp_seq=4 ttl=64 time=0.641 ms 64 bytes from 192.168.10.218: icmp_seq=5 ttl=64 time=0.652 ms --- 192.168.10.218 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4025ms rtt min/avg/max/mdev = 0.641/1.113/2.679/0.785 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.218 (192.168.10.218) 56(84) bytes of data. 64 bytes from 192.168.10.218: icmp_seq=1 ttl=64 time=2.68 ms 64 bytes from 192.168.10.218: icmp_seq=2 ttl=64 time=0.812 ms 64 bytes from 192.... ${stdout} Logs the given message with the given level. PING 192.168.10.218 (192.168.10.218) 56(84) bytes of data. 64 bytes from 192.168.10.218: icmp_seq=1 ttl=64 time=2.68 ms 64 bytes from 192.168.10.218: icmp_seq=2 ttl=64 time=0.812 ms 64 bytes from 192.168.10.218: icmp_seq=3 ttl=64 time=0.783 ms 64 bytes from 192.168.10.218: icmp_seq=4 ttl=64 time=0.641 ms 64 bytes from 192.168.10.218: icmp_seq=5 ttl=64 time=0.652 ms --- 192.168.10.218 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4025ms rtt min/avg/max/mdev = 0.641/1.113/2.679/0.785 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.50: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 14 01:45:50 UTC 2024 System load: 0.64 Users logged in: 0 Usage of /: 14.2% of 9.52GB IPv4 address for ens3: 172.21.249.50 Memory usage: 10% IPv4 address for ens4: 192.168.10.123 Swap usage: 0% IPv4 address for ens5: 192.168.20.166 Processes: 109 IPv4 address for ens6: 192.168.30.96 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 14 01:45: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-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.235'. Command exited with return code 0. ${stdout} = PING 192.168.20.235 (192.168.20.235) 56(84) bytes of data. 64 bytes from 192.168.20.235: icmp_seq=1 ttl=64 time=2.67 ms 64 bytes from 192.168.20.235: icmp_seq=2 ttl=64 time=0.585 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.235 (192.168.20.235) 56(84) bytes of data. 64 bytes from 192.168.20.235: icmp_seq=1 ttl=64 time=2.67 ms 64 bytes from 192.168.20.235: icmp_seq=2 ttl=64 time=0.585 ms 64 bytes from 192.168.20.235: icmp_seq=3 ttl=64 time=0.673 ms 64 bytes from 192.168.20.235: icmp_seq=4 ttl=64 time=0.669 ms 64 bytes from 192.168.20.235: icmp_seq=5 ttl=64 time=0.817 ms --- 192.168.20.235 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4078ms rtt min/avg/max/mdev = 0.585/1.081/2.665/0.795 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.235 (192.168.20.235) 56(84) bytes of data. 64 bytes from 192.168.20.235: icmp_seq=1 ttl=64 time=2.67 ms 64 bytes from 192.168.20.235: icmp_seq=2 ttl=64 time=0.585 ms 64 bytes from 192.... ${stdout} Logs the given message with the given level. PING 192.168.20.235 (192.168.20.235) 56(84) bytes of data. 64 bytes from 192.168.20.235: icmp_seq=1 ttl=64 time=2.67 ms 64 bytes from 192.168.20.235: icmp_seq=2 ttl=64 time=0.585 ms 64 bytes from 192.168.20.235: icmp_seq=3 ttl=64 time=0.673 ms 64 bytes from 192.168.20.235: icmp_seq=4 ttl=64 time=0.669 ms 64 bytes from 192.168.20.235: icmp_seq=5 ttl=64 time=0.817 ms --- 192.168.20.235 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4078ms rtt min/avg/max/mdev = 0.585/1.081/2.665/0.795 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.50: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 14 01:45:56 UTC 2024 System load: 0.59 Users logged in: 0 Usage of /: 14.2% of 9.52GB IPv4 address for ens3: 172.21.249.50 Memory usage: 10% IPv4 address for ens4: 192.168.10.123 Swap usage: 0% IPv4 address for ens5: 192.168.20.166 Processes: 106 IPv4 address for ens6: 192.168.30.96 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 14 01:45:51 2024 from 172.21.249.4 To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@basic-18-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.176'. Command exited with return code 0. ${stdout} = PING 192.168.30.176 (192.168.30.176) 56(84) bytes of data. 64 bytes from 192.168.30.176: icmp_seq=1 ttl=64 time=2.37 ms 64 bytes from 192.168.30.176: icmp_seq=2 ttl=64 time=0.816 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.176 (192.168.30.176) 56(84) bytes of data. 64 bytes from 192.168.30.176: icmp_seq=1 ttl=64 time=2.37 ms 64 bytes from 192.168.30.176: icmp_seq=2 ttl=64 time=0.816 ms 64 bytes from 192.168.30.176: icmp_seq=3 ttl=64 time=0.788 ms 64 bytes from 192.168.30.176: icmp_seq=4 ttl=64 time=0.696 ms 64 bytes from 192.168.30.176: icmp_seq=5 ttl=64 time=0.728 ms --- 192.168.30.176 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4013ms rtt min/avg/max/mdev = 0.696/1.080/2.373/0.647 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.176 (192.168.30.176) 56(84) bytes of data. 64 bytes from 192.168.30.176: icmp_seq=1 ttl=64 time=2.37 ms 64 bytes from 192.168.30.176: icmp_seq=2 ttl=64 time=0.816 ms 64 bytes from 192.... ${stdout} Logs the given message with the given level. PING 192.168.30.176 (192.168.30.176) 56(84) bytes of data. 64 bytes from 192.168.30.176: icmp_seq=1 ttl=64 time=2.37 ms 64 bytes from 192.168.30.176: icmp_seq=2 ttl=64 time=0.816 ms 64 bytes from 192.168.30.176: icmp_seq=3 ttl=64 time=0.788 ms 64 bytes from 192.168.30.176: icmp_seq=4 ttl=64 time=0.696 ms 64 bytes from 192.168.30.176: icmp_seq=5 ttl=64 time=0.728 ms --- 192.168.30.176 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4013ms rtt min/avg/max/mdev = 0.696/1.080/2.373/0.647 ms Check connectivity from the first VNF to the second VNF using ping. basic_18 cluster_main daily regression ${VNF1_IPMGMT} msg=IP address of the data VNF '${VNF_MEMBER_INDEX_2}' is not available Fails unless the given variable exists within the current scope. ${PRIVATEKEY} msg=SSH private key not available Fails unless the given variable exists within the current scope. ${stdout} ${VNF2_IPMGMT} ${USERNAME} ${EMPTY} ${PRIVATEKEY} ip addr ; ping -c 5 ${VNF1_IPMGMT} Execute via SSH a command in a remote host and, if the command succeeds, return the output. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.248.235: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 14 01:46:02 UTC 2024 System load: 0.94 Users logged in: 0 Usage of /: 14.2% of 9.52GB IPv4 address for ens3: 172.21.248.235 Memory usage: 10% IPv4 address for ens4: 192.168.10.218 Swap usage: 0% IPv4 address for ens5: 192.168.20.235 Processes: 108 IPv4 address for ens6: 192.168.30.176 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 14 01:45:37 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.50'. 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:4b:48:62 brd ff:ff:ff:ff:ff:ff inet 172.21.248.235/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86329sec preferred_lft 86329sec inet6 fe80::f816:3eff:fe4b:4862/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:c4:22:9d brd ff:ff:ff:ff:ff:ff inet 192.168.10.218/24 brd 192.168.10.255 scope global ens4 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fec4:229d/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:8c:88:6a brd ff:ff:ff:ff:ff:ff inet 192.168.20.235/24 brd 192.168.20.255 scope global ens5 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe8c:886a/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:0a:68:85 brd ff:ff:ff:ff:ff:ff inet 192.168.30.176/24 brd 192.168.30.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe0a:6885/64 scope link valid_lft forever preferred_lft forever PING 172.21.249.50 (172.21.249.50) 56(84) bytes of data. 64 bytes from 172.21.249.50: icmp_seq=1 ttl=64 time=1.38 ms 64 bytes from 172.21.249.50: icmp_seq=2 ttl=64 time=0.643 ms 64 bytes from 172.21.249.50: icmp_seq=3 ttl=64 time=0.801 ms 64 bytes from 172.21.249.50: icmp_seq=4 ttl=64 time=0.587 ms 64 bytes from 172.21.249.50: icmp_seq=5 ttl=64 time=0.753 ms --- 172.21.249.50 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4042ms rtt min/avg/max/mdev = 0.587/0.832/1.379/0.283 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:4b:48:62 brd ff:ff:ff:ff:ff:ff inet 172.21.248.235/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86329sec preferred_lft 86329sec inet6 fe80::f816:3eff:fe4b:4862/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:c4:22:9d brd ff:ff:ff:ff:ff:ff inet 192.168.10.218/24 brd 192.168.10.255 scope global ens4 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fec4:229d/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:8c:88:6a brd ff:ff:ff:ff:ff:ff inet 192.168.20.235/24 brd 192.168.20.255 scope global ens5 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe8c:886a/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:0a:68:85 brd ff:ff:ff:ff:ff:ff inet 192.168.30.176/24 brd 192.168.30.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe0a:6885/64 scope link valid_lft forever preferred_lft forever PING 172.21.249.50 (172.21.249.50) 56(84) bytes of data. 64 bytes from 172.21.249.50: icmp_seq=1 ttl=64 time=1.38 ms 64 bytes from 172.21.249.50: icmp_seq=2 ttl=64 time=0.643 ms 64 bytes from 172.21.249.50: icmp_seq=3 ttl=64 time=0.801 ms 64 bytes from 172.21.249.50: icmp_seq=4 ttl=64 time=0.587 ms 64 bytes from 172.21.249.50: icmp_seq=5 ttl=64 time=0.753 ms --- 172.21.249.50 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4042ms rtt min/avg/max/mdev = 0.587/0.832/1.379/0.283 ms ${stdout} ${VNF2_IPMGMT} ${USERNAME} ${EMPTY} ${PRIVATEKEY} ip addr ; ping -c 5 ${VNF1_IP1} Execute via SSH a command in a remote host and, if the command succeeds, return the output. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.248.235: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 14 01:46:08 UTC 2024 System load: 0.86 Users logged in: 0 Usage of /: 14.2% of 9.52GB IPv4 address for ens3: 172.21.248.235 Memory usage: 10% IPv4 address for ens4: 192.168.10.218 Swap usage: 0% IPv4 address for ens5: 192.168.20.235 Processes: 110 IPv4 address for ens6: 192.168.30.176 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 14 01:46:02 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.123'. 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:4b:48:62 brd ff:ff:ff:ff:ff:ff inet 172.21.248.235/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86323sec preferred_lft 86323sec inet6 fe80::f816:3eff:fe4b:4862/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:c4:22:9d brd ff:ff:ff:ff:ff:ff inet 192.168.10.218/24 brd 192.168.10.255 scope global ens4 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fec4:229d/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:8c:88:6a brd ff:ff:ff:ff:ff:ff inet 192.168.20.235/24 brd 192.168.20.255 scope global ens5 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe8c:886a/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:0a:68:85 brd ff:ff:ff:ff:ff:ff inet 192.168.30.176/24 brd 192.168.30.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe0a:6885/64 scope link valid_lft forever preferred_lft forever PING 192.168.10.123 (192.168.10.123) 56(84) bytes of data. 64 bytes from 192.168.10.123: icmp_seq=1 ttl=64 time=1.82 ms 64 bytes from 192.168.10.123: icmp_seq=2 ttl=64 time=0.888 ms 64 bytes from 192.168.10.123: icmp_seq=3 ttl=64 time=0.858 ms 64 bytes from 192.168.10.123: icmp_seq=4 ttl=64 time=0.619 ms 64 bytes from 192.168.10.123: icmp_seq=5 ttl=64 time=0.754 ms --- 192.168.10.123 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4007ms rtt min/avg/max/mdev = 0.619/0.987/1.817/0.425 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:4b:48:62 brd ff:ff:ff:ff:ff:ff inet 172.21.248.235/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86323sec preferred_lft 86323sec inet6 fe80::f816:3eff:fe4b:4862/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:c4:22:9d brd ff:ff:ff:ff:ff:ff inet 192.168.10.218/24 brd 192.168.10.255 scope global ens4 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fec4:229d/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:8c:88:6a brd ff:ff:ff:ff:ff:ff inet 192.168.20.235/24 brd 192.168.20.255 scope global ens5 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe8c:886a/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:0a:68:85 brd ff:ff:ff:ff:ff:ff inet 192.168.30.176/24 brd 192.168.30.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe0a:6885/64 scope link valid_lft forever preferred_lft forever PING 192.168.10.123 (192.168.10.123) 56(84) bytes of data. 64 bytes from 192.168.10.123: icmp_seq=1 ttl=64 time=1.82 ms 64 bytes from 192.168.10.123: icmp_seq=2 ttl=64 time=0.888 ms 64 bytes from 192.168.10.123: icmp_seq=3 ttl=64 time=0.858 ms 64 bytes from 192.168.10.123: icmp_seq=4 ttl=64 time=0.619 ms 64 bytes from 192.168.10.123: icmp_seq=5 ttl=64 time=0.754 ms --- 192.168.10.123 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4007ms rtt min/avg/max/mdev = 0.619/0.987/1.817/0.425 ms ${stdout} ${VNF2_IPMGMT} ${USERNAME} ${EMPTY} ${PRIVATEKEY} ip addr ; ping -c 5 ${VNF1_IP2} Execute via SSH a command in a remote host and, if the command succeeds, return the output. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.248.235: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 14 01:46:13 UTC 2024 System load: 0.79 Users logged in: 0 Usage of /: 14.2% of 9.52GB IPv4 address for ens3: 172.21.248.235 Memory usage: 10% IPv4 address for ens4: 192.168.10.218 Swap usage: 0% IPv4 address for ens5: 192.168.20.235 Processes: 110 IPv4 address for ens6: 192.168.30.176 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 14 01:46: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 192.168.20.166'. 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:4b:48:62 brd ff:ff:ff:ff:ff:ff inet 172.21.248.235/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86318sec preferred_lft 86318sec inet6 fe80::f816:3eff:fe4b:4862/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:c4:22:9d brd ff:ff:ff:ff:ff:ff inet 192.168.10.218/24 brd 192.168.10.255 scope global ens4 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fec4:229d/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:8c:88:6a brd ff:ff:ff:ff:ff:ff inet 192.168.20.235/24 brd 192.168.20.255 scope global ens5 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe8c:886a/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:0a:68:85 brd ff:ff:ff:ff:ff:ff inet 192.168.30.176/24 brd 192.168.30.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe0a:6885/64 scope link valid_lft forever preferred_lft forever PING 192.168.20.166 (192.168.20.166) 56(84) bytes of data. 64 bytes from 192.168.20.166: icmp_seq=1 ttl=64 time=1.68 ms 64 bytes from 192.168.20.166: icmp_seq=2 ttl=64 time=0.867 ms 64 bytes from 192.168.20.166: icmp_seq=3 ttl=64 time=0.889 ms 64 bytes from 192.168.20.166: icmp_seq=4 ttl=64 time=0.742 ms 64 bytes from 192.168.20.166: icmp_seq=5 ttl=64 time=0.766 ms --- 192.168.20.166 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4006ms rtt min/avg/max/mdev = 0.742/0.988/1.680/0.350 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:4b:48:62 brd ff:ff:ff:ff:ff:ff inet 172.21.248.235/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86318sec preferred_lft 86318sec inet6 fe80::f816:3eff:fe4b:4862/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:c4:22:9d brd ff:ff:ff:ff:ff:ff inet 192.168.10.218/24 brd 192.168.10.255 scope global ens4 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fec4:229d/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:8c:88:6a brd ff:ff:ff:ff:ff:ff inet 192.168.20.235/24 brd 192.168.20.255 scope global ens5 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe8c:886a/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:0a:68:85 brd ff:ff:ff:ff:ff:ff inet 192.168.30.176/24 brd 192.168.30.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe0a:6885/64 scope link valid_lft forever preferred_lft forever PING 192.168.20.166 (192.168.20.166) 56(84) bytes of data. 64 bytes from 192.168.20.166: icmp_seq=1 ttl=64 time=1.68 ms 64 bytes from 192.168.20.166: icmp_seq=2 ttl=64 time=0.867 ms 64 bytes from 192.168.20.166: icmp_seq=3 ttl=64 time=0.889 ms 64 bytes from 192.168.20.166: icmp_seq=4 ttl=64 time=0.742 ms 64 bytes from 192.168.20.166: icmp_seq=5 ttl=64 time=0.766 ms --- 192.168.20.166 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4006ms rtt min/avg/max/mdev = 0.742/0.988/1.680/0.350 ms ${stdout} ${VNF2_IPMGMT} ${USERNAME} ${EMPTY} ${PRIVATEKEY} ip addr ; ping -c 5 ${VNF1_IP3} Execute via SSH a command in a remote host and, if the command succeeds, return the output. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.248.235: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 14 01:46:19 UTC 2024 System load: 0.73 Users logged in: 0 Usage of /: 14.2% of 9.52GB IPv4 address for ens3: 172.21.248.235 Memory usage: 10% IPv4 address for ens4: 192.168.10.218 Swap usage: 0% IPv4 address for ens5: 192.168.20.235 Processes: 110 IPv4 address for ens6: 192.168.30.176 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 14 01:46:14 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.96'. 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:4b:48:62 brd ff:ff:ff:ff:ff:ff inet 172.21.248.235/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86312sec preferred_lft 86312sec inet6 fe80::f816:3eff:fe4b:4862/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:c4:22:9d brd ff:ff:ff:ff:ff:ff inet 192.168.10.218/24 brd 192.168.10.255 scope global ens4 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fec4:229d/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:8c:88:6a brd ff:ff:ff:ff:ff:ff inet 192.168.20.235/24 brd 192.168.20.255 scope global ens5 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe8c:886a/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:0a:68:85 brd ff:ff:ff:ff:ff:ff inet 192.168.30.176/24 brd 192.168.30.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe0a:6885/64 scope link valid_lft forever preferred_lft forever PING 192.168.30.96 (192.168.30.96) 56(84) bytes of data. 64 bytes from 192.168.30.96: icmp_seq=1 ttl=64 time=1.59 ms 64 bytes from 192.168.30.96: icmp_seq=2 ttl=64 time=0.779 ms 64 bytes from 192.168.30.96: icmp_seq=3 ttl=64 time=0.787 ms 64 bytes from 192.168.30.96: icmp_seq=4 ttl=64 time=0.772 ms 64 bytes from 192.168.30.96: icmp_seq=5 ttl=64 time=0.684 ms --- 192.168.30.96 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4013ms rtt min/avg/max/mdev = 0.684/0.922/1.589/0.335 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:4b:48:62 brd ff:ff:ff:ff:ff:ff inet 172.21.248.235/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86312sec preferred_lft 86312sec inet6 fe80::f816:3eff:fe4b:4862/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:c4:22:9d brd ff:ff:ff:ff:ff:ff inet 192.168.10.218/24 brd 192.168.10.255 scope global ens4 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fec4:229d/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:8c:88:6a brd ff:ff:ff:ff:ff:ff inet 192.168.20.235/24 brd 192.168.20.255 scope global ens5 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe8c:886a/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:0a:68:85 brd ff:ff:ff:ff:ff:ff inet 192.168.30.176/24 brd 192.168.30.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe0a:6885/64 scope link valid_lft forever preferred_lft forever PING 192.168.30.96 (192.168.30.96) 56(84) bytes of data. 64 bytes from 192.168.30.96: icmp_seq=1 ttl=64 time=1.59 ms 64 bytes from 192.168.30.96: icmp_seq=2 ttl=64 time=0.779 ms 64 bytes from 192.168.30.96: icmp_seq=3 ttl=64 time=0.787 ms 64 bytes from 192.168.30.96: icmp_seq=4 ttl=64 time=0.772 ms 64 bytes from 192.168.30.96: icmp_seq=5 ttl=64 time=0.684 ms --- 192.168.30.96 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4013ms rtt min/avg/max/mdev = 0.684/0.922/1.589/0.335 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 | +--------------------------------------+--------------------------------+--------+------------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | 71a460a9-4a52-438d-bdfe-c138d3f0b5fc | basic_25_charm_u-vnf2-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.91.32; osm-ext=172.21.248.239 | ubuntu18.04 | simple_requires-1-1-flv | | 865e86aa-c848-49bc-a450-97b9f251c168 | basic_25_charm_u-vnf1-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.91.243; osm-ext=172.21.248.224 | ubuntu18.04 | simple_requires-1-1-flv | | bb1e8da9-f5c1-4765-9f7e-e2fb95abb1a0 | basic_18-vnf2-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.218; basic_18-datanet2=192.168.20.235; basic_18-datanet3=192.168.30.176; osm-ext=172.21.248.235 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | eefacefa-9c01-4737-a23e-c6fd2700af1d | basic_18-vnf1-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.123; basic_18-datanet2=192.168.20.166; basic_18-datanet3=192.168.30.96; osm-ext=172.21.249.50 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------+--------+------------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_18 2>&1'. ${rc} = 0 ${stdout} = basic_18 ${rc},${stdout} Logs the given message with the given level. 0,basic_18 ${stdout} ${ns} Fails if objects are equal after converting them to strings. basic_18 == basic_18 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------+--------+-----------------------------------------------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------+--------+-----------------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------+--------+-----------------------------------------------------------------+-------------+-------------------------+ | 71a460a9-4a52-438d-bdfe-c138d3f0b5fc | basic_25_charm_u-vnf2-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.91.32; osm-ext=172.21.248.239 | ubuntu18.04 | simple_requires-1-1-flv | | 865e86aa-c848-49bc-a450-97b9f251c168 | basic_25_charm_u-vnf1-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.91.243; osm-ext=172.21.248.224 | ubuntu18.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------+--------+-----------------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_18 2>&1'. ${rc} = 0 ${stdout} = basic_18 ${rc},${stdout} Logs the given message with the given level. 0,basic_18 ${stdout} ${ns} Fails if objects are equal after converting them to strings. basic_18 == basic_18 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------+--------+-----------------------------------------------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------+--------+-----------------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------+--------+-----------------------------------------------------------------+-------------+-------------------------+ | 71a460a9-4a52-438d-bdfe-c138d3f0b5fc | basic_25_charm_u-vnf2-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.91.32; osm-ext=172.21.248.239 | ubuntu18.04 | simple_requires-1-1-flv | | 865e86aa-c848-49bc-a450-97b9f251c168 | basic_25_charm_u-vnf1-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.91.243; osm-ext=172.21.248.224 | ubuntu18.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 b3b8be71-4968-4dfa-9739-d5e4d5e7a915 ${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} = b3b8be71-4968-4dfa-9739-d5e4d5e7a915 ${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 9a2e40ab-5cba-41bf-96cc-dfc7772ff5a3 ${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} = 9a2e40ab-5cba-41bf-96cc-dfc7772ff5a3 ${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} = 58af29df-e884-466d-979d-ab9d88df07b0 ${stdout} Logs the given message with the given level. 58af29df-e884-466d-979d-ab9d88df07b0 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 58af29df-e884-466d-979d-ab9d88df07b0 ${ns_id} Logs the given message with the given level. 58af29df-e884-466d-979d-ab9d88df07b0 ${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 | +--------------------------------------+--------------------------------+--------+-----------------------------------------------------------------+-------------+-------------------------+ | 71a460a9-4a52-438d-bdfe-c138d3f0b5fc | basic_25_charm_u-vnf2-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.91.32; osm-ext=172.21.248.239 | ubuntu18.04 | simple_requires-1-1-flv | | 865e86aa-c848-49bc-a450-97b9f251c168 | basic_25_charm_u-vnf1-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.91.243; osm-ext=172.21.248.224 | ubuntu18.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------+--------+-----------------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | 58af29df-e884-466d-979d-ab9d88df07b0 | 2024-04-14T01:47:15 | BUILDING | INSTANTIATING (841ec573-97a1-4d36-b82f-05bf8789d803) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 58af29df-e884-466d-979d-ab9d88df07b0 | 2024-04-14T01:47:15 | BUILDING | INSTANTIATING (841ec573-97a1-4d36-b82f-05bf8789d803) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+--------------------------------+--------+-----------------------------------------------------------------+-------------+-------------------------+ | d917ed52-b7a6-480d-adf6-182561a02858 | basic_19-vnf-dataVM-0 | ACTIVE | basic_19-internal=192.168.200.248 | ubuntu20.04 | simple_requires-1-1-flv | | fef27644-3b95-4cfe-a738-43ce3024dcb8 | basic_19-vnf-mgmtVM-0 | ACTIVE | basic_19-internal=192.168.200.200; osm-ext=172.21.249.105 | ubuntu20.04 | simple_requires-1-1-flv | | 71a460a9-4a52-438d-bdfe-c138d3f0b5fc | basic_25_charm_u-vnf2-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.91.32; osm-ext=172.21.248.239 | ubuntu18.04 | simple_requires-1-1-flv | | 865e86aa-c848-49bc-a450-97b9f251c168 | basic_25_charm_u-vnf1-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.91.243; osm-ext=172.21.248.224 | ubuntu18.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------+--------+-----------------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | 58af29df-e884-466d-979d-ab9d88df07b0 | 2024-04-14T01:47:15 | BUILDING | INSTANTIATING (841ec573-97a1-4d36-b82f-05bf8789d803) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 58af29df-e884-466d-979d-ab9d88df07b0 | 2024-04-14T01:47:15 | BUILDING | INSTANTIATING (841ec573-97a1-4d36-b82f-05bf8789d803) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+--------------------------+--------+-----------------------------------------------------------+-------------+-------------------------+ | d917ed52-b7a6-480d-adf6-182561a02858 | basic_19-vnf-dataVM-0 | ACTIVE | basic_19-internal=192.168.200.248 | ubuntu20.04 | simple_requires-1-1-flv | | fef27644-3b95-4cfe-a738-43ce3024dcb8 | basic_19-vnf-mgmtVM-0 | ACTIVE | basic_19-internal=192.168.200.200; osm-ext=172.21.249.105 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------+--------+-----------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | 58af29df-e884-466d-979d-ab9d88df07b0 | 2024-04-14T01:47:15 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------+--------+-----------------------------------------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+-----------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+-----------------------------------------------------------+-------------+-------------------------+ | d917ed52-b7a6-480d-adf6-182561a02858 | basic_19-vnf-dataVM-0 | ACTIVE | basic_19-internal=192.168.200.248 | ubuntu20.04 | simple_requires-1-1-flv | | fef27644-3b95-4cfe-a738-43ce3024dcb8 | basic_19-vnf-mgmtVM-0 | ACTIVE | basic_19-internal=192.168.200.200; osm-ext=172.21.249.105 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------+--------+-----------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | 58af29df-e884-466d-979d-ab9d88df07b0 | 2024-04-14T01:47:15 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} BROKEN Fails if ``container`` contains ``item`` one or more times. ${ns_id} ${id} = 58af29df-e884-466d-979d-ab9d88df07b0 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 58af29df-e884-466d-979d-ab9d88df07b0 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 58af29df-e884-466d-979d-ab9d88df07b0 | grep 58af29df-e884-466d-979d-ab9d88df07b0 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = 9a43a6e3-806f-4e62-bfc6-99aa75c36c12 ${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} = [ 9a43a6e3-806f-4e62-bfc6-99aa75c36c12 ] @{vdur} @{vnfr_list} = [ 9a43a6e3-806f-4e62-bfc6-99aa75c36c12 ] ${vnfr_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 9a43a6e3-806f-4e62-bfc6-99aa75c36c12 ${VNF_ID} ${vnfr_list}[0] Makes a variable available everywhere within the scope of the current suite. ${VNF_ID} = 9a43a6e3-806f-4e62-bfc6-99aa75c36c12 ${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 58af29df-e884-466d-979d-ab9d88df07b0 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.105 ${stdout} Logs the given message with the given level. 172.21.249.105 ${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.105 ${VNF_IPMGMT} ${ip} Makes a variable available everywhere within the scope of the current suite. ${VNF_IPMGMT} = 172.21.249.105 ${VNF_IPMGMT} Logs the given message with the given level. 172.21.249.105 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 9a43a6e3-806f-4e62-bfc6-99aa75c36c12 --literal | yq '.vdur[0].interfaces[] | select(."vnf-vld-id" == "internal")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 192.168.200.200 ${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 9a43a6e3-806f-4e62-bfc6-99aa75c36c12 --literal | yq '.vdur[1].interfaces[] | select(."vnf-vld-id" == "internal")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 192.168.200.248 ${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 | +--------------------------------------+--------------------------+--------+-----------------------------------------------------------+-------------+-------------------------+ | d917ed52-b7a6-480d-adf6-182561a02858 | basic_19-vnf-dataVM-0 | ACTIVE | basic_19-internal=192.168.200.248 | ubuntu20.04 | simple_requires-1-1-flv | | fef27644-3b95-4cfe-a738-43ce3024dcb8 | basic_19-vnf-mgmtVM-0 | ACTIVE | basic_19-internal=192.168.200.200; osm-ext=172.21.249.105 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------+--------+-----------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_19 2>&1'. ${rc} = 0 ${stdout} = basic_19 ${rc},${stdout} Logs the given message with the given level. 0,basic_19 ${stdout} ${ns} Fails if objects are equal after converting them to strings. basic_19 == basic_19 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 a9307970-efcf-48e1-8d94-9005826d7b22 ${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} = a9307970-efcf-48e1-8d94-9005826d7b22 ${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 9a4300b8-fca0-403d-8b65-a83495fe22d6 ${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} = 9a4300b8-fca0-403d-8b65-a83495fe22d6 ${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} = d2e6e924-adc6-4483-b1f5-93cd008136ab ${stdout} Logs the given message with the given level. d2e6e924-adc6-4483-b1f5-93cd008136ab ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = d2e6e924-adc6-4483-b1f5-93cd008136ab ${ns_id} Logs the given message with the given level. d2e6e924-adc6-4483-b1f5-93cd008136ab ${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 | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ | abae1864-1882-4281-9659-6c564c0e9e06 | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | BUILD | | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-----------------------------+ ${rc} ${stdout} osm ns-list --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 | d2e6e924-adc6-4483-b1f5-93cd008136ab | 2024-04-14T01:49:07 | BUILDING | INSTANTIATING (ca4228ab-c094-40a7-a424-c1c01f6b052e) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | d2e6e924-adc6-4483-b1f5-93cd008136ab | 2024-04-14T01:49:07 | BUILDING | INSTANTIATING (ca4228ab-c094-40a7-a424-c1c01f6b052e) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+------------------------------------------------+--------+--------------------------------------------------------------------+-------------+-----------------------------+ | 83fb97f4-927c-40e1-9e1a-196d1ba8d789 | basic_21-vnf-several-volu-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.133 | ubuntu20.04 | several_volumes-VM-flv | | abae1864-1882-4281-9659-6c564c0e9e06 | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | ACTIVE | epa_01-epa_sriov-sriov_vld=192.168.169.250; osm-ext=172.21.248.171 | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------------+--------+--------------------------------------------------------------------+-------------+-----------------------------+ ${rc} ${stdout} osm ns-list --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 | d2e6e924-adc6-4483-b1f5-93cd008136ab | 2024-04-14T01:49:07 | BUILDING | INSTANTIATING (ca4228ab-c094-40a7-a424-c1c01f6b052e) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | d2e6e924-adc6-4483-b1f5-93cd008136ab | 2024-04-14T01:49:07 | BUILDING | INSTANTIATING (ca4228ab-c094-40a7-a424-c1c01f6b052e) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+------------------------------------------------+--------+--------------------------------------------------------------------+-------------+-----------------------------+ | 83fb97f4-927c-40e1-9e1a-196d1ba8d789 | basic_21-vnf-several-volu-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.133 | ubuntu20.04 | several_volumes-VM-flv | | abae1864-1882-4281-9659-6c564c0e9e06 | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | ACTIVE | epa_01-epa_sriov-sriov_vld=192.168.169.250; osm-ext=172.21.248.171 | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------------+--------+--------------------------------------------------------------------+-------------+-----------------------------+ ${rc} ${stdout} osm ns-list --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 | d2e6e924-adc6-4483-b1f5-93cd008136ab | 2024-04-14T01:49: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 | +--------------------------------------+------------------------------------------------+--------+--------------------------------------------------------------------+-------------+-----------------------------+ | 83fb97f4-927c-40e1-9e1a-196d1ba8d789 | basic_21-vnf-several-volu-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.133 | ubuntu20.04 | several_volumes-VM-flv | | abae1864-1882-4281-9659-6c564c0e9e06 | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | ACTIVE | epa_01-epa_sriov-sriov_vld=192.168.169.250; osm-ext=172.21.248.171 | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------------+--------+--------------------------------------------------------------------+-------------+-----------------------------+ ${rc} ${stdout} osm ns-list --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 | d2e6e924-adc6-4483-b1f5-93cd008136ab | 2024-04-14T01:49: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} = d2e6e924-adc6-4483-b1f5-93cd008136ab ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = d2e6e924-adc6-4483-b1f5-93cd008136ab 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} = d2e6e924-adc6-4483-b1f5-93cd008136ab ${stdout} Logs the given message with the given level. d2e6e924-adc6-4483-b1f5-93cd008136ab ${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} = d2e6e924-adc6-4483-b1f5-93cd008136ab ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = d2e6e924-adc6-4483-b1f5-93cd008136ab 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 d2e6e924-adc6-4483-b1f5-93cd008136ab | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.133 ${stdout} Logs the given message with the given level. 172.21.249.133 ${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.133 ${ip_addr} Logs the given message with the given level. 172.21.249.133 ${VNF_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. ${VNF_IP_ADDR} = 172.21.249.133 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.249.133: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 14 01:50:54 UTC 2024 System load: 0.35 Processes: 104 Usage of /: 14.0% of 9.52GB Users logged in: 0 Memory usage: 21% IPv4 address for ens3: 172.21.249.133 Swap usage: 0% 1 update can be applied immediately. To see these additional updates run: apt list --upgradable The list of available updates is more than a week old. To check for new updates run: sudo apt update The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@basic-21-vnf-several-volu-several-volumes-vm-0:~$ ${stdout} ${rc} ${command} return_rc=True return_stdout=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'sudo lsblk -l'. Command exited with return code 0. ${stdout} = NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 61.9M 1 loop /snap/core20/1405 loop1 7:1 0 67.8M 1 loop /snap/lxd/22753 loop2 7:2 0 43.6M 1 loop /snap/snapd/15177 vda 252:0 ... ${rc} = 0 ${rc} Logs the given message with the given level. 0 ${stdout} Logs the given message with the given level. NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 61.9M 1 loop /snap/core20/1405 loop1 7:1 0 67.8M 1 loop /snap/lxd/22753 loop2 7:2 0 43.6M 1 loop /snap/snapd/15177 vda 252:0 0 10G 0 disk vda1 252:1 0 9.9G 0 part / vda14 252:14 0 4M 0 part vda15 252:15 0 106M 0 part /boot/efi vdb 252:16 0 2G 0 disk /mnt vdc 252:32 0 1G 0 disk Closes all open connections. ${rc} 0 Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${stdout} = NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 61.9M 1 loop /snap/core20/1405 loop1 7:1 0 67.8M 1 loop /snap/lxd/22753 loop2 7:2 0 43.6M 1 loop /snap/snapd/15177 vda 252:0 ... ${stdout} Logs the given message with the given level. NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 61.9M 1 loop /snap/core20/1405 loop1 7:1 0 67.8M 1 loop /snap/lxd/22753 loop2 7:2 0 43.6M 1 loop /snap/snapd/15177 vda 252:0 0 10G 0 disk vda1 252:1 0 9.9G 0 part / vda14 252:14 0 4M 0 part vda15 252:15 0 106M 0 part /boot/efi vdb 252:16 0 2G 0 disk /mnt vdc 252:32 0 1G 0 disk ${lines} ${stdout} disk Returns lines of the given ``string`` that contain the ``pattern``. 3 out of 10 lines matched ${lines} = vda 252:0 0 10G 0 disk vdb 252:16 0 2G 0 disk /mnt vdc 252:32 0 1G 0 disk ${num_lines} ${lines} Returns and logs the number of lines in the given string. 3 lines ${num_lines} = 3 msg=Number of disks (${num_lines}) is less than specified in VDU (${VNF_NUM_VOLUMES}) Fails the test with the given message and optionally alters its tags. Check that the number of volumes is the expected one. basic_21 cluster_main daily regression verify ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete basic_21 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------------+--------+------------------------+-------------+------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+------------------------+ | 83fb97f4-927c-40e1-9e1a-196d1ba8d789 | basic_21-vnf-several-volu-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.133 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_21 2>&1'. ${rc} = 0 ${stdout} = basic_21 ${rc},${stdout} Logs the given message with the given level. 0,basic_21 ${stdout} ${ns} Fails if objects are equal after converting them to strings. basic_21 == basic_21 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 7facc0a0-2323-4b94-9d6a-b115be945fdf ${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} = 7facc0a0-2323-4b94-9d6a-b115be945fdf ${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 72dce6... ${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 72dce615-d513-4a52-a3af-f07900356f4e ${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} = 72dce615-d513-4a52-a3af-f07900356f4e ${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 d219c7bf-f17f-4c48-95a1-b2fe386b8aa5 ${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} = d219c7bf-f17f-4c48-95a1-b2fe386b8aa5 ${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 0ab053ca-f275-44b1-b809-5a438d5c5b64 ${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} = 0ab053ca-f275-44b1-b809-5a438d5c5b64 ${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} = 2db889cb-a5a4-4e55-8c2d-ca2c9694ba37 ${stdout} Logs the given message with the given level. 2db889cb-a5a4-4e55-8c2d-ca2c9694ba37 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 2db889cb-a5a4-4e55-8c2d-ca2c9694ba37 ${ns_id} Logs the given message with the given level. 2db889cb-a5a4-4e55-8c2d-ca2c9694ba37 ${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 | +--------------------------------------+-------------------------------------+--------+------------------------+-------------+------------------------+ | 0c692fe3-dc22-40fe-a507-231c50c52938 | epa_02-epa_quota-vnf-epa_quota-VM-0 | ACTIVE | osm-ext=172.21.248.32 | ubuntu18.04 | epa_quota-VM-vnf-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-------------------------------------+--------+------------------------+-------------+------------------------+ ${rc} ${stdout} osm ns-list --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 | 2db889cb-a5a4-4e55-8c2d-ca2c9694ba37 | 2024-04-14T01:51:43 | BUILDING | INSTANTIATING (fe1630d4-2747-4de7-a80f-61fcc1d5532e) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 2db889cb-a5a4-4e55-8c2d-ca2c9694ba37 | 2024-04-14T01:51:43 | BUILDING | INSTANTIATING (fe1630d4-2747-4de7-a80f-61fcc1d5532e) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 11ed8e5d-6e8a-44f9-ab01-6f502628a8ca | basic_24-affinity-basic-1-affinity_basic-VM-2-0 | ACTIVE | osm-ext=172.21.248.239 | ubuntu20.04 | simple_requires-1-1-flv | | aecaec8f-d413-4588-b7fc-c5793fb8a342 | basic_24-affinity-basic-1-affinity_basic-VM-1-0 | ACTIVE | osm-ext=172.21.248.105 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | 2db889cb-a5a4-4e55-8c2d-ca2c9694ba37 | 2024-04-14T01:51:43 | BUILDING | INSTANTIATING (fe1630d4-2747-4de7-a80f-61fcc1d5532e) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 2db889cb-a5a4-4e55-8c2d-ca2c9694ba37 | 2024-04-14T01:51:43 | BUILDING | INSTANTIATING (fe1630d4-2747-4de7-a80f-61fcc1d5532e) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 11ed8e5d-6e8a-44f9-ab01-6f502628a8ca | basic_24-affinity-basic-1-affinity_basic-VM-2-0 | ACTIVE | osm-ext=172.21.248.239 | ubuntu20.04 | simple_requires-1-1-flv | | aecaec8f-d413-4588-b7fc-c5793fb8a342 | basic_24-affinity-basic-1-affinity_basic-VM-1-0 | ACTIVE | osm-ext=172.21.248.105 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | 2db889cb-a5a4-4e55-8c2d-ca2c9694ba37 | 2024-04-14T01:51:43 | 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 | +--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 11ed8e5d-6e8a-44f9-ab01-6f502628a8ca | basic_24-affinity-basic-1-affinity_basic-VM-2-0 | ACTIVE | osm-ext=172.21.248.239 | ubuntu20.04 | simple_requires-1-1-flv | | aecaec8f-d413-4588-b7fc-c5793fb8a342 | basic_24-affinity-basic-1-affinity_basic-VM-1-0 | ACTIVE | osm-ext=172.21.248.105 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | 2db889cb-a5a4-4e55-8c2d-ca2c9694ba37 | 2024-04-14T01:51:43 | 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} = 2db889cb-a5a4-4e55-8c2d-ca2c9694ba37 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 2db889cb-a5a4-4e55-8c2d-ca2c9694ba37 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 2db889cb-a5a4-4e55-8c2d-ca2c9694ba37 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = 1c18b5a0-9238-4349-8e09-cf8aa1c407d6 ${stdout} Logs the given message with the given level. 1c18b5a0-9238-4349-8e09-cf8aa1c407d6 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${vnf_id} = 1c18b5a0-9238-4349-8e09-cf8aa1c407d6 @{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 1c18b5a0-9238-4349-8e09-cf8aa1c407d6 --literal | yq '.vdur[].id' 2>&1'. ${rc} = 0 ${stdout} = "a786c0f5-ab2a-41eb-8443-b23977570f73" "7c679b4f-6e17-42fd-ac0d-77502fab4873" ${stdout} Logs the given message with the given level. "a786c0f5-ab2a-41eb-8443-b23977570f73" "7c679b4f-6e17-42fd-ac0d-77502fab4873" ${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} = [ "a786c0f5-ab2a-41eb-8443-b23977570f73" | "7c679b4f-6e17-42fd-ac0d-77502fab4873" ] @{vdur_ids} @{vdur_id_list} = [ "a786c0f5-ab2a-41eb-8443-b23977570f73" | "7c679b4f-6e17-42fd-ac0d-77502fab4873" ] ${vdur_id} @{vdur_id_list} "a786c0f5-ab2a-41eb-8443-b23977570f73" ${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 1c18b5a0-9238-4349-8e09-cf8aa1c407d6 --literal | yq '.vdur[] | select(.id == "'"a786c0f5-ab2a-41eb-8443-b23977570f73"'")' | 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 1c18b5a0-9238-4349-8e09-cf8aa1c407d6 --literal | yq '.vdur[] | select(.id == "'"a786c0f5-ab2a-41eb-8443-b23977570f73"'")' | yq -r '."vim-id"' 2>&1'. ${rc} = 0 ${vm_vim_id} = aecaec8f-d413-4588-b7fc-c5793fb8a342 ${vm_vim_id} Logs the given message with the given level. aecaec8f-d413-4588-b7fc-c5793fb8a342 ${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} = aecaec8f-d413-4588-b7fc-c5793fb8a342 ${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} = ['11ed8e5d-6e8a-44f9-ab01-6f502628a8ca', 'aecaec8f-d413-4588-b7fc-c5793fb8a342'] ${stdout} Logs the given message with the given level. ['11ed8e5d-6e8a-44f9-ab01-6f502628a8ca', 'aecaec8f-d413-4588-b7fc-c5793fb8a342'] ${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. "7c679b4f-6e17-42fd-ac0d-77502fab4873" ${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 1c18b5a0-9238-4349-8e09-cf8aa1c407d6 --literal | yq '.vdur[] | select(.id == "'"7c679b4f-6e17-42fd-ac0d-77502fab4873"'")' | 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 1c18b5a0-9238-4349-8e09-cf8aa1c407d6 --literal | yq '.vdur[] | select(.id == "'"7c679b4f-6e17-42fd-ac0d-77502fab4873"'")' | yq -r '."vim-id"' 2>&1'. ${rc} = 0 ${vm_vim_id} = 11ed8e5d-6e8a-44f9-ab01-6f502628a8ca ${vm_vim_id} Logs the given message with the given level. 11ed8e5d-6e8a-44f9-ab01-6f502628a8ca ${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} = 11ed8e5d-6e8a-44f9-ab01-6f502628a8ca ${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} = ['11ed8e5d-6e8a-44f9-ab01-6f502628a8ca', 'aecaec8f-d413-4588-b7fc-c5793fb8a342'] ${stdout} Logs the given message with the given level. ['11ed8e5d-6e8a-44f9-ab01-6f502628a8ca', 'aecaec8f-d413-4588-b7fc-c5793fb8a342'] ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${server_id} Fails if ``container`` does not contain ``item`` one or more times. Check that all VDUs of the VNF belong to the expected affinity group. basic_24 cluster_main daily regression ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete basic_24 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 7aca3ec6-30d6-4dde-a36e-00dd71af5ef0 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 11ed8e5d-6e8a-44f9-ab01-6f502628a8ca | basic_24-affinity-basic-1-affinity_basic-VM-2-0 | ACTIVE | osm-ext=172.21.248.239 | ubuntu20.04 | simple_requires-1-1-flv | | aecaec8f-d413-4588-b7fc-c5793fb8a342 | basic_24-affinity-basic-1-affinity_basic-VM-1-0 | ACTIVE | osm-ext=172.21.248.105 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 7aca3ec6-30d6-4dde-a36e-00dd71af5ef0 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.55 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_24 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${ns} Fails if objects are equal after converting them to strings. Delete NS instance. basic_24 cleanup cluster_main daily regression ${NSD_NAME} Delete a NS package from OSM. ${rc} ${stdout} Run And Return Rc And Output osm nspkg-delete ${nsd_id} Runs the keyword and continues execution even if a failure occurs. osm nspkg-delete ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-delete affinity_basic-ns 2>&1'. ${rc} = 0 ${stdout} = Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} Logs the given message with the given level. Deleted ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. ${nsd_id} Check that a NS package exists in OSM. ${rc} ${stdout} osm nspkg-list | awk '{print $2}' | grep ${nsd_id} Runs the given command in the system and returns the RC and output. Running command 'osm nspkg-list | awk '{print $2}' | grep affinity_basic-ns 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. Delete NS package from OSM. basic_24 cleanup cluster_main daily regression ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete affinity_basic-vnf 2>&1'. ${rc} = 0 ${stdout} = Deleted ${stdout} Logs the given message with the given level. Deleted ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${VNFD_DELETE_MAX_WAIT_TIME} ${VNFD_DELETE_POL_TIME} Check For VNFD ${vnfd_id} Runs the specified keyword and retries if it fails. ${vnfd_id} Check that a VNF package exists in OSM. ${rc} ${stdout} osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-list | awk '{print $2}' | grep affinity_basic-vnf 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${vnfd_id} Fails if objects are unequal after converting them to strings. ${stdout} ${vnfd_id} Fails if objects are equal after converting them to strings. Delete VNF package from OSM. basic_24 cleanup cluster_main daily regression Suite Cleanup Runs the given keyword with the given arguments and ignores possible error. Test Suit Cleanup: Deleting Descriptor, instance and vim Delete NS ${NS_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete NSD ${NSD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. Delete VNFD ${VNFD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. [BASIC-24] VNF with two VDUs belonging to an Openstack server group ${id} '%{PACKAGES_FOLDER}/${VNFD_PKG}' Onboards ("creates") a NF Package into OSM. - Parameters: - vnfd_pkg: Name (and location) of the NF Package - overrides (optional): String with options to override the EPA and/or interface properties of the Package. This is very useful to allow to deploy e.g. non-EPA packages in EPA VIMs (or vice-versa). Valid strings are the same as in the command. E.g.: - `--override-epa`: adds EPA attributes to all VDUs. - `--override-nonepa`: removes all EPA attributes from all VDUs. - `--override-paravirt`: converts all interfaces to `PARAVIRT`. This one can be combined with the others above (e.g. '--override-nonepa --override-paravirt'). - Relevant environment variables: - OVERRIDES: If the environment variable "OVERRIDES" exists, it prevails over the value in the argument. This is often more convenient to enforce the same behaviour for every test run in a given VIM. ${overrides} OVERRIDES default=${overrides} Returns the value of an environment variable with the given name. ${overrides} = ${rc} ${stdout} osm vnfpkg-create ${overrides} ${vnfd_pkg} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-create '/robot-systest/osm-packages/simple_ee_vnf' 2>&1'. ${rc} = 0 ${stdout} = Validating package /robot-systest/osm-packages/simple_ee_vnf Validation OK List of charms in the descriptor: set() Adding File: simple_ee_vnf Package created: /robot-systest/osm-packages/simple_ee_vnf... ${stdout} Logs the given message with the given level. Validating package /robot-systest/osm-packages/simple_ee_vnf Validation OK List of charms in the descriptor: set() Adding File: simple_ee_vnf Package created: /robot-systest/osm-packages/simple_ee_vnf.tar.gz Uploading package /robot-systest/osm-packages/simple_ee_vnf.tar.gz f3865249-866e-4024-ac25-83b89dbe5f7b ${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} = f3865249-866e-4024-ac25-83b89dbe5f7b ${id} ${id} = f3865249-866e-4024-ac25-83b89dbe5f7b ${VNFD_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${VNFD_ID} = f3865249-866e-4024-ac25-83b89dbe5f7b 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 2869b0fa-e0db-42cf-90d2-394def35e748 ${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} = 2869b0fa-e0db-42cf-90d2-394def35e748 ${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} = 8eb993c1-e9cc-4778-8a64-0b5a9ce94254 ${stdout} Logs the given message with the given level. 8eb993c1-e9cc-4778-8a64-0b5a9ce94254 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 8eb993c1-e9cc-4778-8a64-0b5a9ce94254 ${ns_id} Logs the given message with the given level. 8eb993c1-e9cc-4778-8a64-0b5a9ce94254 ${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 | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 7aca3ec6-30d6-4dde-a36e-00dd71af5ef0 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.55 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | 8eb993c1-e9cc-4778-8a64-0b5a9ce94254 | 2024-04-14T01:53:44 | BUILDING | INSTANTIATING (d1f10fb7-e1ed-42f6-a879-7c5063f9ea90) | N/A | +------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 8eb993c1-e9cc-4778-8a64-0b5a9ce94254 | 2024-04-14T01:53:44 | BUILDING | INSTANTIATING (d1f10fb7-e1ed-42f6-a879-7c5063f9ea90) | N/A | +------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | I... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | 58254198-1c59-4738-8466-82acf32df33a | basic_27_helm_ee-simple-mgmtVM-0 | ACTIVE | osm-ext=172.21.248.31 | ubuntu18.04 | mgmtVM-simple-1-flv-62 | | 74795229-8673-45d4-9501-1d53d030f792 | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.248.8 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 28601f7a-70c4-46d8-ba8a-859c6c2da1d7 | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.249.237 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 7aca3ec6-30d6-4dde-a36e-00dd71af5ef0 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.55 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | 8eb993c1-e9cc-4778-8a64-0b5a9ce94254 | 2024-04-14T01:53:44 | BUILDING | INSTANTIATING (d1f10fb7-e1ed-42f6-a879-7c5063f9ea90) | N/A | +------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 8eb993c1-e9cc-4778-8a64-0b5a9ce94254 | 2024-04-14T01:53:44 | BUILDING | INSTANTIATING (d1f10fb7-e1ed-42f6-a879-7c5063f9ea90) | N/A | +------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | I... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | 58254198-1c59-4738-8466-82acf32df33a | basic_27_helm_ee-simple-mgmtVM-0 | ACTIVE | osm-ext=172.21.248.31 | ubuntu18.04 | mgmtVM-simple-1-flv-62 | | 74795229-8673-45d4-9501-1d53d030f792 | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.248.8 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 28601f7a-70c4-46d8-ba8a-859c6c2da1d7 | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.249.237 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 7aca3ec6-30d6-4dde-a36e-00dd71af5ef0 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.55 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | 8eb993c1-e9cc-4778-8a64-0b5a9ce94254 | 2024-04-14T01:53:44 | BUILDING | INSTANTIATING (d1f10fb7-e1ed-42f6-a879-7c5063f9ea90) | N/A | +------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 8eb993c1-e9cc-4778-8a64-0b5a9ce94254 | 2024-04-14T01:53:44 | BUILDING | INSTANTIATING (d1f10fb7-e1ed-42f6-a879-7c5063f9ea90) | N/A | +------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | I... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | 58254198-1c59-4738-8466-82acf32df33a | basic_27_helm_ee-simple-mgmtVM-0 | ACTIVE | osm-ext=172.21.248.31 | ubuntu18.04 | mgmtVM-simple-1-flv-62 | | 74795229-8673-45d4-9501-1d53d030f792 | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.248.8 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 28601f7a-70c4-46d8-ba8a-859c6c2da1d7 | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.249.237 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 7aca3ec6-30d6-4dde-a36e-00dd71af5ef0 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.55 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | 8eb993c1-e9cc-4778-8a64-0b5a9ce94254 | 2024-04-14T01:53:44 | 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} = +--------------------------------------+--------------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | I... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | 58254198-1c59-4738-8466-82acf32df33a | basic_27_helm_ee-simple-mgmtVM-0 | ACTIVE | osm-ext=172.21.248.31 | ubuntu18.04 | mgmtVM-simple-1-flv-62 | | 74795229-8673-45d4-9501-1d53d030f792 | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.248.8 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 28601f7a-70c4-46d8-ba8a-859c6c2da1d7 | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.249.237 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 7aca3ec6-30d6-4dde-a36e-00dd71af5ef0 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.55 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | 8eb993c1-e9cc-4778-8a64-0b5a9ce94254 | 2024-04-14T01:53:44 | 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} = 8eb993c1-e9cc-4778-8a64-0b5a9ce94254 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 8eb993c1-e9cc-4778-8a64-0b5a9ce94254 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 8eb993c1-e9cc-4778-8a64-0b5a9ce94254 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = 5c51a231-081b-4fe9-8e68-37eb7d88cc3c ${stdout} Logs the given message with the given level. 5c51a231-081b-4fe9-8e68-37eb7d88cc3c ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 5c51a231-081b-4fe9-8e68-37eb7d88cc3c ${id} Logs the given message with the given level. 5c51a231-081b-4fe9-8e68-37eb7d88cc3c ${VNF_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${VNF_ID} = 5c51a231-081b-4fe9-8e68-37eb7d88cc3c ${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: "5c51a231-081b-4fe9-8e68-37eb7d88cc3c", vnfdId: "f3865249-866e-4024-ac25-83b89dbe5f7b"}]}' 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 8eb993c1-e9cc-4778-8a64-0b5a9ce94254 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.31 ${stdout} Logs the given message with the given level. 172.21.248.31 ${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.31 ${ip_addr} Logs the given message with the given level. 172.21.248.31 ${VNF_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. ${VNF_IP_ADDR} = 172.21.248.31 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.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 14 01:56:02 UTC 2024 System load: 0.12 Processes: 86 Usage of /: 5.9% of 19.21GB Users logged in: 0 Memory usage: 12% IP address for ens3: 172.21.248.31 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.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 14 01:56:04 UTC 2024 System load: 0.12 Processes: 86 Usage of /: 5.9% of 19.21GB Users logged in: 0 Memory usage: 12% IP address for ens3: 172.21.248.31 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 14 01:56:02 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} = 92e0bfef-9250-4b61-9d31-5d8b660b8f83 ${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 92e0bfef-9250-4b61-9d31-5d8b660b8f83 --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 92e0bfef-9250-4b61-9d31-5d8b660b8f83 --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} = 92e0bfef-9250-4b61-9d31-5d8b660b8f83 ${ns_op_id_1} Logs the given message with the given level. 92e0bfef-9250-4b61-9d31-5d8b660b8f83 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.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 14 01:56:09 UTC 2024 System load: 0.43 Processes: 86 Usage of /: 5.9% of 19.21GB Users logged in: 0 Memory usage: 12% IP address for ens3: 172.21.248.31 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 14 01:56:04 2024 from 172.21.249.4 To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@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 8eb993c1-e9cc-4778-8a64-0b5a9ce94254 --updatetype CHANGE_VNFPKG --config '{changeVnfPackageData: [{vnfInstanceId: "5c51a231-081b-4fe9-8e68-37eb7d88cc3c", vnfdId: "f3865249-866e-4024-ac25-83b89dbe5f7b"}]}' --timeout 500 --wait 2>&1'. ${rc} = 0 ${stdout} = detailed-status: In progress detailed-status: Done 4b383a34-d1ba-4a64-82dc-e4ae18574664 ${stdout} Logs the given message with the given level. detailed-status: In progress detailed-status: Done 4b383a34-d1ba-4a64-82dc-e4ae18574664 ${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} = 40a3738b-0415-43a6-8ec2-03661afa2063 ${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 40a3738b-0415-43a6-8ec2-03661afa2063 --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 40a3738b-0415-43a6-8ec2-03661afa2063 --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} = 40a3738b-0415-43a6-8ec2-03661afa2063 ${ns_op_id_2} Logs the given message with the given level. 40a3738b-0415-43a6-8ec2-03661afa2063 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.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 14 01:57:33 UTC 2024 System load: 0.1 Processes: 88 Usage of /: 5.9% of 19.21GB Users logged in: 0 Memory usage: 12% IP address for ens3: 172.21.248.31 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 14 01:56: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-27-helm-ee-simple-mgmtvm-0:~$ ${output} ls -d ${folder} Executes ``command`` on the remote machine and returns its outputs. Executing command 'ls -d /home/ubuntu/myfolder1'. Command exited with return code 0. ${output} = /home/ubuntu/myfolder1 Closes all open connections. ${output} ${folder} Fails if objects are unequal after converting them to strings. Check whether the folder created in the previous test via Day 2 operations exist or not. basic_27 cluster_ee_config daily regression ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete basic_27_helm_ee_update_test 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 42be773c-a810-4a9e-9673-b1554a6e9eea | hfbasic-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.101 | ubuntu20.04 | simple_requires-1-1-flv | | 58254198-1c59-4738-8466-82acf32df33a | basic_27_helm_ee-simple-mgmtVM-0 | ACTIVE | osm-ext=172.21.248.31 | ubuntu18.04 | mgmtVM-simple-1-flv-62 | | 7aca3ec6-30d6-4dde-a36e-00dd71af5ef0 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.55 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_27_helm_ee_update_test 2>&1'. ${rc} = 0 ${stdout} = basic_27_helm_ee_update_test ${rc},${stdout} Logs the given message with the given level. 0,basic_27_helm_ee_update_test ${stdout} ${ns} Fails if objects are equal after converting them to strings. basic_27_helm_ee_update_test == basic_27_helm_ee_update_test ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 42be773c-a810-4a9e-9673-b1554a6e9eea | hfbasic-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.101 | ubuntu20.04 | simple_requires-1-1-flv | | 7aca3ec6-30d6-4dde-a36e-00dd71af5ef0 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.55 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 4103817a-b139-4801-bec0-8969204e923a ${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} = 4103817a-b139-4801-bec0-8969204e923a ${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 1047f846-7a08-46a3-a4cc-01e3f21c4970 ${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} = 1047f846-7a08-46a3-a4cc-01e3f21c4970 ${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} = 9e214ec4-c664-4b74-94e4-ad4811aba8c8 ${stdout} Logs the given message with the given level. 9e214ec4-c664-4b74-94e4-ad4811aba8c8 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 9e214ec4-c664-4b74-94e4-ad4811aba8c8 ${ns_id} Logs the given message with the given level. 9e214ec4-c664-4b74-94e4-ad4811aba8c8 ${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 | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 42be773c-a810-4a9e-9673-b1554a6e9eea | hfbasic-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.101 | ubuntu20.04 | simple_requires-1-1-flv | | 7aca3ec6-30d6-4dde-a36e-00dd71af5ef0 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.55 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | 9e214ec4-c664-4b74-94e4-ad4811aba8c8 | 2024-04-14T01:58:08 | BUILDING | INSTANTIATING (d93dd42f-e6d5-44b8-b00a-795bdd3a3189) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 9e214ec4-c664-4b74-94e4-ad4811aba8c8 | 2024-04-14T01:58:08 | BUILDING | INSTANTIATING (d93dd42f-e6d5-44b8-b00a-795bdd3a3189) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | 755d7992-44f0-431a-8d3a-2b8fe664d0e1 | basic_28-vnf-persistent-v-keep-persistent-vol-VM-0 | BUILD | | ubuntu20.04 | keep-persistent-vol-VM-vnf-persistent-volumes-1-flv | | 42be773c-a810-4a9e-9673-b1554a6e9eea | hfbasic-vnf-hackfest_basic-VM-0 | ACTIVE | | ubuntu20.04 | simple_requires-1-1-flv | | 7aca3ec6-30d6-4dde-a36e-00dd71af5ef0 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.55 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ ${rc} ${stdout} osm ns-list --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 | 9e214ec4-c664-4b74-94e4-ad4811aba8c8 | 2024-04-14T01:58:08 | BUILDING | INSTANTIATING (d93dd42f-e6d5-44b8-b00a-795bdd3a3189) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 9e214ec4-c664-4b74-94e4-ad4811aba8c8 | 2024-04-14T01:58:08 | BUILDING | INSTANTIATING (d93dd42f-e6d5-44b8-b00a-795bdd3a3189) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | 755d7992-44f0-431a-8d3a-2b8fe664d0e1 | basic_28-vnf-persistent-v-keep-persistent-vol-VM-0 | ACTIVE | osm-ext=172.21.248.95 | ubuntu20.04 | keep-persistent-vol-VM-vnf-persistent-volumes-1-flv | | 7aca3ec6-30d6-4dde-a36e-00dd71af5ef0 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.55 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ ${rc} ${stdout} osm ns-list --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 | 9e214ec4-c664-4b74-94e4-ad4811aba8c8 | 2024-04-14T01:58: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} = +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | ID... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | 755d7992-44f0-431a-8d3a-2b8fe664d0e1 | basic_28-vnf-persistent-v-keep-persistent-vol-VM-0 | ACTIVE | osm-ext=172.21.248.95 | ubuntu20.04 | keep-persistent-vol-VM-vnf-persistent-volumes-1-flv | | 7aca3ec6-30d6-4dde-a36e-00dd71af5ef0 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.55 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ ${rc} ${stdout} osm ns-list --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 | 9e214ec4-c664-4b74-94e4-ad4811aba8c8 | 2024-04-14T01:58: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} = 9e214ec4-c664-4b74-94e4-ad4811aba8c8 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 9e214ec4-c664-4b74-94e4-ad4811aba8c8 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 9e214ec4-c664-4b74-94e4-ad4811aba8c8 | grep 9e214ec4-c664-4b74-94e4-ad4811aba8c8 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | b292a2e8-8ed4-4c90-a034-a0c33fac3fe9 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ b292a2e8-8ed4-4c90-a034-a0c33fac3fe9 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: b292a2e8-8ed4-4c90-a034-a0c33fac3fe9 @{vnf_list} ${vnfs_list} = ['b292a2e8-8ed4-4c90-a034-a0c33fac3fe9'] ${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 b292a2e8-8ed4-4c90-a034-a0c33fac3fe9 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 755d7992-44f0-431a-8d3a-2b8fe664d0e1 ${stdout} Logs the given message with the given level. 755d7992-44f0-431a-8d3a-2b8fe664d0e1 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${vim_id} = 755d7992-44f0-431a-8d3a-2b8fe664d0e1 ${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 755d7992-44f0-431a-8d3a-2b8fe664d0e1 -c volumes_attached -f value 2>&1'. ${rc} = 0 ${stdout} = [{'device': None, 'id': 'af72099f-4006-404a-9d61-cb21200dbd41', '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': 'af72099f-4006-404a-9d61-cb21200dbd41', 'volume_id': None, 'attachment_id': None, 'bdm_id': None, 'tag': None, 'delete_on_termination': False, 'name': None, 'location': None}, {'device': None, 'id': 'ff3ec601-ef9d-4694-a9b9-58b80bf1a720', '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': 'af72099f-4006-404a-9d61-cb21200dbd41', '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': 'af72099f-4006-404a-9d61-cb21200dbd41', 'volume_id': None, 'attachment_id': None, 'bdm_id': None, 'tag': None, 'delete_on_termination': False, 'name': None, 'location': None}, {'device': None, 'id': 'ff3ec601-ef9d-4694-a9b9-58b80bf1a720', '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} = ['af72099f-4006-404a-9d61-cb21200dbd41', 'ff3ec601-ef9d-4694-a9b9-58b80bf1a720'] ${stdout} Logs the given message with the given level. ['af72099f-4006-404a-9d61-cb21200dbd41', 'ff3ec601-ef9d-4694-a9b9-58b80bf1a720'] ${stdout} ${VOLUME_MATCH} = ['af72099f-4006-404a-9d61-cb21200dbd41', 'ff3ec601-ef9d-4694-a9b9-58b80bf1a720'] ${VOLUME_MATCH} Makes a variable available everywhere within the scope of the current suite. ${VOLUME_MATCH} = ['af72099f-4006-404a-9d61-cb21200dbd41', 'ff3ec601-ef9d-4694-a9b9-58b80bf1a720'] ${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 af72099f-4006-404a-9d61-cb21200dbd41 | 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} = af72099f-4006-404a-9d61-cb21200dbd41 ${ORDINARY_VOL_ID} ${volume_match}[1] Makes a variable available everywhere within the scope of the current suite. ${ORDINARY_VOL_ID} = ff3ec601-ef9d-4694-a9b9-58b80bf1a720 ${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 ff3ec601-ef9d-4694-a9b9-58b80bf1a720 | grep bootable | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = false ${stdout} Logs the given message with the given level. false ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${bootable} = false ${ROOT_VOL_ID} ${volume_match}[${index}] Makes a variable available everywhere within the scope of the current suite. ${ORDINARY_VOL_ID} ${volume_match}[1] Makes a variable available everywhere within the scope of the current suite. ${ORDINARY_VOL_ID} ${volume_match}[0] Makes a variable available everywhere within the scope of the current suite. Get the identifiers of the persistent volumes attached to VM in the NS and store in suite variables ROOT_VOL_ID and ORDINARY_VOL_ID. basic_28 cluster_main daily regression ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete basic_28 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | ID... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | 436f1b51-954b-4022-b9c8-d61c9aab9d50 | hfcloudinit-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 3abb862b-1dca-45e0-ae13-4efc882aa524 | hfcloudinit-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 755d7992-44f0-431a-8d3a-2b8fe664d0e1 | basic_28-vnf-persistent-v-keep-persistent-vol-VM-0 | ACTIVE | osm-ext=172.21.248.95 | ubuntu20.04 | keep-persistent-vol-VM-vnf-persistent-volumes-1-flv | | 7aca3ec6-30d6-4dde-a36e-00dd71af5ef0 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.55 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | +--------------------------------------+--------------------------------------------------+--------+-------------------------------------------------------------------------+-------------+-------------------------+ | 0f87329e-7274-44b2-8a55-5b2d82f6da0d | hfcloudinit-vnf2-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.86.132; hfcloudinit-internal=192.168.232.13 | ubuntu20.04 | simple_requires-1-1-flv | | d0f094e3-cbf9-425c-83d2-0ec855e6bc4a | hfcloudinit-vnf2-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.232.204; osm-ext=172.21.249.134 | ubuntu20.04 | simple_requires-1-1-flv | | 436f1b51-954b-4022-b9c8-d61c9aab9d50 | hfcloudinit-vnf1-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.86.28; hfcloudinit-internal=192.168.91.228 | ubuntu20.04 | simple_requires-1-1-flv | | 3abb862b-1dca-45e0-ae13-4efc882aa524 | hfcloudinit-vnf1-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.91.244; osm-ext=172.21.249.196 | ubuntu20.04 | simple_requires-1-1-flv | | 7aca3ec6-30d6-4dde-a36e-00dd71af5ef0 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.55 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 af72099f-4006-404a-9d61-cb21200dbd41 | 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 ff3ec601-ef9d-4694-a9b9-58b80bf1a720 | 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: af72099f-4006-... 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: af72... ${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: af72099f-4006-404a-9d61-cb21200dbd41}, {"name": persistent-volume, vim-volume-id: ff3ec601-ef9d-4694-a9b9-58b80bf1a720}] } ] } ] }' --ssh_keys /root/.ssh/id_rsa.pub 2>&1'. ${rc} = 0 ${stdout} = 9051d25e-af3e-4951-a000-e8d9794ce737 ${stdout} Logs the given message with the given level. 9051d25e-af3e-4951-a000-e8d9794ce737 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 9051d25e-af3e-4951-a000-e8d9794ce737 ${ns_id} Logs the given message with the given level. 9051d25e-af3e-4951-a000-e8d9794ce737 ${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 | +--------------------------------------+--------------------------------------------------+--------+-------------------------------------------------------------------------+-------------+-------------------------+ | 0f87329e-7274-44b2-8a55-5b2d82f6da0d | hfcloudinit-vnf2-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.86.132; hfcloudinit-internal=192.168.232.13 | ubuntu20.04 | simple_requires-1-1-flv | | d0f094e3-cbf9-425c-83d2-0ec855e6bc4a | hfcloudinit-vnf2-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.232.204; osm-ext=172.21.249.134 | ubuntu20.04 | simple_requires-1-1-flv | | 436f1b51-954b-4022-b9c8-d61c9aab9d50 | hfcloudinit-vnf1-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.86.28; hfcloudinit-internal=192.168.91.228 | ubuntu20.04 | simple_requires-1-1-flv | | 3abb862b-1dca-45e0-ae13-4efc882aa524 | hfcloudinit-vnf1-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.91.244; osm-ext=172.21.249.196 | ubuntu20.04 | simple_requires-1-1-flv | | 7aca3ec6-30d6-4dde-a36e-00dd71af5ef0 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.55 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------------------------------+--------+-------------------------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | 9051d25e-af3e-4951-a000-e8d9794ce737 | 2024-04-14T01:59:53 | BUILDING | INSTANTIATING (02e776d2-19ef-47cb-a4b1-d0416c9b0d9f) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 9051d25e-af3e-4951-a000-e8d9794ce737 | 2024-04-14T01:59:53 | BUILDING | INSTANTIATING (02e776d2-19ef-47cb-a4b1-d0416c9b0d9f) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+----------------------------------------------------+--------+-------------------------------------------------------------------------+-------------+-----------------------------------------------------+ | 37b8bd79-b1f6-4e79-b41b-a90a0ed11746 | basic_28-vnf-persistent-v-keep-persistent-vol-VM-0 | ACTIVE | osm-ext=172.21.249.21 | ubuntu20.04 | keep-persistent-vol-VM-vnf-persistent-volumes-1-flv | | 0f87329e-7274-44b2-8a55-5b2d82f6da0d | hfcloudinit-vnf2-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.86.132; hfcloudinit-internal=192.168.232.13 | ubuntu20.04 | simple_requires-1-1-flv | | d0f094e3-cbf9-425c-83d2-0ec855e6bc4a | hfcloudinit-vnf2-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.232.204; osm-ext=172.21.249.134 | ubuntu20.04 | simple_requires-1-1-flv | | 436f1b51-954b-4022-b9c8-d61c9aab9d50 | hfcloudinit-vnf1-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.86.28; hfcloudinit-internal=192.168.91.228 | ubuntu20.04 | simple_requires-1-1-flv | | 3abb862b-1dca-45e0-ae13-4efc882aa524 | hfcloudinit-vnf1-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.91.244; osm-ext=172.21.249.196 | ubuntu20.04 | simple_requires-1-1-flv | | 7aca3ec6-30d6-4dde-a36e-00dd71af5ef0 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.55 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------------------------+--------+-------------------------------------------------------------------------+-------------+-----------------------------------------------------+ ${rc} ${stdout} osm ns-list --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 | 9051d25e-af3e-4951-a000-e8d9794ce737 | 2024-04-14T01:59:53 | BUILDING | INSTANTIATING (02e776d2-19ef-47cb-a4b1-d0416c9b0d9f) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 9051d25e-af3e-4951-a000-e8d9794ce737 | 2024-04-14T01:59:53 | BUILDING | INSTANTIATING (02e776d2-19ef-47cb-a4b1-d0416c9b0d9f) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+----------------------------------------------------+--------+--------------------------------------------------------------+-------------+-----------------------------------------------------+ | 37b8bd79-b1f6-4e79-b41b-a90a0ed11746 | basic_28-vnf-persistent-v-keep-persistent-vol-VM-0 | ACTIVE | osm-ext=172.21.249.21 | ubuntu20.04 | keep-persistent-vol-VM-vnf-persistent-volumes-1-flv | | 0f87329e-7274-44b2-8a55-5b2d82f6da0d | hfcloudinit-vnf2-dataVM-0 | ACTIVE | hfcloudinit-internal=192.168.232.13 | ubuntu20.04 | simple_requires-1-1-flv | | d0f094e3-cbf9-425c-83d2-0ec855e6bc4a | hfcloudinit-vnf2-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.232.204; osm-ext=172.21.249.134 | ubuntu20.04 | simple_requires-1-1-flv | | 436f1b51-954b-4022-b9c8-d61c9aab9d50 | hfcloudinit-vnf1-dataVM-0 | ACTIVE | hfcloudinit-internal=192.168.91.228 | ubuntu20.04 | simple_requires-1-1-flv | | 3abb862b-1dca-45e0-ae13-4efc882aa524 | hfcloudinit-vnf1-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.91.244; osm-ext=172.21.249.196 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------------------------+--------+--------------------------------------------------------------+-------------+-----------------------------------------------------+ ${rc} ${stdout} osm ns-list --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 | 9051d25e-af3e-4951-a000-e8d9794ce737 | 2024-04-14T01:59: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 | +--------------------------------------+----------------------------------------------------+--------+--------------------------------------------------------------+-------------+-----------------------------------------------------+ | 37b8bd79-b1f6-4e79-b41b-a90a0ed11746 | basic_28-vnf-persistent-v-keep-persistent-vol-VM-0 | ACTIVE | osm-ext=172.21.249.21 | ubuntu20.04 | keep-persistent-vol-VM-vnf-persistent-volumes-1-flv | | 0f87329e-7274-44b2-8a55-5b2d82f6da0d | hfcloudinit-vnf2-dataVM-0 | ACTIVE | hfcloudinit-internal=192.168.232.13 | ubuntu20.04 | simple_requires-1-1-flv | | d0f094e3-cbf9-425c-83d2-0ec855e6bc4a | hfcloudinit-vnf2-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.232.204; osm-ext=172.21.249.134 | ubuntu20.04 | simple_requires-1-1-flv | | 436f1b51-954b-4022-b9c8-d61c9aab9d50 | hfcloudinit-vnf1-dataVM-0 | ACTIVE | hfcloudinit-internal=192.168.91.228 | ubuntu20.04 | simple_requires-1-1-flv | | 3abb862b-1dca-45e0-ae13-4efc882aa524 | hfcloudinit-vnf1-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.91.244; osm-ext=172.21.249.196 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------------------------+--------+--------------------------------------------------------------+-------------+-----------------------------------------------------+ ${rc} ${stdout} osm ns-list --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 | 9051d25e-af3e-4951-a000-e8d9794ce737 | 2024-04-14T01:59: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} = 9051d25e-af3e-4951-a000-e8d9794ce737 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 9051d25e-af3e-4951-a000-e8d9794ce737 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} = af72099f-4006-404a-9d61-cb21200dbd41 ${PREV_ORDINARY_VOL_ID} ${ORDINARY_VOL_ID} Makes a variable available everywhere within the scope of the current suite. ${PREV_ORDINARY_VOL_ID} = ff3ec601-ef9d-4694-a9b9-58b80bf1a720 ${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 9051d25e-af3e-4951-a000-e8d9794ce737 | grep 9051d25e-af3e-4951-a000-e8d9794ce737 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | a11245b9-4bff-4fcc-be71-b978cc1ef6a5 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ a11245b9-4bff-4fcc-be71-b978cc1ef6a5 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: a11245b9-4bff-4fcc-be71-b978cc1ef6a5 @{vnf_list} ${vnfs_list} = ['a11245b9-4bff-4fcc-be71-b978cc1ef6a5'] ${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 a11245b9-4bff-4fcc-be71-b978cc1ef6a5 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 37b8bd79-b1f6-4e79-b41b-a90a0ed11746 ${stdout} Logs the given message with the given level. 37b8bd79-b1f6-4e79-b41b-a90a0ed11746 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${vim_id} = 37b8bd79-b1f6-4e79-b41b-a90a0ed11746 ${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 37b8bd79-b1f6-4e79-b41b-a90a0ed11746 -c volumes_attached -f value 2>&1'. ${rc} = 0 ${stdout} = [{'device': None, 'id': 'af72099f-4006-404a-9d61-cb21200dbd41', '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': 'af72099f-4006-404a-9d61-cb21200dbd41', 'volume_id': None, 'attachment_id': None, 'bdm_id': None, 'tag': None, 'delete_on_termination': False, 'name': None, 'location': None}, {'device': None, 'id': 'ff3ec601-ef9d-4694-a9b9-58b80bf1a720', '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': 'af72099f-4006-404a-9d61-cb21200dbd41', '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': 'af72099f-4006-404a-9d61-cb21200dbd41', 'volume_id': None, 'attachment_id': None, 'bdm_id': None, 'tag': None, 'delete_on_termination': False, 'name': None, 'location': None}, {'device': None, 'id': 'ff3ec601-ef9d-4694-a9b9-58b80bf1a720', '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} = ['af72099f-4006-404a-9d61-cb21200dbd41', 'ff3ec601-ef9d-4694-a9b9-58b80bf1a720'] ${stdout} Logs the given message with the given level. ['af72099f-4006-404a-9d61-cb21200dbd41', 'ff3ec601-ef9d-4694-a9b9-58b80bf1a720'] ${stdout} ${volume_match} = ['af72099f-4006-404a-9d61-cb21200dbd41', 'ff3ec601-ef9d-4694-a9b9-58b80bf1a720'] ${VOLUME_MATCH} Makes a variable available everywhere within the scope of the current suite. ${VOLUME_MATCH} = ['af72099f-4006-404a-9d61-cb21200dbd41', 'ff3ec601-ef9d-4694-a9b9-58b80bf1a720'] ${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 af72099f-4006-404a-9d61-cb21200dbd41 | 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} = af72099f-4006-404a-9d61-cb21200dbd41 ${ORDINARY_VOL_ID} ${volume_match}[1] Makes a variable available everywhere within the scope of the current suite. ${ORDINARY_VOL_ID} = ff3ec601-ef9d-4694-a9b9-58b80bf1a720 ${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 ff3ec601-ef9d-4694-a9b9-58b80bf1a720 | grep bootable | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = false ${stdout} Logs the given message with the given level. false ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${bootable} = false ${ROOT_VOL_ID} ${volume_match}[${index}] Makes a variable available everywhere within the scope of the current suite. ${ORDINARY_VOL_ID} ${volume_match}[1] Makes a variable available everywhere within the scope of the current suite. ${ORDINARY_VOL_ID} ${volume_match}[0] Makes a variable available everywhere within the scope of the current suite. ${ROOT_VOL_ID} ${PREV_ROOT_VOL_ID} msg=Existing root volume is not attached to server Fails if objects are unequal after converting them to strings. ${ORDINARY_VOL_ID} ${PREV_ORDINARY_VOL_ID} msg=Existing ordinary volume is not attached to server Fails if objects are unequal after converting them to strings. Get the identifiers of the persistent volumes attached to VM in the second NS instance and verify that they are the same of the first NS instance. basic_28 cluster_main daily regression ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete basic_28 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | ID... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ | 37b8bd79-b1f6-4e79-b41b-a90a0ed11746 | basic_28-vnf-persistent-v-keep-persistent-vol-VM-0 | ACTIVE | osm-ext=172.21.249.21 | ubuntu20.04 | keep-persistent-vol-VM-vnf-persistent-volumes-1-flv | | 0f87329e-7274-44b2-8a55-5b2d82f6da0d | hfcloudinit-vnf2-dataVM-0 | ACTIVE | | ubuntu20.04 | simple_requires-1-1-flv | | d0f094e3-cbf9-425c-83d2-0ec855e6bc4a | hfcloudinit-vnf2-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.134 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+----------------------------------------------------+--------+------------------------+-------------+-----------------------------------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_28 2>&1'. ${rc} = 0 ${stdout} = basic_28 ${rc},${stdout} Logs the given message with the given level. 0,basic_28 ${stdout} ${ns} Fails if objects are equal after converting them to strings. basic_28 == basic_28 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | 94af0a61-135b-4d38-b8fb-ee1be3950c24 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.77 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 af72099f-4006-404a-9d61-cb21200dbd41 | 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 ff3ec601-ef9d-4694-a9b9-58b80bf1a720 | 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 af72099f-4006-404a-9d61-cb21200dbd41 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 ff3ec601-ef9d-4694-a9b9-58b80bf1a720 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 9f5fc5bd-4009-48d8-a05e-2c5eb4c63552 ${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} = 9f5fc5bd-4009-48d8-a05e-2c5eb4c63552 ${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 5126323b-8969-497b-9fea-3d7a13d4491f ${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} = 5126323b-8969-497b-9fea-3d7a13d4491f ${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} = ddf1801d-3d6f-4db9-9293-d24cdbe8cbe8 ${stdout} Logs the given message with the given level. ddf1801d-3d6f-4db9-9293-d24cdbe8cbe8 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = ddf1801d-3d6f-4db9-9293-d24cdbe8cbe8 ${ns_id} Logs the given message with the given level. ddf1801d-3d6f-4db9-9293-d24cdbe8cbe8 ${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 | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | 94af0a61-135b-4d38-b8fb-ee1be3950c24 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.77 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | ddf1801d-3d6f-4db9-9293-d24cdbe8cbe8 | 2024-04-14T02:01:54 | BUILDING | INSTANTIATING (0b6deaad-aaed-4ee6-aa94-305ce87c65f4) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | ddf1801d-3d6f-4db9-9293-d24cdbe8cbe8 | 2024-04-14T02:01:54 | BUILDING | INSTANTIATING (0b6deaad-aaed-4ee6-aa94-305ce87c65f4) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+---------------------------------------+--------+-------------------------------------------------------------------------+-------------+-------------------------+ | 23544bc4-6678-4c26-ab41-a542f6c8d79f | hfmultivdu-vnf2-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.137.103; hfmultivdu-internal=192.168.225.198 | ubuntu20.04 | simple_requires-1-1-flv | | e18d0e99-0e4d-4b20-80bd-8ae0e8baf308 | hfmultivdu-vnf2-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.225.149; osm-ext=172.21.249.78 | ubuntu20.04 | simple_requires-1-1-flv | | cd48aee4-f08b-4276-b468-056be555b448 | basic_29-vnf-dataVM-0 | ACTIVE | basic_29-internal=2001:db8::5b | ubuntu20.04 | simple_requires-1-1-flv | | da329b12-0ded-411d-bf50-d81fa70d5bf3 | basic_29-vnf-mgmtVM-0 | ACTIVE | basic_29-internal=2001:db8::35e; osm-ext=172.21.249.108 | ubuntu20.04 | simple_requires-1-1-flv | | 09b5b4ba-4cce-4fa0-98e0-af17de0f748a | hfmultivdu-vnf1-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.137.146; hfmultivdu-internal=192.168.183.158 | ubuntu20.04 | simple_requires-1-1-flv | | b4fde9c3-b265-495b-a887-0273b4409c2d | hfmultivdu-vnf1-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.183.136; osm-ext=172.21.248.217 | ubuntu20.04 | simple_requires-1-1-flv | | 94af0a61-135b-4d38-b8fb-ee1be3950c24 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.77 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+---------------------------------------+--------+-------------------------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | ddf1801d-3d6f-4db9-9293-d24cdbe8cbe8 | 2024-04-14T02:01:54 | BUILDING | INSTANTIATING (0b6deaad-aaed-4ee6-aa94-305ce87c65f4) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | ddf1801d-3d6f-4db9-9293-d24cdbe8cbe8 | 2024-04-14T02:01:54 | BUILDING | INSTANTIATING (0b6deaad-aaed-4ee6-aa94-305ce87c65f4) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+---------------------------------------+--------+-------------------------------------------------------------------------+-------------+-------------------------+ | 23544bc4-6678-4c26-ab41-a542f6c8d79f | hfmultivdu-vnf2-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.137.103; hfmultivdu-internal=192.168.225.198 | ubuntu20.04 | simple_requires-1-1-flv | | e18d0e99-0e4d-4b20-80bd-8ae0e8baf308 | hfmultivdu-vnf2-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.225.149; osm-ext=172.21.249.78 | ubuntu20.04 | simple_requires-1-1-flv | | cd48aee4-f08b-4276-b468-056be555b448 | basic_29-vnf-dataVM-0 | ACTIVE | basic_29-internal=2001:db8::5b | ubuntu20.04 | simple_requires-1-1-flv | | da329b12-0ded-411d-bf50-d81fa70d5bf3 | basic_29-vnf-mgmtVM-0 | ACTIVE | basic_29-internal=2001:db8::35e; osm-ext=172.21.249.108 | ubuntu20.04 | simple_requires-1-1-flv | | 09b5b4ba-4cce-4fa0-98e0-af17de0f748a | hfmultivdu-vnf1-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.137.146; hfmultivdu-internal=192.168.183.158 | ubuntu20.04 | simple_requires-1-1-flv | | b4fde9c3-b265-495b-a887-0273b4409c2d | hfmultivdu-vnf1-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.183.136; osm-ext=172.21.248.217 | ubuntu20.04 | simple_requires-1-1-flv | | 94af0a61-135b-4d38-b8fb-ee1be3950c24 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.77 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+---------------------------------------+--------+-------------------------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | ddf1801d-3d6f-4db9-9293-d24cdbe8cbe8 | 2024-04-14T02:01:54 | 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 | +--------------------------------------+---------------------------------------+--------+-------------------------------------------------------------------------+-------------+-------------------------+ | 23544bc4-6678-4c26-ab41-a542f6c8d79f | hfmultivdu-vnf2-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.137.103; hfmultivdu-internal=192.168.225.198 | ubuntu20.04 | simple_requires-1-1-flv | | e18d0e99-0e4d-4b20-80bd-8ae0e8baf308 | hfmultivdu-vnf2-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.225.149; osm-ext=172.21.249.78 | ubuntu20.04 | simple_requires-1-1-flv | | cd48aee4-f08b-4276-b468-056be555b448 | basic_29-vnf-dataVM-0 | ACTIVE | basic_29-internal=2001:db8::5b | ubuntu20.04 | simple_requires-1-1-flv | | da329b12-0ded-411d-bf50-d81fa70d5bf3 | basic_29-vnf-mgmtVM-0 | ACTIVE | basic_29-internal=2001:db8::35e; osm-ext=172.21.249.108 | ubuntu20.04 | simple_requires-1-1-flv | | 09b5b4ba-4cce-4fa0-98e0-af17de0f748a | hfmultivdu-vnf1-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.137.146; hfmultivdu-internal=192.168.183.158 | ubuntu20.04 | simple_requires-1-1-flv | | b4fde9c3-b265-495b-a887-0273b4409c2d | hfmultivdu-vnf1-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.183.136; osm-ext=172.21.248.217 | ubuntu20.04 | simple_requires-1-1-flv | | 94af0a61-135b-4d38-b8fb-ee1be3950c24 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.77 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+---------------------------------------+--------+-------------------------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | ddf1801d-3d6f-4db9-9293-d24cdbe8cbe8 | 2024-04-14T02:01:54 | 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} = ddf1801d-3d6f-4db9-9293-d24cdbe8cbe8 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = ddf1801d-3d6f-4db9-9293-d24cdbe8cbe8 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 ddf1801d-3d6f-4db9-9293-d24cdbe8cbe8 | grep ddf1801d-3d6f-4db9-9293-d24cdbe8cbe8 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = eee880aa-6e3b-44e4-8714-63a369899ee1 ${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} = [ eee880aa-6e3b-44e4-8714-63a369899ee1 ] @{vdur} @{vnfr_list} = [ eee880aa-6e3b-44e4-8714-63a369899ee1 ] ${vnfr_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: eee880aa-6e3b-44e4-8714-63a369899ee1 ${VNF_ID} ${vnfr_list}[0] Makes a variable available everywhere within the scope of the current suite. ${VNF_ID} = eee880aa-6e3b-44e4-8714-63a369899ee1 ${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 ddf1801d-3d6f-4db9-9293-d24cdbe8cbe8 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.108 ${stdout} Logs the given message with the given level. 172.21.249.108 ${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.108 ${VNF_IPMGMT} ${ip} Makes a variable available everywhere within the scope of the current suite. ${VNF_IPMGMT} = 172.21.249.108 ${VNF_IPMGMT} Logs the given message with the given level. 172.21.249.108 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 eee880aa-6e3b-44e4-8714-63a369899ee1 --literal | yq '.vdur[0].interfaces[] | select(."vnf-vld-id" == "internal")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 2001:db8::35e ${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 eee880aa-6e3b-44e4-8714-63a369899ee1 --literal | yq '.vdur[1].interfaces[] | select(."vnf-vld-id" == "internal")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 2001:db8::5b ${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 eee880aa-6e3b-44e4-8714-63a369899ee1 --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': nfvisrv11, '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': nfvisrv11, '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-14T02:02:03Z', description: '', device_id: da329b12-0ded-411d-bf50-d81fa70d5bf3, device_owner: 'compute:nova', extra_dhcp_opts: [], fixed_ips: [{ip_address: 172.21.249.108, subnet_id: d14f68b7-8287-41fe-b533-dafb2240680a}], id: 2e19f576-c490-4f2c-a68d-11a6905b88c9, mac_address: 'fa:16:3e:90:44:35', 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-14T02:02:13Z'} {admin_state_up: true, allowed_address_pairs: [], 'binding:host_id': nfvisrv11, '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-14T02:02:04Z', description: '', device_id: da329b12-0ded-411d-bf50-d81fa70d5bf3, device_owner: 'compute:nova', extra_dhcp_opts: [], fixed_ips: [{ip_address: '2001:db8::35e', subnet_id: 25dc9b22-c4ba-4012-b0cc-eca4d486afd2}], id: 8a6e774f-336c-4558-8d9c-2d91ddf5c087, mac_address: 'fa:16:3e:d4:d3:11', name: mgmtVM-eth1, network_id: 345b85dc-0e40-4a9d-a5bf-ac4ca6620ec9, 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-14T02:02:16Z'} ${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} = ['25dc9b22-c4ba-4012-b0cc-eca4d486afd2'] ${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 25dc9b22-c4ba-4012-b0cc-eca4d486afd2 -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-14T02:02:02Z", "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-14T02:02:02Z", "description": "", "dns_nameservers": [], "dns_publish_fixed_ip": null, "enable_dhcp": true, "gateway_ip": "2001:db8::1", "host_routes": [], "id": "25dc9b22-c4ba-4012-b0cc-eca4d486afd2", "ip_version": 6, "ipv6_address_mode": "dhcpv6-stateful", "ipv6_ra_mode": "dhcpv6-stateful", "name": "basic_29-internal-subnet", "network_id": "345b85dc-0e40-4a9d-a5bf-ac4ca6620ec9", "project_id": "34a71bb7d82f4ec691d8cc11045ae83e", "revision_number": 0, "segment_id": null, "service_types": [], "subnetpool_id": null, "tags": [], "updated_at": "2024-04-14T02:02:02Z" } ${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-14T02:02:02Z", "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-14T02:02:02Z', '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 | +--------------------------------------+---------------------------------------+--------+-------------------------------------------------------------------------+-------------+-------------------------+ | 23544bc4-6678-4c26-ab41-a542f6c8d79f | hfmultivdu-vnf2-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.137.103; hfmultivdu-internal=192.168.225.198 | ubuntu20.04 | simple_requires-1-1-flv | | e18d0e99-0e4d-4b20-80bd-8ae0e8baf308 | hfmultivdu-vnf2-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.225.149; osm-ext=172.21.249.78 | ubuntu20.04 | simple_requires-1-1-flv | | cd48aee4-f08b-4276-b468-056be555b448 | basic_29-vnf-dataVM-0 | ACTIVE | basic_29-internal=2001:db8::5b | ubuntu20.04 | simple_requires-1-1-flv | | da329b12-0ded-411d-bf50-d81fa70d5bf3 | basic_29-vnf-mgmtVM-0 | ACTIVE | basic_29-internal=2001:db8::35e; osm-ext=172.21.249.108 | ubuntu20.04 | simple_requires-1-1-flv | | 09b5b4ba-4cce-4fa0-98e0-af17de0f748a | hfmultivdu-vnf1-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.137.146; hfmultivdu-internal=192.168.183.158 | ubuntu20.04 | simple_requires-1-1-flv | | b4fde9c3-b265-495b-a887-0273b4409c2d | hfmultivdu-vnf1-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.183.136; osm-ext=172.21.248.217 | ubuntu20.04 | simple_requires-1-1-flv | | 94af0a61-135b-4d38-b8fb-ee1be3950c24 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.77 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | +--------------------------------------+---------------------------------------+--------+-------------------------------------------------------------------------+-------------+-------------------------+ | 23544bc4-6678-4c26-ab41-a542f6c8d79f | hfmultivdu-vnf2-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.137.103; hfmultivdu-internal=192.168.225.198 | ubuntu20.04 | simple_requires-1-1-flv | | e18d0e99-0e4d-4b20-80bd-8ae0e8baf308 | hfmultivdu-vnf2-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.225.149; osm-ext=172.21.249.78 | ubuntu20.04 | simple_requires-1-1-flv | | 09b5b4ba-4cce-4fa0-98e0-af17de0f748a | hfmultivdu-vnf1-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.137.146; hfmultivdu-internal=192.168.183.158 | ubuntu20.04 | simple_requires-1-1-flv | | b4fde9c3-b265-495b-a887-0273b4409c2d | hfmultivdu-vnf1-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.183.136; osm-ext=172.21.248.217 | ubuntu20.04 | simple_requires-1-1-flv | | 94af0a61-135b-4d38-b8fb-ee1be3950c24 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.77 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 d3b468fd-b386-4be6-b86f-12c803913e86 ${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} = d3b468fd-b386-4be6-b86f-12c803913e86 ${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 c0c4ed8e-c318-48a6-88c5-1750bd0cc88a ${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} = c0c4ed8e-c318-48a6-88c5-1750bd0cc88a ${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} = 2168514d-8907-47d7-a619-5b3c9b9ab2bc ${stdout} Logs the given message with the given level. 2168514d-8907-47d7-a619-5b3c9b9ab2bc ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 2168514d-8907-47d7-a619-5b3c9b9ab2bc ${ns_id} Logs the given message with the given level. 2168514d-8907-47d7-a619-5b3c9b9ab2bc ${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 | +--------------------------------------+---------------------------------------+--------+-------------------------------------------------------------------------+-------------+-------------------------+ | 23544bc4-6678-4c26-ab41-a542f6c8d79f | hfmultivdu-vnf2-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.137.103; hfmultivdu-internal=192.168.225.198 | ubuntu20.04 | simple_requires-1-1-flv | | e18d0e99-0e4d-4b20-80bd-8ae0e8baf308 | hfmultivdu-vnf2-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.225.149; osm-ext=172.21.249.78 | ubuntu20.04 | simple_requires-1-1-flv | | 09b5b4ba-4cce-4fa0-98e0-af17de0f748a | hfmultivdu-vnf1-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.137.146; hfmultivdu-internal=192.168.183.158 | ubuntu20.04 | simple_requires-1-1-flv | | b4fde9c3-b265-495b-a887-0273b4409c2d | hfmultivdu-vnf1-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.183.136; osm-ext=172.21.248.217 | ubuntu20.04 | simple_requires-1-1-flv | | 94af0a61-135b-4d38-b8fb-ee1be3950c24 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.77 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+---------------------------------------+--------+-------------------------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | 2168514d-8907-47d7-a619-5b3c9b9ab2bc | 2024-04-14T02:03:49 | BUILDING | INSTANTIATING (c9bcc8c5-12e9-45c3-b053-6015c3cfb070) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 2168514d-8907-47d7-a619-5b3c9b9ab2bc | 2024-04-14T02:03:49 | BUILDING | INSTANTIATING (c9bcc8c5-12e9-45c3-b053-6015c3cfb070) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+---------------------------------------+--------+---------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | 6640cdc6-7735-41ea-99da-fa0f6e33af54 | basic_30-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 843b16bc-c0ba-4b4c-bf59-296da73dfead | basic_30-vnf1-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::61; basic_30-datanet2=192.168.20.194; basic_30-datanet3=192.168.30.112; osm-ext=172.21.248.71 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 94af0a61-135b-4d38-b8fb-ee1be3950c24 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.77 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+---------------------------------------+--------+---------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | 2168514d-8907-47d7-a619-5b3c9b9ab2bc | 2024-04-14T02:03:49 | BUILDING | INSTANTIATING (c9bcc8c5-12e9-45c3-b053-6015c3cfb070) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 2168514d-8907-47d7-a619-5b3c9b9ab2bc | 2024-04-14T02:03:49 | BUILDING | INSTANTIATING (c9bcc8c5-12e9-45c3-b053-6015c3cfb070) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+---------------------------------------+--------+-----------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | 6640cdc6-7735-41ea-99da-fa0f6e33af54 | basic_30-vnf2-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::36d; basic_30-datanet2=192.168.20.253; basic_30-datanet3=192.168.30.183; osm-ext=172.21.248.122 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 843b16bc-c0ba-4b4c-bf59-296da73dfead | basic_30-vnf1-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::61; basic_30-datanet2=192.168.20.194; basic_30-datanet3=192.168.30.112; osm-ext=172.21.248.71 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 94af0a61-135b-4d38-b8fb-ee1be3950c24 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.77 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+---------------------------------------+--------+-----------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | 2168514d-8907-47d7-a619-5b3c9b9ab2bc | 2024-04-14T02:03: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 | +--------------------------------------+---------------------------------------+--------+-----------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | 6640cdc6-7735-41ea-99da-fa0f6e33af54 | basic_30-vnf2-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::36d; basic_30-datanet2=192.168.20.253; basic_30-datanet3=192.168.30.183; osm-ext=172.21.248.122 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 843b16bc-c0ba-4b4c-bf59-296da73dfead | basic_30-vnf1-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::61; basic_30-datanet2=192.168.20.194; basic_30-datanet3=192.168.30.112; osm-ext=172.21.248.71 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 94af0a61-135b-4d38-b8fb-ee1be3950c24 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.77 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+---------------------------------------+--------+-----------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | 2168514d-8907-47d7-a619-5b3c9b9ab2bc | 2024-04-14T02:03: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} = 2168514d-8907-47d7-a619-5b3c9b9ab2bc ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 2168514d-8907-47d7-a619-5b3c9b9ab2bc 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 2168514d-8907-47d7-a619-5b3c9b9ab2bc | grep 2168514d-8907-47d7-a619-5b3c9b9ab2bc | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = 9a641801-d2dd-47d1-930f-345feb2c0c56 ad632253-a1fe-4ef7-8fa2-8a4e86ebd061 ${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} = [ 9a641801-d2dd-47d1-930f-345feb2c0c56 | ad632253-a1fe-4ef7-8fa2-8a4e86ebd061 ] @{vdur} @{vnfr_list} = [ 9a641801-d2dd-47d1-930f-345feb2c0c56 | ad632253-a1fe-4ef7-8fa2-8a4e86ebd061 ] ${vnfr_list} Logs the length and contents of the ``list`` using given ``level``. List length is 2 and it contains following items: 0: 9a641801-d2dd-47d1-930f-345feb2c0c56 1: ad632253-a1fe-4ef7-8fa2-8a4e86ebd061 ${VNF_ID1} ${vnfr_list}[0] Makes a variable available everywhere within the scope of the current suite. ${VNF_ID1} = 9a641801-d2dd-47d1-930f-345feb2c0c56 ${VNF_ID2} ${vnfr_list}[1] Makes a variable available everywhere within the scope of the current suite. ${VNF_ID2} = ad632253-a1fe-4ef7-8fa2-8a4e86ebd061 ${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 2168514d-8907-47d7-a619-5b3c9b9ab2bc | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.71 ${stdout} Logs the given message with the given level. 172.21.248.71 ${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.71 ${VNF1_IPMGMT} ${ip} Makes a variable available everywhere within the scope of the current suite. ${VNF1_IPMGMT} = 172.21.248.71 ${VNF1_IPMGMT} Logs the given message with the given level. 172.21.248.71 ${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 2168514d-8907-47d7-a619-5b3c9b9ab2bc | 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} = 172.21.248.122 ${VNF2_IPMGMT} ${ip} Makes a variable available everywhere within the scope of the current suite. ${VNF2_IPMGMT} = 172.21.248.122 ${VNF2_IPMGMT} Logs the given message with the given level. 172.21.248.122 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 9a641801-d2dd-47d1-930f-345feb2c0c56 --literal | yq '.vdur[0].interfaces[] | select(.name == "eth1")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 2001:db8::61 ${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::61 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 ad632253-a1fe-4ef7-8fa2-8a4e86ebd061 --literal | yq '.vdur[0].interfaces[] | select(.name == "eth1")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 2001:db8::36d ${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::36d 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.71: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 14 02:07:09 UTC 2024 System load: 0.63 Users logged in: 0 Usage of /: 14.0% of 9.52GB IPv4 address for ens3: 172.21.248.71 Memory usage: 10% IPv4 address for ens5: 192.168.20.194 Swap usage: 0% IPv4 address for ens6: 192.168.30.112 Processes: 111 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.71/22 2001:db8::61/128 192.168.20.194/24 192.168.30.112/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.71/22 2001:db8::61/128 192.168.20.194/24 192.168.30.112/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.71/22 2001:db8::61/128 192.168.20.194/24 192.168.30.112/24 ${stdout} Logs the given message with the given level. 172.21.248.71/22 2001:db8::61/128 192.168.20.194/24 192.168.30.112/24 @{ip} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{ip} = [ 172.21.248.71/22 | 2001:db8::61/128 | 192.168.20.194/24 | 192.168.30.112/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.122: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 14 02:07:13 UTC 2024 System load: 0.88 Users logged in: 0 Usage of /: 14.0% of 9.52GB IPv4 address for ens3: 172.21.248.122 Memory usage: 10% IPv4 address for ens5: 192.168.20.253 Swap usage: 0% IPv4 address for ens6: 192.168.30.183 Processes: 113 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.122/22 2001:db8::36d/128 192.168.20.253/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.248.122/22 2001:db8::36d/128 192.168.20.253/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.248.122/22 2001:db8::36d/128 192.168.20.253/24 192.168.30.183/24 ${stdout} Logs the given message with the given level. 172.21.248.122/22 2001:db8::36d/128 192.168.20.253/24 192.168.30.183/24 @{ip} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{ip} = [ 172.21.248.122/22 | 2001:db8::36d/128 | 192.168.20.253/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. 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 9a641801-d2dd-47d1-930f-345feb2c0c56 --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': nfvisrv11, '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': nfvisrv11, '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-14T02:04:01Z', description: '', device_id: 843b16bc-c0ba-4b4c-bf59-296da73dfead, device_owner: 'compute:nova', extra_dhcp_opts: [], fixed_ips: [{ip_address: 172.21.248.71, subnet_id: d14f68b7-8287-41fe-b533-dafb2240680a}], id: 7bb17114-7efd-4f3d-9004-1b36461c7bb6, mac_address: 'fa:16:3e:57:51:26', name: 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-14T02:04:18Z'} {admin_state_up: true, allowed_address_pairs: [], 'binding:host_id': nfvisrv11, '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-14T02:04:01Z', description: '', device_id: 843b16bc-c0ba-4b4c-bf59-296da73dfead, device_owner: 'compute:nova', extra_dhcp_opts: [], fixed_ips: [{ip_address: '2001:db8::61', subnet_id: 4164d08f-6d5c-4dc3-bdc9-de5f586043e2}], id: 6d4a56d1-1aa7-44f8-aff8-8e6f91120c21, mac_address: 'fa:16:3e:19:8d:34', name: eth1, network_id: 8c509d04-c122-41d7-a5ac-af7d2e8af773, 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-14T02:04:20Z'} {admin_state_up: true, allowed_address_pairs: [], 'binding:host_id': nfvisrv11, '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-14T02:04:02Z', description: '', device_id: 843b16bc-c0ba-4b4c-bf59-296da73dfead, device_owner: 'compute:nova', extra_dhcp_opts: [], fixed_ips: [{ip_address: 192.168.20.194, subnet_id: fa041ffe-5581-41e7-8a0f-822303c88f89}], id: 3c9ed87b-dc0c-41c5-bf9c-03b677ad1fd7, mac_address: 'fa:16:3e:eb:35:b2', name: eth2, network_id: a8df1b00-e708-4f5b-8d87-21ed8b47615b, 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-14T02:04:19Z'} {admin_state_up: true, allowed_address_pairs: [], 'binding:host_id': nfvisrv11, '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-14T02:04:03Z', description: '', device_id: 843b16bc-c0ba-4b4c-bf59-296da73dfead, device_owner: 'compute:nova', extra_dhcp_opts: [], fixed_ips: [{ip_address: 192.168.30.112, subnet_id: bd9f5479-174e-4dde-9999-a41972c463c1}], id: d5017416-711f-4004-b7af-634b5c273d37, mac_address: 'fa:16:3e:c9:f9:e0', name: eth3, network_id: 162fb33b-8af6-49c7-bdff-b7e3bdd91122, 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-14T02:04:21Z'} ${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} = ['4164d08f-6d5c-4dc3-bdc9-de5f586043e2'] ${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 4164d08f-6d5c-4dc3-bdc9-de5f586043e2 -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-14T02:03:53Z", "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-14T02:03:53Z", "description": "", "dns_nameservers": [], "dns_publish_fixed_ip": null, "enable_dhcp": true, "gateway_ip": "2001:db8::1", "host_routes": [], "id": "4164d08f-6d5c-4dc3-bdc9-de5f586043e2", "ip_version": 6, "ipv6_address_mode": "dhcpv6-stateful", "ipv6_ra_mode": "dhcpv6-stateful", "name": "basic_30-datanet1-subnet", "network_id": "8c509d04-c122-41d7-a5ac-af7d2e8af773", "project_id": "34a71bb7d82f4ec691d8cc11045ae83e", "revision_number": 0, "segment_id": null, "service_types": [], "subnetpool_id": null, "tags": [], "updated_at": "2024-04-14T02:03:53Z" } ${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-14T02:03:53Z", "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-14T02:03:53Z', '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 | +--------------------------------------+-----------------------------------------------+--------+-----------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | 56f1ac7d-4cbc-4d99-a738-f898a47faabd | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.28.45; osm-ext=172.21.248.232 | ubuntu18.04 | simple_requires-1-1-flv | | 24317576-6870-44e0-b61f-2f4b3b76e9f8 | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.28.127; osm-ext=172.21.249.78 | ubuntu18.04 | simple_requires-1-1-flv | | ba88c4ff-efbd-45f6-86e2-6930143e4bff | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.229 | ubuntu20.04 | several_volumes-VM-flv | | 6640cdc6-7735-41ea-99da-fa0f6e33af54 | basic_30-vnf2-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::36d; basic_30-datanet2=192.168.20.253; basic_30-datanet3=192.168.30.183; osm-ext=172.21.248.122 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 843b16bc-c0ba-4b4c-bf59-296da73dfead | basic_30-vnf1-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::61; basic_30-datanet2=192.168.20.194; basic_30-datanet3=192.168.30.112; osm-ext=172.21.248.71 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 94af0a61-135b-4d38-b8fb-ee1be3950c24 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.77 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+-----------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_30 2>&1'. ${rc} = 0 ${stdout} = basic_30 ${rc},${stdout} Logs the given message with the given level. 0,basic_30 ${stdout} ${ns} Fails if objects are equal after converting them to strings. basic_30 == basic_30 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | 56f1ac7d-4cbc-4d99-a738-f898a47faabd | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.28.45; osm-ext=172.21.248.232 | ubuntu18.04 | simple_requires-1-1-flv | | 24317576-6870-44e0-b61f-2f4b3b76e9f8 | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.28.127; osm-ext=172.21.249.78 | ubuntu18.04 | simple_requires-1-1-flv | | ba88c4ff-efbd-45f6-86e2-6930143e4bff | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.229 | ubuntu20.04 | several_volumes-VM-flv | | 6640cdc6-7735-41ea-99da-fa0f6e33af54 | basic_30-vnf2-dataVM-0 | ACTIVE | osm-ext=172.21.248.122 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 843b16bc-c0ba-4b4c-bf59-296da73dfead | basic_30-vnf1-dataVM-0 | ACTIVE | | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 94af0a61-135b-4d38-b8fb-ee1be3950c24 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.77 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep basic_30 2>&1'. ${rc} = 0 ${stdout} = basic_30 ${rc},${stdout} Logs the given message with the given level. 0,basic_30 ${stdout} ${ns} Fails if objects are equal after converting them to strings. basic_30 == basic_30 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | 56f1ac7d-4cbc-4d99-a738-f898a47faabd | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.28.45; osm-ext=172.21.248.232 | ubuntu18.04 | simple_requires-1-1-flv | | 24317576-6870-44e0-b61f-2f4b3b76e9f8 | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.28.127; osm-ext=172.21.249.78 | ubuntu18.04 | simple_requires-1-1-flv | | ba88c4ff-efbd-45f6-86e2-6930143e4bff | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.229 | ubuntu20.04 | several_volumes-VM-flv | | 94af0a61-135b-4d38-b8fb-ee1be3950c24 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.77 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 1aeb930d-e71e-480c-8fd3-d18d0edb1a77 ${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} = 1aeb930d-e71e-480c-8fd3-d18d0edb1a77 ${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 9b26bc7d-c253-45fb-a12b-6b069c12f976 ${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} = 9b26bc7d-c253-45fb-a12b-6b069c12f976 ${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} = 70676b31-4590-4ef5-8660-ebf06d4eb0c5 ${stdout} Logs the given message with the given level. 70676b31-4590-4ef5-8660-ebf06d4eb0c5 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 70676b31-4590-4ef5-8660-ebf06d4eb0c5 ${ns_id} Logs the given message with the given level. 70676b31-4590-4ef5-8660-ebf06d4eb0c5 ${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 | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | 56f1ac7d-4cbc-4d99-a738-f898a47faabd | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.28.45; osm-ext=172.21.248.232 | ubuntu18.04 | simple_requires-1-1-flv | | 24317576-6870-44e0-b61f-2f4b3b76e9f8 | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.28.127; osm-ext=172.21.249.78 | ubuntu18.04 | simple_requires-1-1-flv | | ba88c4ff-efbd-45f6-86e2-6930143e4bff | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.229 | ubuntu20.04 | several_volumes-VM-flv | | 94af0a61-135b-4d38-b8fb-ee1be3950c24 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.77 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | 70676b31-4590-4ef5-8660-ebf06d4eb0c5 | 2024-04-14T02:08:11 | BUILDING | INSTANTIATING (47378a91-ee17-4d94-ac37-dd19d8270424) | N/A | +----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 70676b31-4590-4ef5-8660-ebf06d4eb0c5 | 2024-04-14T02:08:11 | BUILDING | INSTANTIATING (47378a91-ee17-4d94-ac37-dd19d8270424) | N/A | +----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | cd6b9323-16f9-4815-8fa2-f6cf2a77da40 | multivdu_multiat-vnf-dataVM-0 | ACTIVE | osm-ext=172.21.248.156 | ubuntu22.04 | mgmtVM-vnf-1-flv | | 8719c6a1-38bc-44e6-9be6-2afa57b45064 | multivdu_multiat-vnf-mgmtVM-0 | ACTIVE | osm-ext=172.21.248.151 | ubuntu22.04 | mgmtVM-vnf-1-flv | | 56f1ac7d-4cbc-4d99-a738-f898a47faabd | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.28.45; osm-ext=172.21.248.232 | ubuntu18.04 | simple_requires-1-1-flv | | 24317576-6870-44e0-b61f-2f4b3b76e9f8 | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.28.127; osm-ext=172.21.249.78 | ubuntu18.04 | simple_requires-1-1-flv | | ba88c4ff-efbd-45f6-86e2-6930143e4bff | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.229 | ubuntu20.04 | several_volumes-VM-flv | | 94af0a61-135b-4d38-b8fb-ee1be3950c24 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.77 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | 70676b31-4590-4ef5-8660-ebf06d4eb0c5 | 2024-04-14T02:08:11 | BUILDING | INSTANTIATING (47378a91-ee17-4d94-ac37-dd19d8270424) | N/A | +----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 70676b31-4590-4ef5-8660-ebf06d4eb0c5 | 2024-04-14T02:08:11 | BUILDING | INSTANTIATING (47378a91-ee17-4d94-ac37-dd19d8270424) | N/A | +----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | cd6b9323-16f9-4815-8fa2-f6cf2a77da40 | multivdu_multiat-vnf-dataVM-0 | ACTIVE | osm-ext=172.21.248.156 | ubuntu22.04 | mgmtVM-vnf-1-flv | | 8719c6a1-38bc-44e6-9be6-2afa57b45064 | multivdu_multiat-vnf-mgmtVM-0 | ACTIVE | osm-ext=172.21.248.151 | ubuntu22.04 | mgmtVM-vnf-1-flv | | 56f1ac7d-4cbc-4d99-a738-f898a47faabd | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.28.45; osm-ext=172.21.248.232 | ubuntu18.04 | simple_requires-1-1-flv | | 24317576-6870-44e0-b61f-2f4b3b76e9f8 | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.28.127; osm-ext=172.21.249.78 | ubuntu18.04 | simple_requires-1-1-flv | | ba88c4ff-efbd-45f6-86e2-6930143e4bff | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.229 | ubuntu20.04 | several_volumes-VM-flv | | 94af0a61-135b-4d38-b8fb-ee1be3950c24 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.77 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | 70676b31-4590-4ef5-8660-ebf06d4eb0c5 | 2024-04-14T02:08:11 | READY | IDLE (None) | N/A | +----------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | cd6b9323-16f9-4815-8fa2-f6cf2a77da40 | multivdu_multiat-vnf-dataVM-0 | ACTIVE | osm-ext=172.21.248.156 | ubuntu22.04 | mgmtVM-vnf-1-flv | | 8719c6a1-38bc-44e6-9be6-2afa57b45064 | multivdu_multiat-vnf-mgmtVM-0 | ACTIVE | osm-ext=172.21.248.151 | ubuntu22.04 | mgmtVM-vnf-1-flv | | 56f1ac7d-4cbc-4d99-a738-f898a47faabd | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.28.45; osm-ext=172.21.248.232 | ubuntu18.04 | simple_requires-1-1-flv | | 24317576-6870-44e0-b61f-2f4b3b76e9f8 | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.28.127; osm-ext=172.21.249.78 | ubuntu18.04 | simple_requires-1-1-flv | | ba88c4ff-efbd-45f6-86e2-6930143e4bff | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.229 | ubuntu20.04 | several_volumes-VM-flv | | 94af0a61-135b-4d38-b8fb-ee1be3950c24 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.77 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | 70676b31-4590-4ef5-8660-ebf06d4eb0c5 | 2024-04-14T02:08: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} = 70676b31-4590-4ef5-8660-ebf06d4eb0c5 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 70676b31-4590-4ef5-8660-ebf06d4eb0c5 ${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 70676b31-4590-4ef5-8660-ebf06d4eb0c5 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = c2e959a2-d032-41bd-b161-bca8e4b20834 ${stdout} Logs the given message with the given level. c2e959a2-d032-41bd-b161-bca8e4b20834 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${vnf_id} = c2e959a2-d032-41bd-b161-bca8e4b20834 ${VNF_ID} ${vnf_id} Makes a variable available everywhere within the scope of the current suite. ${VNF_ID} = c2e959a2-d032-41bd-b161-bca8e4b20834 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 c2e959a2-d032-41bd-b161-bca8e4b20834 --literal | yq -r '.vdur[0].interfaces[]."ip-address"' 2>&1'. ${rc} = 0 ${vdu0_ip} = 172.21.248.151 ${rc},${vdu0_ip} Logs the given message with the given level. 0,172.21.248.151 ${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 c2e959a2-d032-41bd-b161-bca8e4b20834 --literal | yq -r '.vdur[1].interfaces[]."ip-address"' 2>&1'. ${rc} = 0 ${vdu1_ip} = 172.21.248.156 ${rc},${vdu1_ip} Logs the given message with the given level. 0,172.21.248.156 ${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.151 ${MGMT_IP_ADDR_1} ${vdu1_ip} Makes a variable available everywhere within the scope of the current suite. ${MGMT_IP_ADDR_1} = 172.21.248.156 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.151: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 14 02:10:17 UTC 2024 System load: 0.26025390625 Processes: 93 Usage of /: 29.7% of 4.67GB Users logged in: 0 Memory usage: 20% IPv4 address for ens3: 172.21.248.151 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: 571... ${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: 571cc7b1-0322-4792-bf31-2b606b5223e6 Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632 Allocating group tables: 0/80 done Writing inode tables: 0/8050/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.248.156: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 14 02:10:32 UTC 2024 System load: 0.1083984375 Processes: 93 Usage of /: 29.7% of 4.67GB Users logged in: 0 Memory usage: 20% IPv4 address for ens3: 172.21.248.156 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.248.156: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 14 02:10:32 UTC 2024 System load: 0.1083984375 Processes: 93 Usage of /: 29.7% of 4.67GB Users logged in: 0 Memory usage: 20% IPv4 address for ens3: 172.21.248.156 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 14 02:10:33 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.151: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 14 02:10:17 UTC 2024 System load: 0.26025390625 Processes: 93 Usage of /: 29.7% of 4.67GB Users logged in: 0 Memory usage: 20% IPv4 address for ens3: 172.21.248.151 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 14 02:10:18 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 | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | 09d249e3-571c-477d-9086-9b336a84ec1a | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.229 | ubuntu20.04 | several_volumes-VM-flv | | cd6b9323-16f9-4815-8fa2-f6cf2a77da40 | multivdu_multiat-vnf-dataVM-0 | ACTIVE | osm-ext=172.21.248.156 | ubuntu22.04 | mgmtVM-vnf-1-flv | | 8719c6a1-38bc-44e6-9be6-2afa57b45064 | multivdu_multiat-vnf-mgmtVM-0 | ACTIVE | osm-ext=172.21.248.151 | ubuntu22.04 | mgmtVM-vnf-1-flv | | 56f1ac7d-4cbc-4d99-a738-f898a47faabd | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.28.45; osm-ext=172.21.248.232 | ubuntu18.04 | simple_requires-1-1-flv | | 24317576-6870-44e0-b61f-2f4b3b76e9f8 | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.28.127; osm-ext=172.21.249.78 | ubuntu18.04 | simple_requires-1-1-flv | | 94af0a61-135b-4d38-b8fb-ee1be3950c24 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.77 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | 09d249e3-571c-477d-9086-9b336a84ec1a | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.229 | ubuntu20.04 | several_volumes-VM-flv | | 56f1ac7d-4cbc-4d99-a738-f898a47faabd | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.28.45; osm-ext=172.21.248.232 | ubuntu18.04 | simple_requires-1-1-flv | | 24317576-6870-44e0-b61f-2f4b3b76e9f8 | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.28.127; osm-ext=172.21.249.78 | ubuntu18.04 | simple_requires-1-1-flv | | 94af0a61-135b-4d38-b8fb-ee1be3950c24 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.77 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 0624c63b-a4ab-4b99-b2c5-24d45ae23b3b ${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} = 0624c63b-a4ab-4b99-b2c5-24d45ae23b3b ${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 317be697-064c-4d93-8366-2f7a32ad2af7 ${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} = 317be697-064c-4d93-8366-2f7a32ad2af7 ${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} = 4a076138-5471-4e7a-938b-92376797f080 ${stdout} Logs the given message with the given level. 4a076138-5471-4e7a-938b-92376797f080 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 4a076138-5471-4e7a-938b-92376797f080 ${ns_id} Logs the given message with the given level. 4a076138-5471-4e7a-938b-92376797f080 ${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 | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ | 09d249e3-571c-477d-9086-9b336a84ec1a | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.229 | ubuntu20.04 | several_volumes-VM-flv | | 56f1ac7d-4cbc-4d99-a738-f898a47faabd | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.28.45; osm-ext=172.21.248.232 | ubuntu18.04 | simple_requires-1-1-flv | | 24317576-6870-44e0-b61f-2f4b3b76e9f8 | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.28.127; osm-ext=172.21.249.78 | ubuntu18.04 | simple_requires-1-1-flv | | 94af0a61-135b-4d38-b8fb-ee1be3950c24 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.77 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | 4a076138-5471-4e7a-938b-92376797f080 | 2024-04-14T02:11:10 | BUILDING | INSTANTIATING (2d5c28d3-b85f-4cd4-bc0e-da77c8f8a616) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 4a076138-5471-4e7a-938b-92376797f080 | 2024-04-14T02:11:10 | BUILDING | INSTANTIATING (2d5c28d3-b85f-4cd4-bc0e-da77c8f8a616) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+-----------------------------------------------+---------+------------------------------------------------------------------+-------------+-----------------------------+ | 41a5af4a-a8bb-46f0-8b72-a64f506ba989 | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | ACTIVE | epa_01-epa_sriov-sriov_vld=192.168.78.50; osm-ext=172.21.249.149 | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | 09d249e3-571c-477d-9086-9b336a84ec1a | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.229 | ubuntu20.04 | several_volumes-VM-flv | | 56f1ac7d-4cbc-4d99-a738-f898a47faabd | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | osm-ext=172.21.248.232 | ubuntu18.04 | simple_requires-1-1-flv | | 24317576-6870-44e0-b61f-2f4b3b76e9f8 | heal_01-charm_vnf-mgmtVM-0 | DELETED | | ubuntu18.04 | simple_requires-1-1-flv | | 94af0a61-135b-4d38-b8fb-ee1be3950c24 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.77 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+---------+------------------------------------------------------------------+-------------+-----------------------------+ ${rc} ${stdout} osm ns-list --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 | 4a076138-5471-4e7a-938b-92376797f080 | 2024-04-14T02:11:10 | BUILDING | INSTANTIATING (2d5c28d3-b85f-4cd4-bc0e-da77c8f8a616) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 4a076138-5471-4e7a-938b-92376797f080 | 2024-04-14T02:11:10 | BUILDING | INSTANTIATING (2d5c28d3-b85f-4cd4-bc0e-da77c8f8a616) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+------------------------------------------+--------+------------------------------------------------------------------+-------------+-----------------------------+ | 8b43076f-864a-4b4a-955e-d55b34e83d91 | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.248.238 | ubuntu20.04 | simple_requires-1-1-flv | | 41a5af4a-a8bb-46f0-8b72-a64f506ba989 | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | ACTIVE | epa_01-epa_sriov-sriov_vld=192.168.78.50; osm-ext=172.21.249.149 | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | 94af0a61-135b-4d38-b8fb-ee1be3950c24 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.77 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------------------------------------------------+-------------+-----------------------------+ ${rc} ${stdout} osm ns-list --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 | 4a076138-5471-4e7a-938b-92376797f080 | 2024-04-14T02:11:10 | 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 | +--------------------------------------+------------------------------------------+--------+------------------------------------------------------------------+-------------+-----------------------------+ | 8b43076f-864a-4b4a-955e-d55b34e83d91 | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.248.238 | ubuntu20.04 | simple_requires-1-1-flv | | 41a5af4a-a8bb-46f0-8b72-a64f506ba989 | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | ACTIVE | epa_01-epa_sriov-sriov_vld=192.168.78.50; osm-ext=172.21.249.149 | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | 94af0a61-135b-4d38-b8fb-ee1be3950c24 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.77 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------------------------------------------------+-------------+-----------------------------+ ${rc} ${stdout} osm ns-list --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 | 4a076138-5471-4e7a-938b-92376797f080 | 2024-04-14T02:11:10 | 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} = 4a076138-5471-4e7a-938b-92376797f080 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 4a076138-5471-4e7a-938b-92376797f080 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 4a076138-5471-4e7a-938b-92376797f080 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.149 ${stdout} Logs the given message with the given level. 172.21.249.149 ${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.149 ${ip_addr} Logs the given message with the given level. 172.21.249.149 ${VNF_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. ${VNF_IP_ADDR} = 172.21.249.149 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.249.149: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 14 02:12:54 UTC 2024 System load: 0.34 Processes: 98 Usage of /: 3.8% of 28.90GB Users logged in: 0 Memory usage: 6% IP address for ens3: 172.21.249.149 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 | +--------------------------------------+------------------------------------------+--------+------------------------------------------------------------------+-------------+-----------------------------+ | 8b43076f-864a-4b4a-955e-d55b34e83d91 | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.248.238 | ubuntu20.04 | simple_requires-1-1-flv | | 41a5af4a-a8bb-46f0-8b72-a64f506ba989 | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | ACTIVE | epa_01-epa_sriov-sriov_vld=192.168.78.50; osm-ext=172.21.249.149 | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | 94af0a61-135b-4d38-b8fb-ee1be3950c24 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.77 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------------------------------------------------+-------------+-----------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep epa_01-epa_sriov_test 2>&1'. ${rc} = 0 ${stdout} = epa_01-epa_sriov_test ${rc},${stdout} Logs the given message with the given level. 0,epa_01-epa_sriov_test ${stdout} ${ns} Fails if objects are equal after converting them to strings. epa_01-epa_sriov_test == epa_01-epa_sriov_test ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+------------------------+-------------+-------------------------+ | db6311e7-716a-4178-a5c8-d613c45d4c73 | heal_02-charm_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 66dd324a-27c2-4ed1-ae48-13dbbc38cf42 | heal_02-charm_vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 17efa03d-f0a7-4752-b38f-d54cf6baeffa | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.216 | ubuntu20.04 | several_volumes-VM-flv | | 8b43076f-864a-4b4a-955e-d55b34e83d91 | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.248.238 | ubuntu20.04 | simple_requires-1-1-flv | | 94af0a61-135b-4d38-b8fb-ee1be3950c24 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.77 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 0f66fd2a-1a9b-4b4e-b850-6391ca724310 ${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} = 0f66fd2a-1a9b-4b4e-b850-6391ca724310 ${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 43654d17-5260-4cd3-8e2f-54aba8a21f93 ${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} = 43654d17-5260-4cd3-8e2f-54aba8a21f93 ${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} = d0b9f115-f36f-4875-a9c1-91ae09986354 ${stdout} Logs the given message with the given level. d0b9f115-f36f-4875-a9c1-91ae09986354 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = d0b9f115-f36f-4875-a9c1-91ae09986354 ${ns_id} Logs the given message with the given level. d0b9f115-f36f-4875-a9c1-91ae09986354 ${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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | db6311e7-716a-4178-a5c8-d613c45d4c73 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.83.120; osm-ext=172.21.249.243 | ubuntu18.04 | simple_requires-1-1-flv | | 66dd324a-27c2-4ed1-ae48-13dbbc38cf42 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.83.74; osm-ext=172.21.248.201 | ubuntu18.04 | simple_requires-1-1-flv | | 17efa03d-f0a7-4752-b38f-d54cf6baeffa | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.216 | ubuntu20.04 | several_volumes-VM-flv | | 8b43076f-864a-4b4a-955e-d55b34e83d91 | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.248.238 | ubuntu20.04 | simple_requires-1-1-flv | | 94af0a61-135b-4d38-b8fb-ee1be3950c24 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.77 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | d0b9f115-f36f-4875-a9c1-91ae09986354 | 2024-04-14T02:13:29 | BUILDING | INSTANTIATING (2968815c-0155-4458-a25e-23f19968e48f) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | d0b9f115-f36f-4875-a9c1-91ae09986354 | 2024-04-14T02:13:29 | BUILDING | INSTANTIATING (2968815c-0155-4458-a25e-23f19968e48f) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | 29213409-40fc-49e4-9936-88a191bd2c2d | epa_02-epa_quota-vnf-epa_quota-VM-0 | ACTIVE | osm-ext=172.21.249.53 | ubuntu18.04 | epa_quota-VM-vnf-1-flv | | db6311e7-716a-4178-a5c8-d613c45d4c73 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.83.120; osm-ext=172.21.249.243 | ubuntu18.04 | simple_requires-1-1-flv | | 66dd324a-27c2-4ed1-ae48-13dbbc38cf42 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.83.74; osm-ext=172.21.248.201 | ubuntu18.04 | simple_requires-1-1-flv | | 17efa03d-f0a7-4752-b38f-d54cf6baeffa | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.216 | ubuntu20.04 | several_volumes-VM-flv | | 8b43076f-864a-4b4a-955e-d55b34e83d91 | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.248.238 | ubuntu20.04 | simple_requires-1-1-flv | | 94af0a61-135b-4d38-b8fb-ee1be3950c24 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.77 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | d0b9f115-f36f-4875-a9c1-91ae09986354 | 2024-04-14T02:13: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} = +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | 29213409-40fc-49e4-9936-88a191bd2c2d | epa_02-epa_quota-vnf-epa_quota-VM-0 | ACTIVE | osm-ext=172.21.249.53 | ubuntu18.04 | epa_quota-VM-vnf-1-flv | | db6311e7-716a-4178-a5c8-d613c45d4c73 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.83.120; osm-ext=172.21.249.243 | ubuntu18.04 | simple_requires-1-1-flv | | 66dd324a-27c2-4ed1-ae48-13dbbc38cf42 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.83.74; osm-ext=172.21.248.201 | ubuntu18.04 | simple_requires-1-1-flv | | 17efa03d-f0a7-4752-b38f-d54cf6baeffa | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.216 | ubuntu20.04 | several_volumes-VM-flv | | 8b43076f-864a-4b4a-955e-d55b34e83d91 | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.248.238 | ubuntu20.04 | simple_requires-1-1-flv | | 94af0a61-135b-4d38-b8fb-ee1be3950c24 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.77 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | d0b9f115-f36f-4875-a9c1-91ae09986354 | 2024-04-14T02:13: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} = d0b9f115-f36f-4875-a9c1-91ae09986354 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = d0b9f115-f36f-4875-a9c1-91ae09986354 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 d0b9f115-f36f-4875-a9c1-91ae09986354 | grep d0b9f115-f36f-4875-a9c1-91ae09986354 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | d7873421-18e1-41c2-859a-0873f103920c ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ d7873421-18e1-41c2-859a-0873f103920c ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: d7873421-18e1-41c2-859a-0873f103920c @{vnf_list} ${vnfs_list} = ['d7873421-18e1-41c2-859a-0873f103920c'] ${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 d7873421-18e1-41c2-859a-0873f103920c --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 29213409-40fc-49e4-9936-88a191bd2c2d ${stdout} Logs the given message with the given level. 29213409-40fc-49e4-9936-88a191bd2c2d ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${vim_id} = 29213409-40fc-49e4-9936-88a191bd2c2d ${vim_id} Logs the given message with the given level. 29213409-40fc-49e4-9936-88a191bd2c2d ${VNF_SERVER_ID} ${vim_id} Makes a variable available everywhere within the scope of the current suite. ${VNF_SERVER_ID} = 29213409-40fc-49e4-9936-88a191bd2c2d 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 29213409-40fc-49e4-9936-88a191bd2c2d | 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | 29213409-40fc-49e4-9936-88a191bd2c2d | epa_02-epa_quota-vnf-epa_quota-VM-0 | ACTIVE | osm-ext=172.21.249.53 | ubuntu18.04 | epa_quota-VM-vnf-1-flv | | db6311e7-716a-4178-a5c8-d613c45d4c73 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.83.120; osm-ext=172.21.249.243 | ubuntu18.04 | simple_requires-1-1-flv | | 66dd324a-27c2-4ed1-ae48-13dbbc38cf42 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.83.74; osm-ext=172.21.248.201 | ubuntu18.04 | simple_requires-1-1-flv | | 17efa03d-f0a7-4752-b38f-d54cf6baeffa | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.216 | ubuntu20.04 | several_volumes-VM-flv | | 8b43076f-864a-4b4a-955e-d55b34e83d91 | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.248.238 | ubuntu20.04 | simple_requires-1-1-flv | | 94af0a61-135b-4d38-b8fb-ee1be3950c24 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.77 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | db6311e7-716a-4178-a5c8-d613c45d4c73 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.83.120; osm-ext=172.21.249.243 | ubuntu18.04 | simple_requires-1-1-flv | | 66dd324a-27c2-4ed1-ae48-13dbbc38cf42 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.83.74; osm-ext=172.21.248.201 | ubuntu18.04 | simple_requires-1-1-flv | | 17efa03d-f0a7-4752-b38f-d54cf6baeffa | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.216 | ubuntu20.04 | several_volumes-VM-flv | | 8b43076f-864a-4b4a-955e-d55b34e83d91 | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.248.238 | ubuntu20.04 | simple_requires-1-1-flv | | 94af0a61-135b-4d38-b8fb-ee1be3950c24 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.77 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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.248.26 == '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} = da9dc9c8-0520-40e5-b6c6-a996da05faa9 ${stdout} Logs the given message with the given level. da9dc9c8-0520-40e5-b6c6-a996da05faa9 ${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} = da9dc9c8-0520-40e5-b6c6-a996da05faa9 ${SDNC_ID} ${created_sdnc_id} Makes a variable available everywhere within the scope of the current suite. ${SDNC_ID} = da9dc9c8-0520-40e5-b6c6-a996da05faa9 ${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 da9dc9c8-0520-40e5-b6c6-a996da05faa9 | 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=da9dc9c8-0520-40e5-b6c6-a996da05faa9 ${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=da9dc9c8-0520-40e5-b6c6-a996da05faa9 ${param_name} = sdnc_id ${param_value} = da9dc9c8-0520-40e5-b6c6-a996da05faa9 ${match},${param_name},${param_value} Logs the given message with the given level. sdnc_id=da9dc9c8-0520-40e5-b6c6-a996da05faa9,sdnc_id,da9dc9c8-0520-40e5-b6c6-a996da05faa9 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = sdnc_id="da9dc9c8-0520-40e5-b6c6-a996da05faa9", ${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.248.26:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f35381dc3a0>, 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.248.26:9091/api/v1/query?query=osm_sdnc_status%7Bsdnc_id=%22da9dc9c8-0520-40e5-b6c6-a996da05faa9%22,%7D path_url=/api/v1/query?query=osm_sdnc_status%7Bsdnc_id=%22da9dc9c8-0520-40e5-b6c6-a996da05faa9%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.248.26:9091/api/v1/query?query=osm_sdnc_status%7Bsdnc_id=%22da9dc9c8-0520-40e5-b6c6-a996da05faa9%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 14 Apr 2024 02:14:47 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=da9dc9c8-0520-40e5-b6c6-a996da05faa9 ${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=da9dc9c8-0520-40e5-b6c6-a996da05faa9 ${param_name} = sdnc_id ${param_value} = da9dc9c8-0520-40e5-b6c6-a996da05faa9 ${match},${param_name},${param_value} Logs the given message with the given level. sdnc_id=da9dc9c8-0520-40e5-b6c6-a996da05faa9,sdnc_id,da9dc9c8-0520-40e5-b6c6-a996da05faa9 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = sdnc_id="da9dc9c8-0520-40e5-b6c6-a996da05faa9", ${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.248.26:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f35382273d0>, 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.248.26:9091/api/v1/query?query=osm_sdnc_status%7Bsdnc_id=%22da9dc9c8-0520-40e5-b6c6-a996da05faa9%22,%7D path_url=/api/v1/query?query=osm_sdnc_status%7Bsdnc_id=%22da9dc9c8-0520-40e5-b6c6-a996da05faa9%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.248.26:9091/api/v1/query?query=osm_sdnc_status%7Bsdnc_id=%22da9dc9c8-0520-40e5-b6c6-a996da05faa9%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 14 Apr 2024 02:15:47 GMT', 'Content-Length': '191'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_sdnc_status","job":"airflow_osm_sdnc_status_da9dc9c8-0520-40e5-b6c6-a996da05faa9","sdnc_id":"da9dc9c8-0520-40e5-b6c6-a996da05faa9"},"value":[1713060947.403,"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_da9dc9c8-0520-40e5-b6c6-a996da05faa9', 'sdnc_id': 'da9dc9c8... ${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_da9dc9c8-0520-40e5-b6c6-a996da05faa9', 'sdnc_id': 'da9dc9c8-0520-40e5-b6c6-a996da05faa9'}, 'value': [1713060947.403, '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 77db3e47-862e-4b09-9229-8a4f59596eac ${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} = 77db3e47-862e-4b09-9229-8a4f59596eac ${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 aebceaaa-d443-4ab0-83a9-84c1d2be5612 ${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} = aebceaaa-d443-4ab0-83a9-84c1d2be5612 ${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} = 882ad28f-7535-4be3-ac8e-b601de22eaf1 ${stdout} Logs the given message with the given level. 882ad28f-7535-4be3-ac8e-b601de22eaf1 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 882ad28f-7535-4be3-ac8e-b601de22eaf1 ${ns_id} Logs the given message with the given level. 882ad28f-7535-4be3-ac8e-b601de22eaf1 ${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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | fdb48dce-b570-446d-ae30-4dcf39ffafec | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.47 | ubuntu20.04 | simple_requires-1-1-flv | | db6311e7-716a-4178-a5c8-d613c45d4c73 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.83.120; osm-ext=172.21.249.243 | ubuntu18.04 | simple_requires-1-1-flv | | 66dd324a-27c2-4ed1-ae48-13dbbc38cf42 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.83.74; osm-ext=172.21.248.201 | ubuntu18.04 | simple_requires-1-1-flv | | 17efa03d-f0a7-4752-b38f-d54cf6baeffa | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.216 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | 882ad28f-7535-4be3-ac8e-b601de22eaf1 | 2024-04-14T02:15:57 | BUILDING | INSTANTIATING (72598c73-ad26-4cea-854c-76cff6480d2f) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 882ad28f-7535-4be3-ac8e-b601de22eaf1 | 2024-04-14T02:15:57 | BUILDING | INSTANTIATING (72598c73-ad26-4cea-854c-76cff6480d2f) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | fd3d4e51-3d11-4747-bce8-a6b1f9f47a34 | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.249.6 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | ee5b0d77-57d6-4ff4-81cd-db016ab320fa | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.248.2 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | fdb48dce-b570-446d-ae30-4dcf39ffafec | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.47 | ubuntu20.04 | simple_requires-1-1-flv | | db6311e7-716a-4178-a5c8-d613c45d4c73 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.83.120; osm-ext=172.21.249.243 | ubuntu18.04 | simple_requires-1-1-flv | | 66dd324a-27c2-4ed1-ae48-13dbbc38cf42 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.83.74; osm-ext=172.21.248.201 | ubuntu18.04 | simple_requires-1-1-flv | | 17efa03d-f0a7-4752-b38f-d54cf6baeffa | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.216 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | 882ad28f-7535-4be3-ac8e-b601de22eaf1 | 2024-04-14T02:15:57 | BUILDING | INSTANTIATING (72598c73-ad26-4cea-854c-76cff6480d2f) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 882ad28f-7535-4be3-ac8e-b601de22eaf1 | 2024-04-14T02:15:57 | BUILDING | INSTANTIATING (72598c73-ad26-4cea-854c-76cff6480d2f) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | cac1767a-a0c8-4b38-94db-45b0feda0fb3 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.83.235; osm-ext=172.21.248.211 | ubuntu18.04 | simple_requires-1-1-flv | | fd3d4e51-3d11-4747-bce8-a6b1f9f47a34 | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.249.6 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | ee5b0d77-57d6-4ff4-81cd-db016ab320fa | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.248.2 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | fdb48dce-b570-446d-ae30-4dcf39ffafec | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.47 | ubuntu20.04 | simple_requires-1-1-flv | | db6311e7-716a-4178-a5c8-d613c45d4c73 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.83.120; osm-ext=172.21.249.243 | ubuntu18.04 | simple_requires-1-1-flv | | 66dd324a-27c2-4ed1-ae48-13dbbc38cf42 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.83.74; osm-ext=172.21.248.201 | ubuntu18.04 | simple_requires-1-1-flv | | 17efa03d-f0a7-4752-b38f-d54cf6baeffa | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.216 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | 882ad28f-7535-4be3-ac8e-b601de22eaf1 | 2024-04-14T02:15: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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | 50224e48-9888-425c-b14c-e6c17ddaf2ad | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | BUILD | | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | cac1767a-a0c8-4b38-94db-45b0feda0fb3 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.83.235; osm-ext=172.21.248.211 | ubuntu18.04 | simple_requires-1-1-flv | | fd3d4e51-3d11-4747-bce8-a6b1f9f47a34 | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.249.6 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | ee5b0d77-57d6-4ff4-81cd-db016ab320fa | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.248.2 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | fdb48dce-b570-446d-ae30-4dcf39ffafec | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.47 | ubuntu20.04 | simple_requires-1-1-flv | | db6311e7-716a-4178-a5c8-d613c45d4c73 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.83.120; osm-ext=172.21.249.243 | ubuntu18.04 | simple_requires-1-1-flv | | 66dd324a-27c2-4ed1-ae48-13dbbc38cf42 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.83.74; osm-ext=172.21.248.201 | ubuntu18.04 | simple_requires-1-1-flv | | 17efa03d-f0a7-4752-b38f-d54cf6baeffa | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.216 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ ${rc} ${stdout} osm ns-list --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 | 882ad28f-7535-4be3-ac8e-b601de22eaf1 | 2024-04-14T02:15: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} = 882ad28f-7535-4be3-ac8e-b601de22eaf1 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 882ad28f-7535-4be3-ac8e-b601de22eaf1 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 882ad28f-7535-4be3-ac8e-b601de22eaf1 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.2 ${stdout} Logs the given message with the given level. 172.21.248.2 ${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.2 ${IP_MGMT_1} ${ip} Makes a variable available everywhere within the scope of the current suite. ${IP_MGMT_1} = 172.21.248.2 ${IP_MGMT_1} Logs the given message with the given level. 172.21.248.2 ${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 882ad28f-7535-4be3-ac8e-b601de22eaf1 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.6 ${stdout} Logs the given message with the given level. 172.21.249.6 ${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.6 ${IP_MGMT_2} ${ip} Makes a variable available everywhere within the scope of the current suite. ${IP_MGMT_2} = 172.21.249.6 ${IP_MGMT_2} Logs the given message with the given level. 172.21.249.6 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.2: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 14 02:17:43 UTC 2024 System load: 0.79 Processes: 127 Usage of /: 14.0% of 9.52GB Users logged in: 0 Memory usage: 5% IPv4 address for ens3: 172.21.248.2 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:bc:54:0c brd ff:ff:ff:ff:ff:ff inet 172.21.248.2/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86332sec preferred_lft 86332sec inet6 fe80::f816:3eff:febc:540c/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:e5:7f:43 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:fee5:7f43/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.412 ms 64 bytes from 192.168.100.22: icmp_seq=2 ttl=64 time=0.167 ms 64 bytes from 192.168.100.22: icmp_seq=3 ttl=64 time=0.252 ms 64 bytes from 192.168.100.22: icmp_seq=4 ttl=64 time=0.167 ms 64 bytes from 192.168.100.22: icmp_seq=5 ttl=64 time=0.178 ms --- 192.168.100.22 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4081ms rtt min/avg/max/mdev = 0.167/0.235/0.412/0.093 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:bc:54:0c brd ff:ff:ff:ff:ff:ff inet 172.21.248.2/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86332sec preferred_lft 86332sec inet6 fe80::f816:3eff:febc:540c/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:e5:7f:43 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:fee5:7f43/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.412 ms 64 bytes from 192.168.100.22: icmp_seq=2 ttl=64 time=0.167 ms 64 bytes from 192.168.100.22: icmp_seq=3 ttl=64 time=0.252 ms 64 bytes from 192.168.100.22: icmp_seq=4 ttl=64 time=0.167 ms 64 bytes from 192.168.100.22: icmp_seq=5 ttl=64 time=0.178 ms --- 192.168.100.22 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4081ms rtt min/avg/max/mdev = 0.167/0.235/0.412/0.093 ms Check connectivity from the first VNF to the second VNF using ping. cluster_epa daily epa_04 regression ${IP_MGMT_2} msg=IP address of the data VNF '${VNF_MEMBER_INDEX_2}' is not available Fails unless the given variable exists within the current scope. ${stdout} ${IP_MGMT_2} ${USERNAME} ${PASSWORD} ${EMPTY} ip addr ; ping -c 5 ${DATANET_IP1} Execute via SSH a command in a remote host and, if the command succeeds, return the output. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. Logging into '172.21.249.6: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 14 02:17:49 UTC 2024 System load: 0.98 Processes: 126 Usage of /: 14.0% of 9.52GB Users logged in: 0 Memory usage: 5% IPv4 address for ens3: 172.21.249.6 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:11:1f:2c brd ff:ff:ff:ff:ff:ff inet 172.21.249.6/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86328sec preferred_lft 86328sec inet6 fe80::f816:3eff:fe11:1f2c/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:20:f3:d4 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:fe20:f3d4/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.837 ms 64 bytes from 192.168.100.11: icmp_seq=2 ttl=64 time=0.209 ms 64 bytes from 192.168.100.11: icmp_seq=3 ttl=64 time=0.215 ms 64 bytes from 192.168.100.11: icmp_seq=4 ttl=64 time=0.171 ms 64 bytes from 192.168.100.11: icmp_seq=5 ttl=64 time=0.158 ms --- 192.168.100.11 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4068ms rtt min/avg/max/mdev = 0.158/0.318/0.837/0.260 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:11:1f:2c brd ff:ff:ff:ff:ff:ff inet 172.21.249.6/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86328sec preferred_lft 86328sec inet6 fe80::f816:3eff:fe11:1f2c/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:20:f3:d4 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:fe20:f3d4/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.837 ms 64 bytes from 192.168.100.11: icmp_seq=2 ttl=64 time=0.209 ms 64 bytes from 192.168.100.11: icmp_seq=3 ttl=64 time=0.215 ms 64 bytes from 192.168.100.11: icmp_seq=4 ttl=64 time=0.171 ms 64 bytes from 192.168.100.11: icmp_seq=5 ttl=64 time=0.158 ms --- 192.168.100.11 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4068ms rtt min/avg/max/mdev = 0.158/0.318/0.837/0.260 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | 50224e48-9888-425c-b14c-e6c17ddaf2ad | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.93 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | cac1767a-a0c8-4b38-94db-45b0feda0fb3 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.83.235; osm-ext=172.21.248.211 | ubuntu18.04 | simple_requires-1-1-flv | | fd3d4e51-3d11-4747-bce8-a6b1f9f47a34 | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.249.6 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | ee5b0d77-57d6-4ff4-81cd-db016ab320fa | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.248.2 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | fdb48dce-b570-446d-ae30-4dcf39ffafec | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.47 | ubuntu20.04 | simple_requires-1-1-flv | | db6311e7-716a-4178-a5c8-d613c45d4c73 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.83.120; osm-ext=172.21.249.243 | ubuntu18.04 | simple_requires-1-1-flv | | 66dd324a-27c2-4ed1-ae48-13dbbc38cf42 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.83.74; osm-ext=172.21.248.201 | ubuntu18.04 | simple_requires-1-1-flv | | 17efa03d-f0a7-4752-b38f-d54cf6baeffa | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.216 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | 50224e48-9888-425c-b14c-e6c17ddaf2ad | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.93 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | cac1767a-a0c8-4b38-94db-45b0feda0fb3 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.83.235; osm-ext=172.21.248.211 | ubuntu18.04 | simple_requires-1-1-flv | | fdb48dce-b570-446d-ae30-4dcf39ffafec | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.47 | ubuntu20.04 | simple_requires-1-1-flv | | db6311e7-716a-4178-a5c8-d613c45d4c73 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.83.120; osm-ext=172.21.249.243 | ubuntu18.04 | simple_requires-1-1-flv | | 66dd324a-27c2-4ed1-ae48-13dbbc38cf42 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.83.74; osm-ext=172.21.248.201 | ubuntu18.04 | simple_requires-1-1-flv | | 17efa03d-f0a7-4752-b38f-d54cf6baeffa | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.216 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | 50224e48-9888-425c-b14c-e6c17ddaf2ad | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.93 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | cac1767a-a0c8-4b38-94db-45b0feda0fb3 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.83.235; osm-ext=172.21.248.211 | ubuntu18.04 | simple_requires-1-1-flv | | fdb48dce-b570-446d-ae30-4dcf39ffafec | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.47 | ubuntu20.04 | simple_requires-1-1-flv | | db6311e7-716a-4178-a5c8-d613c45d4c73 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.83.120; osm-ext=172.21.249.243 | ubuntu18.04 | simple_requires-1-1-flv | | 66dd324a-27c2-4ed1-ae48-13dbbc38cf42 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.83.74; osm-ext=172.21.248.201 | ubuntu18.04 | simple_requires-1-1-flv | | 17efa03d-f0a7-4752-b38f-d54cf6baeffa | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.216 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 287640a8-81c2-4a58-bef3-ba0c8b2235df ${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} = 287640a8-81c2-4a58-bef3-ba0c8b2235df ${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 4c782f38-ca54-41c4-8ba6-bfa50f45cc19 ${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} = 4c782f38-ca54-41c4-8ba6-bfa50f45cc19 ${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} = 1624 ${ns_name} SEPARATOR=_ ${NS_NAME_PREFIX} ${rand} Catenates the given items together and returns the resulted string. ${ns_name} = fail_01_1624 ${NS_NAME} Makes a variable available everywhere within the scope of the current suite. ${NS_NAME} = fail_01_1624 ${NS_NAME} Logs the given message with the given level. fail_01_1624 ${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_1624 --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} = d3367e34-74be-4376-957d-2a7ce959ec97 ${stdout} Logs the given message with the given level. d3367e34-74be-4376-957d-2a7ce959ec97 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = d3367e34-74be-4376-957d-2a7ce959ec97 ${id} Logs the given message with the given level. d3367e34-74be-4376-957d-2a7ce959ec97 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = d3367e34-74be-4376-957d-2a7ce959ec97 ${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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | 50224e48-9888-425c-b14c-e6c17ddaf2ad | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.93 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | cac1767a-a0c8-4b38-94db-45b0feda0fb3 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.83.235; osm-ext=172.21.248.211 | ubuntu18.04 | simple_requires-1-1-flv | | fdb48dce-b570-446d-ae30-4dcf39ffafec | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.47 | ubuntu20.04 | simple_requires-1-1-flv | | db6311e7-716a-4178-a5c8-d613c45d4c73 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.83.120; osm-ext=172.21.249.243 | ubuntu18.04 | simple_requires-1-1-flv | | 66dd324a-27c2-4ed1-ae48-13dbbc38cf42 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.83.74; osm-ext=172.21.248.201 | ubuntu18.04 | simple_requires-1-1-flv | | 17efa03d-f0a7-4752-b38f-d54cf6baeffa | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.216 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ ${rc} ${stdout} osm ns-list --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_1624" 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_1624 | d3367e34-74be-4376-957d-2a7ce959ec97 | 2024-04-14T02:18:47 | BUILDING | INSTANTIATING (c2c46732-a7d1-4dd3-876a-22e020e5dc54) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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_1624 | d3367e34-74be-4376-957d-2a7ce959ec97 | 2024-04-14T02:18:47 | BUILDING | INSTANTIATING (c2c46732-a7d1-4dd3-876a-22e020e5dc54) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | 50224e48-9888-425c-b14c-e6c17ddaf2ad | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.93 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | cac1767a-a0c8-4b38-94db-45b0feda0fb3 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.83.235; osm-ext=172.21.248.211 | ubuntu18.04 | simple_requires-1-1-flv | | fdb48dce-b570-446d-ae30-4dcf39ffafec | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.47 | ubuntu20.04 | simple_requires-1-1-flv | | db6311e7-716a-4178-a5c8-d613c45d4c73 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.83.120; osm-ext=172.21.249.243 | ubuntu18.04 | simple_requires-1-1-flv | | 66dd324a-27c2-4ed1-ae48-13dbbc38cf42 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.83.74; osm-ext=172.21.248.201 | ubuntu18.04 | simple_requires-1-1-flv | | 17efa03d-f0a7-4752-b38f-d54cf6baeffa | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.216 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ ${rc} ${stdout} osm ns-list --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_1624" 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_1624 | d3367e34-74be-4376-957d-2a7ce959ec97 | 2024-04-14T02:18:47 | BUILDING | INSTANTIATING (c2c46732-a7d1-4dd3-876a-22e020e5dc54) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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_1624 | d3367e34-74be-4376-957d-2a7ce959ec97 | 2024-04-14T02:18:47 | BUILDING | INSTANTIATING (c2c46732-a7d1-4dd3-876a-22e020e5dc54) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------------+------------------------------+--------------------------+ | e96b36fc-c906-41e3-af60-698cf48aedaf | fail_01_1624-vnf-mgmtVM-0 | ACTIVE | fail_01_1624-internal=192.168.199.195; osm-ext=172.21.249.33 | ubuntu20.04 | simple_requires-1-1-flv | | 50224e48-9888-425c-b14c-e6c17ddaf2ad | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.93 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | cac1767a-a0c8-4b38-94db-45b0feda0fb3 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.83.235; osm-ext=172.21.248.211 | ubuntu18.04 | simple_requires-1-1-flv | | fdb48dce-b570-446d-ae30-4dcf39ffafec | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.47 | ubuntu20.04 | simple_requires-1-1-flv | | db6311e7-716a-4178-a5c8-d613c45d4c73 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.83.120; osm-ext=172.21.249.243 | ubuntu18.04 | simple_requires-1-1-flv | | 66dd324a-27c2-4ed1-ae48-13dbbc38cf42 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.83.74; osm-ext=172.21.248.201 | ubuntu18.04 | simple_requires-1-1-flv | | 17efa03d-f0a7-4752-b38f-d54cf6baeffa | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.216 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------------+------------------------------+--------------------------+ ${rc} ${stdout} osm ns-list --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_1624" 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_1624 | d3367e34-74be-4376-957d-2a7ce959ec97 | 2024-04-14T02:18:47 | BROKEN | IDLE (None) | Operation: INSTANTIATING.c2c46732-a7d1- | | | | | | | 4dd3-876a-22e020e5dc54, 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 194560 of 327680 ram (HTTP 403) | | | | | | | (Request-ID: req-4b419568-4057-4b09- | | | | | | | 9763-ef62757b69c6) | +------------------+--------------------------------------+---------------------+----------+-------------------+-----------------------------------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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="d3367e34-74be-4376-957d-2a7ce959ec97" | grep d3367e34-74be-4376-957d-2a7ce959ec97 | 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 d3367e34-74be-4376-957d-2a7ce959ec97 --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 194560 of 327680 ram (HTTP 403) (Request-ID: req-4b419568-4057-4b09-9763-ef62757b69c6)" ${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 194560 of 327680 ram (HTTP 403) (Request-ID: req-4b419568-4057-4b09-9763-ef62757b69c6)" ${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_1624 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------------+------------------------------+--------------------------+ | e96b36fc-c906-41e3-af60-698cf48aedaf | fail_01_1624-vnf-mgmtVM-0 | ACTIVE | fail_01_1624-internal=192.168.199.195; osm-ext=172.21.249.33 | ubuntu20.04 | simple_requires-1-1-flv | | 50224e48-9888-425c-b14c-e6c17ddaf2ad | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.93 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | cac1767a-a0c8-4b38-94db-45b0feda0fb3 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.83.235; osm-ext=172.21.248.211 | ubuntu18.04 | simple_requires-1-1-flv | | fdb48dce-b570-446d-ae30-4dcf39ffafec | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.47 | ubuntu20.04 | simple_requires-1-1-flv | | db6311e7-716a-4178-a5c8-d613c45d4c73 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.83.120; osm-ext=172.21.249.243 | ubuntu18.04 | simple_requires-1-1-flv | | 66dd324a-27c2-4ed1-ae48-13dbbc38cf42 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.83.74; osm-ext=172.21.248.201 | ubuntu18.04 | simple_requires-1-1-flv | | 17efa03d-f0a7-4752-b38f-d54cf6baeffa | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.216 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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_1624 2>&1'. ${rc} = 0 ${stdout} = fail_01_1624 ${rc},${stdout} Logs the given message with the given level. 0,fail_01_1624 ${stdout} ${ns} Fails if objects are equal after converting them to strings. fail_01_1624 == fail_01_1624 ${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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | 50224e48-9888-425c-b14c-e6c17ddaf2ad | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.93 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | cac1767a-a0c8-4b38-94db-45b0feda0fb3 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.83.235; osm-ext=172.21.248.211 | ubuntu18.04 | simple_requires-1-1-flv | | fdb48dce-b570-446d-ae30-4dcf39ffafec | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.47 | ubuntu20.04 | simple_requires-1-1-flv | | db6311e7-716a-4178-a5c8-d613c45d4c73 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.83.120; osm-ext=172.21.249.243 | ubuntu18.04 | simple_requires-1-1-flv | | 66dd324a-27c2-4ed1-ae48-13dbbc38cf42 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.83.74; osm-ext=172.21.248.201 | ubuntu18.04 | simple_requires-1-1-flv | | 17efa03d-f0a7-4752-b38f-d54cf6baeffa | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.216 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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_1624 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_1624 | 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 336264a0-af50-402d-b6fc-baa3035920a1 ${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} = 336264a0-af50-402d-b6fc-baa3035920a1 ${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 b7f36f7e-3b45-4283-8d4d-4531dda8419f ${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} = b7f36f7e-3b45-4283-8d4d-4531dda8419f ${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} = f88972dd-bed5-4ce3-9107-5f348234d22c ${stdout} Logs the given message with the given level. f88972dd-bed5-4ce3-9107-5f348234d22c ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = f88972dd-bed5-4ce3-9107-5f348234d22c ${ns_id} Logs the given message with the given level. f88972dd-bed5-4ce3-9107-5f348234d22c ${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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | 50224e48-9888-425c-b14c-e6c17ddaf2ad | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.93 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | cac1767a-a0c8-4b38-94db-45b0feda0fb3 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.83.235; osm-ext=172.21.248.211 | ubuntu18.04 | simple_requires-1-1-flv | | fdb48dce-b570-446d-ae30-4dcf39ffafec | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.47 | ubuntu20.04 | simple_requires-1-1-flv | | db6311e7-716a-4178-a5c8-d613c45d4c73 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.83.120; osm-ext=172.21.249.243 | ubuntu18.04 | simple_requires-1-1-flv | | 66dd324a-27c2-4ed1-ae48-13dbbc38cf42 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.83.74; osm-ext=172.21.248.201 | ubuntu18.04 | simple_requires-1-1-flv | | 17efa03d-f0a7-4752-b38f-d54cf6baeffa | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.216 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ ${rc} ${stdout} osm ns-list --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 | f88972dd-bed5-4ce3-9107-5f348234d22c | 2024-04-14T02:20:06 | BUILDING | INSTANTIATING (71c69ab9-1c0e-4ae1-9cb6-7ace85174d7e) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | f88972dd-bed5-4ce3-9107-5f348234d22c | 2024-04-14T02:20:06 | BUILDING | INSTANTIATING (71c69ab9-1c0e-4ae1-9cb6-7ace85174d7e) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | de674143-20f4-4555-a44f-50f9d6631d9b | hfbasic-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.89 | ubuntu20.04 | simple_requires-1-1-flv | | 50224e48-9888-425c-b14c-e6c17ddaf2ad | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.93 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | cac1767a-a0c8-4b38-94db-45b0feda0fb3 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.83.235; osm-ext=172.21.248.211 | ubuntu18.04 | simple_requires-1-1-flv | | fdb48dce-b570-446d-ae30-4dcf39ffafec | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.47 | ubuntu20.04 | simple_requires-1-1-flv | | db6311e7-716a-4178-a5c8-d613c45d4c73 | heal_02-charm_vnf-mgmtVM-1 | ERROR | heal_02-datanet=192.168.83.120; osm-ext=172.21.249.243 | ubuntu18.04 | simple_requires-1-1-flv | | 66dd324a-27c2-4ed1-ae48-13dbbc38cf42 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.83.74; osm-ext=172.21.248.201 | ubuntu18.04 | simple_requires-1-1-flv | | 17efa03d-f0a7-4752-b38f-d54cf6baeffa | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.216 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ ${rc} ${stdout} osm ns-list --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 | f88972dd-bed5-4ce3-9107-5f348234d22c | 2024-04-14T02:20:06 | 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | de674143-20f4-4555-a44f-50f9d6631d9b | hfbasic-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.89 | ubuntu20.04 | simple_requires-1-1-flv | | 50224e48-9888-425c-b14c-e6c17ddaf2ad | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.93 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | cac1767a-a0c8-4b38-94db-45b0feda0fb3 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.83.235; osm-ext=172.21.248.211 | ubuntu18.04 | simple_requires-1-1-flv | | fdb48dce-b570-446d-ae30-4dcf39ffafec | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.47 | ubuntu20.04 | simple_requires-1-1-flv | | db6311e7-716a-4178-a5c8-d613c45d4c73 | heal_02-charm_vnf-mgmtVM-1 | ERROR | heal_02-datanet=192.168.83.120; osm-ext=172.21.249.243 | ubuntu18.04 | simple_requires-1-1-flv | | 66dd324a-27c2-4ed1-ae48-13dbbc38cf42 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.83.74; osm-ext=172.21.248.201 | ubuntu18.04 | simple_requires-1-1-flv | | 17efa03d-f0a7-4752-b38f-d54cf6baeffa | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.216 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ ${rc} ${stdout} osm ns-list --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 | f88972dd-bed5-4ce3-9107-5f348234d22c | 2024-04-14T02:20:06 | 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} = f88972dd-bed5-4ce3-9107-5f348234d22c ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = f88972dd-bed5-4ce3-9107-5f348234d22c 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 f88972dd-bed5-4ce3-9107-5f348234d22c | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.89 ${stdout} Logs the given message with the given level. 172.21.248.89 ${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.89 ${ip_addr} Logs the given message with the given level. 172.21.248.89 ${VNF_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. ${VNF_IP_ADDR} = 172.21.248.89 Get the mgmt IP address of the VNF of the NS. azure cluster_main daily hackfest_basic regression sanity ${VNF_IP_ADDR} Ping a host several times during 30sec until it succeeds or raises a timeout. ${CONNECTIVITY_MAX_WAIT_TIME} ${CONNECTIVITY_POL_TIME} Test Ping Host ${host} Runs the specified keyword and retries if it fails. ${host} Run Ping Parameters: host: IP or name of the host Execution example: Ping Test ${host} ${rc} ${stdout} ping -c 2 -W 1 ${host} Runs the given command in the system and returns the RC and output. Running command 'ping -c 2 -W 1 172.21.248.89 2>&1'. ${rc} = 0 ${stdout} = PING 172.21.248.89 (172.21.248.89) 56(84) bytes of data. 64 bytes from 172.21.248.89: icmp_seq=1 ttl=63 time=2.71 ms 64 bytes from 172.21.248.89: icmp_seq=2 ttl=63 time=0.810 ms --- 172.21.248.89 pin... ${stdout} Logs the given message with the given level. PING 172.21.248.89 (172.21.248.89) 56(84) bytes of data. 64 bytes from 172.21.248.89: icmp_seq=1 ttl=63 time=2.71 ms 64 bytes from 172.21.248.89: icmp_seq=2 ttl=63 time=0.810 ms --- 172.21.248.89 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1002ms rtt min/avg/max/mdev = 0.810/1.761/2.713/0.951 ms ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> Test that the mgmt IP address of the VNF is reachable with ping. azure cluster_main daily hackfest_basic regression sanity 30s Waiting ssh daemon to be up Pauses the test executed for the given time. Slept 30 seconds Waiting ssh daemon to be up ${VNF_IP_ADDR} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} Test the SSH connection to the host with the user and credentials passed as arguments. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.248.89: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 14 02:21:19 UTC 2024 System load: 0.47 Processes: 104 Usage of /: 14.0% of 9.52GB Users logged in: 0 Memory usage: 21% IPv4 address for ens3: 172.21.248.89 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | 653bdb72-583c-4486-a01a-e042cb02b679 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.83.120; osm-ext=172.21.249.243 | ubuntu18.04 | simple_requires-1-1-flv | | de674143-20f4-4555-a44f-50f9d6631d9b | hfbasic-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.89 | ubuntu20.04 | simple_requires-1-1-flv | | 50224e48-9888-425c-b14c-e6c17ddaf2ad | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.93 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | cac1767a-a0c8-4b38-94db-45b0feda0fb3 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.83.235; osm-ext=172.21.248.211 | ubuntu18.04 | simple_requires-1-1-flv | | fdb48dce-b570-446d-ae30-4dcf39ffafec | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.47 | ubuntu20.04 | simple_requires-1-1-flv | | 66dd324a-27c2-4ed1-ae48-13dbbc38cf42 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.83.74; osm-ext=172.21.248.201 | ubuntu18.04 | simple_requires-1-1-flv | | 17efa03d-f0a7-4752-b38f-d54cf6baeffa | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.216 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | 653bdb72-583c-4486-a01a-e042cb02b679 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.83.120; osm-ext=172.21.249.243 | ubuntu18.04 | simple_requires-1-1-flv | | 50224e48-9888-425c-b14c-e6c17ddaf2ad | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.93 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | cac1767a-a0c8-4b38-94db-45b0feda0fb3 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.83.235; osm-ext=172.21.248.211 | ubuntu18.04 | simple_requires-1-1-flv | | fdb48dce-b570-446d-ae30-4dcf39ffafec | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.47 | ubuntu20.04 | simple_requires-1-1-flv | | 66dd324a-27c2-4ed1-ae48-13dbbc38cf42 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.83.74; osm-ext=172.21.248.201 | ubuntu18.04 | simple_requires-1-1-flv | | 17efa03d-f0a7-4752-b38f-d54cf6baeffa | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.216 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 9b94ab41-d53e-425b-82a9-294698bc8ef3 ${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} = 9b94ab41-d53e-425b-82a9-294698bc8ef3 ${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 e746c5e5-0d36-45b9-8e46-d88a87214fef ${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} = e746c5e5-0d36-45b9-8e46-d88a87214fef ${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} = 94abf24f-70cb-402a-a071-d163245143ad ${stdout} Logs the given message with the given level. 94abf24f-70cb-402a-a071-d163245143ad ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 94abf24f-70cb-402a-a071-d163245143ad ${ns_id} Logs the given message with the given level. 94abf24f-70cb-402a-a071-d163245143ad ${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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | 653bdb72-583c-4486-a01a-e042cb02b679 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.83.120; osm-ext=172.21.249.243 | ubuntu18.04 | simple_requires-1-1-flv | | 50224e48-9888-425c-b14c-e6c17ddaf2ad | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.93 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | cac1767a-a0c8-4b38-94db-45b0feda0fb3 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.83.235; osm-ext=172.21.248.211 | ubuntu18.04 | simple_requires-1-1-flv | | fdb48dce-b570-446d-ae30-4dcf39ffafec | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.47 | ubuntu20.04 | simple_requires-1-1-flv | | 66dd324a-27c2-4ed1-ae48-13dbbc38cf42 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.83.74; osm-ext=172.21.248.201 | ubuntu18.04 | simple_requires-1-1-flv | | 17efa03d-f0a7-4752-b38f-d54cf6baeffa | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.216 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ ${rc} ${stdout} osm ns-list --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 | 94abf24f-70cb-402a-a071-d163245143ad | 2024-04-14T02:21:54 | BUILDING | INSTANTIATING (1151d368-c2f6-49ed-8101-e6ed8936cb41) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 94abf24f-70cb-402a-a071-d163245143ad | 2024-04-14T02:21:54 | BUILDING | INSTANTIATING (1151d368-c2f6-49ed-8101-e6ed8936cb41) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------------------------+------------------------------+--------------------------+ | c044ded3-c90f-4d2f-bbe5-811a89f0d8d5 | hfcloudinit-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | ba0a33c7-36c3-4061-b463-129566595674 | hfcloudinit-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 2d9a9bc0-d20b-44b4-91aa-bea994bfcde9 | hfcloudinit-vnf1-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.144.233; hfcloudinit-internal=192.168.233.157 | ubuntu20.04 | simple_requires-1-1-flv | | 0283a83e-c49f-4a04-97dd-639378235bc1 | hfcloudinit-vnf1-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.233.209; osm-ext=172.21.249.40 | ubuntu20.04 | simple_requires-1-1-flv | | 653bdb72-583c-4486-a01a-e042cb02b679 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.83.120; osm-ext=172.21.249.243 | ubuntu18.04 | simple_requires-1-1-flv | | 50224e48-9888-425c-b14c-e6c17ddaf2ad | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.93 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | cac1767a-a0c8-4b38-94db-45b0feda0fb3 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.83.235; osm-ext=172.21.248.211 | ubuntu18.04 | simple_requires-1-1-flv | | fdb48dce-b570-446d-ae30-4dcf39ffafec | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.47 | ubuntu20.04 | simple_requires-1-1-flv | | 66dd324a-27c2-4ed1-ae48-13dbbc38cf42 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.83.74; osm-ext=172.21.248.201 | ubuntu18.04 | simple_requires-1-1-flv | | 17efa03d-f0a7-4752-b38f-d54cf6baeffa | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.216 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------------------------+------------------------------+--------------------------+ ${rc} ${stdout} osm ns-list --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 | 94abf24f-70cb-402a-a071-d163245143ad | 2024-04-14T02:21:54 | BUILDING | INSTANTIATING (1151d368-c2f6-49ed-8101-e6ed8936cb41) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 94abf24f-70cb-402a-a071-d163245143ad | 2024-04-14T02:21:54 | BUILDING | INSTANTIATING (1151d368-c2f6-49ed-8101-e6ed8936cb41) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------------------------+------------------------------+--------------------------+ | c044ded3-c90f-4d2f-bbe5-811a89f0d8d5 | hfcloudinit-vnf2-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.144.197; hfcloudinit-internal=192.168.55.226 | ubuntu20.04 | simple_requires-1-1-flv | | ba0a33c7-36c3-4061-b463-129566595674 | hfcloudinit-vnf2-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.55.132; osm-ext=172.21.249.85 | ubuntu20.04 | simple_requires-1-1-flv | | 2d9a9bc0-d20b-44b4-91aa-bea994bfcde9 | hfcloudinit-vnf1-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.144.233; hfcloudinit-internal=192.168.233.157 | ubuntu20.04 | simple_requires-1-1-flv | | 0283a83e-c49f-4a04-97dd-639378235bc1 | hfcloudinit-vnf1-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.233.209; osm-ext=172.21.249.40 | ubuntu20.04 | simple_requires-1-1-flv | | 653bdb72-583c-4486-a01a-e042cb02b679 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.83.120; osm-ext=172.21.249.243 | ubuntu18.04 | simple_requires-1-1-flv | | 50224e48-9888-425c-b14c-e6c17ddaf2ad | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.93 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | cac1767a-a0c8-4b38-94db-45b0feda0fb3 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.83.235; osm-ext=172.21.248.211 | ubuntu18.04 | simple_requires-1-1-flv | | fdb48dce-b570-446d-ae30-4dcf39ffafec | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.47 | ubuntu20.04 | simple_requires-1-1-flv | | 66dd324a-27c2-4ed1-ae48-13dbbc38cf42 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.83.74; osm-ext=172.21.248.201 | ubuntu18.04 | simple_requires-1-1-flv | | 17efa03d-f0a7-4752-b38f-d54cf6baeffa | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.216 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------------------------+------------------------------+--------------------------+ ${rc} ${stdout} osm ns-list --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 | 94abf24f-70cb-402a-a071-d163245143ad | 2024-04-14T02:21:54 | 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 | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------------------------+------------------------------+--------------------------+ | c044ded3-c90f-4d2f-bbe5-811a89f0d8d5 | hfcloudinit-vnf2-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.144.197; hfcloudinit-internal=192.168.55.226 | ubuntu20.04 | simple_requires-1-1-flv | | ba0a33c7-36c3-4061-b463-129566595674 | hfcloudinit-vnf2-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.55.132; osm-ext=172.21.249.85 | ubuntu20.04 | simple_requires-1-1-flv | | 2d9a9bc0-d20b-44b4-91aa-bea994bfcde9 | hfcloudinit-vnf1-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.144.233; hfcloudinit-internal=192.168.233.157 | ubuntu20.04 | simple_requires-1-1-flv | | 0283a83e-c49f-4a04-97dd-639378235bc1 | hfcloudinit-vnf1-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.233.209; osm-ext=172.21.249.40 | ubuntu20.04 | simple_requires-1-1-flv | | 653bdb72-583c-4486-a01a-e042cb02b679 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.83.120; osm-ext=172.21.249.243 | ubuntu18.04 | simple_requires-1-1-flv | | 50224e48-9888-425c-b14c-e6c17ddaf2ad | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.93 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | cac1767a-a0c8-4b38-94db-45b0feda0fb3 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.83.235; osm-ext=172.21.248.211 | ubuntu18.04 | simple_requires-1-1-flv | | fdb48dce-b570-446d-ae30-4dcf39ffafec | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.47 | ubuntu20.04 | simple_requires-1-1-flv | | 66dd324a-27c2-4ed1-ae48-13dbbc38cf42 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.83.74; osm-ext=172.21.248.201 | ubuntu18.04 | simple_requires-1-1-flv | | 17efa03d-f0a7-4752-b38f-d54cf6baeffa | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.216 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------------------------+------------------------------+--------------------------+ ${rc} ${stdout} osm ns-list --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 | 94abf24f-70cb-402a-a071-d163245143ad | 2024-04-14T02:21:54 | 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} = 94abf24f-70cb-402a-a071-d163245143ad ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 94abf24f-70cb-402a-a071-d163245143ad 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 94abf24f-70cb-402a-a071-d163245143ad | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.40 ${stdout} Logs the given message with the given level. 172.21.249.40 ${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.40 ${ip_addr} Logs the given message with the given level. 172.21.249.40 ${VNF_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. ${VNF_IP_ADDR} = 172.21.249.40 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.249.40: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 14 02:23:39 UTC 2024 System load: 0.5 Processes: 103 Usage of /: 14.0% of 9.52GB Users logged in: 0 Memory usage: 20% IPv4 address for ens3: 172.21.249.40 Swap usage: 0% IPv4 address for ens4: 192.168.233.209 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.249.40: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 14 02:23:41 UTC 2024 System load: 0.5 Processes: 103 Usage of /: 14.2% of 9.52GB Users logged in: 0 Memory usage: 20% IPv4 address for ens3: 172.21.249.40 Swap usage: 0% IPv4 address for ens4: 192.168.233.209 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 14 02:23:40 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 | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------------------------+------------------------------+--------------------------+ | c044ded3-c90f-4d2f-bbe5-811a89f0d8d5 | hfcloudinit-vnf2-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.144.197; hfcloudinit-internal=192.168.55.226 | ubuntu20.04 | simple_requires-1-1-flv | | ba0a33c7-36c3-4061-b463-129566595674 | hfcloudinit-vnf2-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.55.132; osm-ext=172.21.249.85 | ubuntu20.04 | simple_requires-1-1-flv | | 2d9a9bc0-d20b-44b4-91aa-bea994bfcde9 | hfcloudinit-vnf1-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.144.233; hfcloudinit-internal=192.168.233.157 | ubuntu20.04 | simple_requires-1-1-flv | | 0283a83e-c49f-4a04-97dd-639378235bc1 | hfcloudinit-vnf1-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.233.209; osm-ext=172.21.249.40 | ubuntu20.04 | simple_requires-1-1-flv | | 653bdb72-583c-4486-a01a-e042cb02b679 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.83.120; osm-ext=172.21.249.243 | ubuntu18.04 | simple_requires-1-1-flv | | 50224e48-9888-425c-b14c-e6c17ddaf2ad | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.93 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | cac1767a-a0c8-4b38-94db-45b0feda0fb3 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.83.235; osm-ext=172.21.248.211 | ubuntu18.04 | simple_requires-1-1-flv | | fdb48dce-b570-446d-ae30-4dcf39ffafec | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.47 | ubuntu20.04 | simple_requires-1-1-flv | | 66dd324a-27c2-4ed1-ae48-13dbbc38cf42 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.83.74; osm-ext=172.21.248.201 | ubuntu18.04 | simple_requires-1-1-flv | | 17efa03d-f0a7-4752-b38f-d54cf6baeffa | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.216 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | +--------------------------------------+-----------------------------------------------+--------+------------------------------------------------------------+------------------------------+--------------------------+ | c044ded3-c90f-4d2f-bbe5-811a89f0d8d5 | hfcloudinit-vnf2-dataVM-0 | ACTIVE | hfcloudinit-internal=192.168.55.226 | ubuntu20.04 | simple_requires-1-1-flv | | ba0a33c7-36c3-4061-b463-129566595674 | hfcloudinit-vnf2-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.55.132; osm-ext=172.21.249.85 | ubuntu20.04 | simple_requires-1-1-flv | | 653bdb72-583c-4486-a01a-e042cb02b679 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.83.120; osm-ext=172.21.249.243 | ubuntu18.04 | simple_requires-1-1-flv | | 50224e48-9888-425c-b14c-e6c17ddaf2ad | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.93 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | cac1767a-a0c8-4b38-94db-45b0feda0fb3 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.83.235; osm-ext=172.21.248.211 | ubuntu18.04 | simple_requires-1-1-flv | | fdb48dce-b570-446d-ae30-4dcf39ffafec | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.47 | ubuntu20.04 | simple_requires-1-1-flv | | 66dd324a-27c2-4ed1-ae48-13dbbc38cf42 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.83.74; osm-ext=172.21.248.201 | ubuntu18.04 | simple_requires-1-1-flv | | 17efa03d-f0a7-4752-b38f-d54cf6baeffa | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.216 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | 653bdb72-583c-4486-a01a-e042cb02b679 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.83.120; osm-ext=172.21.249.243 | ubuntu18.04 | simple_requires-1-1-flv | | 50224e48-9888-425c-b14c-e6c17ddaf2ad | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.93 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | cac1767a-a0c8-4b38-94db-45b0feda0fb3 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.83.235; osm-ext=172.21.248.211 | ubuntu18.04 | simple_requires-1-1-flv | | fdb48dce-b570-446d-ae30-4dcf39ffafec | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.47 | ubuntu20.04 | simple_requires-1-1-flv | | 66dd324a-27c2-4ed1-ae48-13dbbc38cf42 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.83.74; osm-ext=172.21.248.201 | ubuntu18.04 | simple_requires-1-1-flv | | 17efa03d-f0a7-4752-b38f-d54cf6baeffa | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.216 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 ac220d1d-476c-4817-ad93-e40d762a1cbd ${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} = ac220d1d-476c-4817-ad93-e40d762a1cbd ${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 361ae358-b71c-4e4f-896e-01cdf40ed873 ${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} = 361ae358-b71c-4e4f-896e-01cdf40ed873 ${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} = 2b799abe-c3bf-4f6d-8add-7033c5fdcb5d ${stdout} Logs the given message with the given level. 2b799abe-c3bf-4f6d-8add-7033c5fdcb5d ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 2b799abe-c3bf-4f6d-8add-7033c5fdcb5d ${ns_id} Logs the given message with the given level. 2b799abe-c3bf-4f6d-8add-7033c5fdcb5d ${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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ | 653bdb72-583c-4486-a01a-e042cb02b679 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.83.120; osm-ext=172.21.249.243 | ubuntu18.04 | simple_requires-1-1-flv | | 50224e48-9888-425c-b14c-e6c17ddaf2ad | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.93 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | cac1767a-a0c8-4b38-94db-45b0feda0fb3 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.83.235; osm-ext=172.21.248.211 | ubuntu18.04 | simple_requires-1-1-flv | | fdb48dce-b570-446d-ae30-4dcf39ffafec | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.47 | ubuntu20.04 | simple_requires-1-1-flv | | 66dd324a-27c2-4ed1-ae48-13dbbc38cf42 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.83.74; osm-ext=172.21.248.201 | ubuntu18.04 | simple_requires-1-1-flv | | 17efa03d-f0a7-4752-b38f-d54cf6baeffa | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.216 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+------------------------------+--------------------------+ ${rc} ${stdout} osm ns-list --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 | 2b799abe-c3bf-4f6d-8add-7033c5fdcb5d | 2024-04-14T02:24:34 | BUILDING | INSTANTIATING (bb81ef95-8d7e-4ecf-8516-ec1e722cd052) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 2b799abe-c3bf-4f6d-8add-7033c5fdcb5d | 2024-04-14T02:24:34 | BUILDING | INSTANTIATING (bb81ef95-8d7e-4ecf-8516-ec1e722cd052) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+-----------------------------------------------+--------+------------------------------------------------------------+------------------------------+--------------------------+ | a59c5876-c41a-4867-af0e-27a2334d5a08 | hfmultivdu-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 5d5083c0-5ae8-433f-ae35-8f85746645a1 | hfmultivdu-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 034d421b-5aa3-4795-a710-a5500711b999 | hfmultivdu-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 4e9a02b9-11b4-4fd4-bfc8-c203ff7d36a6 | hfmultivdu-vnf1-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.73.115; osm-ext=172.21.249.234 | ubuntu20.04 | simple_requires-1-1-flv | | 653bdb72-583c-4486-a01a-e042cb02b679 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.83.120; osm-ext=172.21.249.243 | ubuntu18.04 | simple_requires-1-1-flv | | 50224e48-9888-425c-b14c-e6c17ddaf2ad | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.93 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | cac1767a-a0c8-4b38-94db-45b0feda0fb3 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.83.235; osm-ext=172.21.248.211 | ubuntu18.04 | simple_requires-1-1-flv | | fdb48dce-b570-446d-ae30-4dcf39ffafec | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.47 | ubuntu20.04 | simple_requires-1-1-flv | | 66dd324a-27c2-4ed1-ae48-13dbbc38cf42 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.83.74; osm-ext=172.21.248.201 | ubuntu18.04 | simple_requires-1-1-flv | | 17efa03d-f0a7-4752-b38f-d54cf6baeffa | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.216 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+------------------------------------------------------------+------------------------------+--------------------------+ ${rc} ${stdout} osm ns-list --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 | 2b799abe-c3bf-4f6d-8add-7033c5fdcb5d | 2024-04-14T02:24:34 | BUILDING | INSTANTIATING (bb81ef95-8d7e-4ecf-8516-ec1e722cd052) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 2b799abe-c3bf-4f6d-8add-7033c5fdcb5d | 2024-04-14T02:24:34 | BUILDING | INSTANTIATING (bb81ef95-8d7e-4ecf-8516-ec1e722cd052) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+-----------------------------------------------+--------+------------------------------------------------------------------------+------------------------------+--------------------------+ | a59c5876-c41a-4867-af0e-27a2334d5a08 | hfmultivdu-vnf2-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.26.140; hfmultivdu-internal=192.168.198.157 | ubuntu20.04 | simple_requires-1-1-flv | | 5d5083c0-5ae8-433f-ae35-8f85746645a1 | hfmultivdu-vnf2-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.198.105; osm-ext=172.21.249.164 | ubuntu20.04 | simple_requires-1-1-flv | | 034d421b-5aa3-4795-a710-a5500711b999 | hfmultivdu-vnf1-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.26.57; hfmultivdu-internal=192.168.73.4 | ubuntu20.04 | simple_requires-1-1-flv | | 4e9a02b9-11b4-4fd4-bfc8-c203ff7d36a6 | hfmultivdu-vnf1-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.73.115; osm-ext=172.21.249.234 | ubuntu20.04 | simple_requires-1-1-flv | | 653bdb72-583c-4486-a01a-e042cb02b679 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.83.120; osm-ext=172.21.249.243 | ubuntu18.04 | simple_requires-1-1-flv | | 50224e48-9888-425c-b14c-e6c17ddaf2ad | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.93 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | cac1767a-a0c8-4b38-94db-45b0feda0fb3 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.83.235; osm-ext=172.21.248.211 | ubuntu18.04 | simple_requires-1-1-flv | | fdb48dce-b570-446d-ae30-4dcf39ffafec | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.47 | ubuntu20.04 | simple_requires-1-1-flv | | 66dd324a-27c2-4ed1-ae48-13dbbc38cf42 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.83.74; osm-ext=172.21.248.201 | ubuntu18.04 | simple_requires-1-1-flv | | 17efa03d-f0a7-4752-b38f-d54cf6baeffa | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.216 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+------------------------------------------------------------------------+------------------------------+--------------------------+ ${rc} ${stdout} osm ns-list --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 | 2b799abe-c3bf-4f6d-8add-7033c5fdcb5d | 2024-04-14T02:24:34 | 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 | +--------------------------------------+-----------------------------------------------+--------+------------------------------------------------------------------------+------------------------------+--------------------------+ | a59c5876-c41a-4867-af0e-27a2334d5a08 | hfmultivdu-vnf2-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.26.140; hfmultivdu-internal=192.168.198.157 | ubuntu20.04 | simple_requires-1-1-flv | | 5d5083c0-5ae8-433f-ae35-8f85746645a1 | hfmultivdu-vnf2-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.198.105; osm-ext=172.21.249.164 | ubuntu20.04 | simple_requires-1-1-flv | | 034d421b-5aa3-4795-a710-a5500711b999 | hfmultivdu-vnf1-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.26.57; hfmultivdu-internal=192.168.73.4 | ubuntu20.04 | simple_requires-1-1-flv | | 4e9a02b9-11b4-4fd4-bfc8-c203ff7d36a6 | hfmultivdu-vnf1-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.73.115; osm-ext=172.21.249.234 | ubuntu20.04 | simple_requires-1-1-flv | | 653bdb72-583c-4486-a01a-e042cb02b679 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.83.120; osm-ext=172.21.249.243 | ubuntu18.04 | simple_requires-1-1-flv | | 50224e48-9888-425c-b14c-e6c17ddaf2ad | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.93 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | cac1767a-a0c8-4b38-94db-45b0feda0fb3 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.83.235; osm-ext=172.21.248.211 | ubuntu18.04 | simple_requires-1-1-flv | | fdb48dce-b570-446d-ae30-4dcf39ffafec | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.47 | ubuntu20.04 | simple_requires-1-1-flv | | 66dd324a-27c2-4ed1-ae48-13dbbc38cf42 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.83.74; osm-ext=172.21.248.201 | ubuntu18.04 | simple_requires-1-1-flv | | 17efa03d-f0a7-4752-b38f-d54cf6baeffa | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.216 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+------------------------------------------------------------------------+------------------------------+--------------------------+ ${rc} ${stdout} osm ns-list --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 | 2b799abe-c3bf-4f6d-8add-7033c5fdcb5d | 2024-04-14T02:24:34 | 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} = 2b799abe-c3bf-4f6d-8add-7033c5fdcb5d ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 2b799abe-c3bf-4f6d-8add-7033c5fdcb5d ${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 2b799abe-c3bf-4f6d-8add-7033c5fdcb5d | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.234 ${stdout} Logs the given message with the given level. 172.21.249.234 ${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.234 ${ip_addr} Logs the given message with the given level. 172.21.249.234 ${VNF_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. ${VNF_IP_ADDR} = 172.21.249.234 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.249.234 2>&1'. ${rc} = 0 ${stdout} = PING 172.21.249.234 (172.21.249.234) 56(84) bytes of data. 64 bytes from 172.21.249.234: icmp_seq=1 ttl=63 time=2.98 ms 64 bytes from 172.21.249.234: icmp_seq=2 ttl=63 time=0.714 ms --- 172.21.249.23... ${stdout} Logs the given message with the given level. PING 172.21.249.234 (172.21.249.234) 56(84) bytes of data. 64 bytes from 172.21.249.234: icmp_seq=1 ttl=63 time=2.98 ms 64 bytes from 172.21.249.234: icmp_seq=2 ttl=63 time=0.714 ms --- 172.21.249.234 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 0.714/1.849/2.984/1.135 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.249.234: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 14 02:26:38 UTC 2024 System load: 0.45 Processes: 104 Usage of /: 14.0% of 9.52GB Users logged in: 0 Memory usage: 21% IPv4 address for ens3: 172.21.249.234 Swap usage: 0% IPv4 address for ens4: 192.168.73.115 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 | +--------------------------------------+-----------------------------------------------+--------+------------------------------------------------------------------------+------------------------------+--------------------------+ | a59c5876-c41a-4867-af0e-27a2334d5a08 | hfmultivdu-vnf2-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.26.140; hfmultivdu-internal=192.168.198.157 | ubuntu20.04 | simple_requires-1-1-flv | | 5d5083c0-5ae8-433f-ae35-8f85746645a1 | hfmultivdu-vnf2-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.198.105; osm-ext=172.21.249.164 | ubuntu20.04 | simple_requires-1-1-flv | | 034d421b-5aa3-4795-a710-a5500711b999 | hfmultivdu-vnf1-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.26.57; hfmultivdu-internal=192.168.73.4 | ubuntu20.04 | simple_requires-1-1-flv | | 4e9a02b9-11b4-4fd4-bfc8-c203ff7d36a6 | hfmultivdu-vnf1-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.73.115; osm-ext=172.21.249.234 | ubuntu20.04 | simple_requires-1-1-flv | | 653bdb72-583c-4486-a01a-e042cb02b679 | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.83.120; osm-ext=172.21.249.243 | ubuntu18.04 | simple_requires-1-1-flv | | 50224e48-9888-425c-b14c-e6c17ddaf2ad | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.93 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | cac1767a-a0c8-4b38-94db-45b0feda0fb3 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | osm-ext=172.21.248.211 | ubuntu18.04 | simple_requires-1-1-flv | | fdb48dce-b570-446d-ae30-4dcf39ffafec | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.47 | ubuntu20.04 | simple_requires-1-1-flv | | 66dd324a-27c2-4ed1-ae48-13dbbc38cf42 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | osm-ext=172.21.248.201 | ubuntu18.04 | simple_requires-1-1-flv | | 17efa03d-f0a7-4752-b38f-d54cf6baeffa | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.216 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | +--------------------------------------+------------------------------------------+--------+-------------------------------------------------------------+------------------------------+--------------------------+ | a59c5876-c41a-4867-af0e-27a2334d5a08 | hfmultivdu-vnf2-dataVM-0 | ACTIVE | hfmultivdu-internal=192.168.198.157 | ubuntu20.04 | simple_requires-1-1-flv | | 5d5083c0-5ae8-433f-ae35-8f85746645a1 | hfmultivdu-vnf2-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.198.105; osm-ext=172.21.249.164 | ubuntu20.04 | simple_requires-1-1-flv | | 034d421b-5aa3-4795-a710-a5500711b999 | hfmultivdu-vnf1-dataVM-0 | ACTIVE | | ubuntu20.04 | simple_requires-1-1-flv | | 4e9a02b9-11b4-4fd4-bfc8-c203ff7d36a6 | hfmultivdu-vnf1-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.234 | ubuntu20.04 | simple_requires-1-1-flv | | 50224e48-9888-425c-b14c-e6c17ddaf2ad | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.93 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | fdb48dce-b570-446d-ae30-4dcf39ffafec | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.47 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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} = +--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | 50224e48-9888-425c-b14c-e6c17ddaf2ad | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.93 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | fdb48dce-b570-446d-ae30-4dcf39ffafec | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.47 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 b65118c2-ad55-416e-9cb8-cf51b5c4f4b2 ${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} = b65118c2-ad55-416e-9cb8-cf51b5c4f4b2 ${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 f04d56f0-e0a9-423c-9af4-2b40a225579e ${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} = f04d56f0-e0a9-423c-9af4-2b40a225579e ${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 bfcb79ae-2c21-4f84-ba56-f67653704f19 ${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} = bfcb79ae-2c21-4f84-ba56-f67653704f19 ${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} = bbda467b-5519-4e57-93db-5d51f5a0547b ${stdout} Logs the given message with the given level. bbda467b-5519-4e57-93db-5d51f5a0547b ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = bbda467b-5519-4e57-93db-5d51f5a0547b ${ns_id} Logs the given message with the given level. bbda467b-5519-4e57-93db-5d51f5a0547b ${ns_launch_max_wait_time} ${NS_LAUNCH_POL_TIME} Check For NS Instance To Configured ${ns_name} Runs the specified keyword and retries if it fails. ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | N... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | fdb48dce-b570-446d-ae30-4dcf39ffafec | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.47 | ubuntu20.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | bbda467b-5519-4e57-93db-5d51f5a0547b | 2024-04-14T02:27:34 | BUILDING | INSTANTIATING (23c931a3-7fd2-4060-a2c0-b445fe82e3bf) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | bbda467b-5519-4e57-93db-5d51f5a0547b | 2024-04-14T02:27:34 | BUILDING | INSTANTIATING (23c931a3-7fd2-4060-a2c0-b445fe82e3bf) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+-----------------------------------------------+--------+------------------------+-------------+-------------------------+ | 8b61dad9-0250-434c-bb16-7382c16405a9 | heal_01-manual_scale_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 12ee8fd2-ce74-468e-9bcc-1cdd9d929809 | heal_03-charm_vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 5845e1ac-4e6b-4810-a4f6-df0bb6208ec1 | heal_01-manual_scale_vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 282695c5-6d8e-4e46-ab7c-eed27f4cf963 | heal_03-several_volumes_-several_volumes-VM-0 | BUILD | | ubuntu20.04 | several_volumes-VM-flv | | 7c9ac4f7-cf5c-41a6-877a-a83dce11e2a6 | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.141 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | bbda467b-5519-4e57-93db-5d51f5a0547b | 2024-04-14T02:27:34 | BUILDING | INSTANTIATING (23c931a3-7fd2-4060-a2c0-b445fe82e3bf) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | bbda467b-5519-4e57-93db-5d51f5a0547b | 2024-04-14T02:27:34 | BUILDING | INSTANTIATING (23c931a3-7fd2-4060-a2c0-b445fe82e3bf) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | 282c9771-a96f-4d04-9bdd-16a0dc2d07c0 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.164.216; osm-ext=172.21.248.8 | ubuntu18.04 | simple_requires-1-1-flv | | 8b61dad9-0250-434c-bb16-7382c16405a9 | heal_01-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.149.113; osm-ext=172.21.249.91 | ubuntu18.04 | simple_requires-1-1-flv | | 12ee8fd2-ce74-468e-9bcc-1cdd9d929809 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.164.118; osm-ext=172.21.248.111 | ubuntu18.04 | simple_requires-1-1-flv | | 5845e1ac-4e6b-4810-a4f6-df0bb6208ec1 | heal_01-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.149.135; osm-ext=172.21.248.78 | ubuntu18.04 | simple_requires-1-1-flv | | 282695c5-6d8e-4e46-ab7c-eed27f4cf963 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.201 | ubuntu20.04 | several_volumes-VM-flv | | 7c9ac4f7-cf5c-41a6-877a-a83dce11e2a6 | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.141 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | bbda467b-5519-4e57-93db-5d51f5a0547b | 2024-04-14T02:27:34 | 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 | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ | 11c6a660-7a5b-4068-b87d-d50cc4038326 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | BUILD | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 282c9771-a96f-4d04-9bdd-16a0dc2d07c0 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.164.216; osm-ext=172.21.248.8 | ubuntu18.04 | simple_requires-1-1-flv | | 8b61dad9-0250-434c-bb16-7382c16405a9 | heal_01-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.149.113; osm-ext=172.21.249.91 | ubuntu18.04 | simple_requires-1-1-flv | | 12ee8fd2-ce74-468e-9bcc-1cdd9d929809 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.164.118; osm-ext=172.21.248.111 | ubuntu18.04 | simple_requires-1-1-flv | | 5845e1ac-4e6b-4810-a4f6-df0bb6208ec1 | heal_01-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.149.135; osm-ext=172.21.248.78 | ubuntu18.04 | simple_requires-1-1-flv | | 282695c5-6d8e-4e46-ab7c-eed27f4cf963 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.201 | ubuntu20.04 | several_volumes-VM-flv | | 7c9ac4f7-cf5c-41a6-877a-a83dce11e2a6 | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.141 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+---------------------------+ ${rc} ${stdout} osm ns-list --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 | bbda467b-5519-4e57-93db-5d51f5a0547b | 2024-04-14T02:27:34 | 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} = bbda467b-5519-4e57-93db-5d51f5a0547b ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = bbda467b-5519-4e57-93db-5d51f5a0547b 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} = bbda467b-5519-4e57-93db-5d51f5a0547b ${stdout} Logs the given message with the given level. bbda467b-5519-4e57-93db-5d51f5a0547b ${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} = bbda467b-5519-4e57-93db-5d51f5a0547b ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = bbda467b-5519-4e57-93db-5d51f5a0547b 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 bbda467b-5519-4e57-93db-5d51f5a0547b | grep bbda467b-5519-4e57-93db-5d51f5a0547b | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | dae123ce-41c3-4b5f-a9f1-76c867daa154 5bdb1957-c7c3-4f4f-93ff-54e59845d066 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ dae123ce-41c3-4b5f-a9f1-76c867daa154 | 5bdb1957-c7c3-4f4f-93ff-54e59845d066 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List length is 2 and it contains following items: 0: dae123ce-41c3-4b5f-a9f1-76c867daa154 1: 5bdb1957-c7c3-4f4f-93ff-54e59845d066 @{vnf_list} @{vnf_id_list} = [ dae123ce-41c3-4b5f-a9f1-76c867daa154 | 5bdb1957-c7c3-4f4f-93ff-54e59845d066 ] ${vnf_id_list} Logs the given message with the given level. ['dae123ce-41c3-4b5f-a9f1-76c867daa154', '5bdb1957-c7c3-4f4f-93ff-54e59845d066'] ${vnf_id} @{vnf_id_list} dae123ce-41c3-4b5f-a9f1-76c867daa154 ${vnf_id} Logs the given message with the given level. dae123ce-41c3-4b5f-a9f1-76c867daa154 ${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 dae123ce-41c3-4b5f-a9f1-76c867daa154 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 7c9ac4f7-cf5c-41a6-877a-a83dce11e2a6 ${stdout} Logs the given message with the given level. 7c9ac4f7-cf5c-41a6-877a-a83dce11e2a6 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 7c9ac4f7-cf5c-41a6-877a-a83dce11e2a6 @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ 7c9ac4f7-cf5c-41a6-877a-a83dce11e2a6 ] ${VIM_VDUS} @{vdu_ids} Adds ``values`` to the end of ``list``. 5bdb1957-c7c3-4f4f-93ff-54e59845d066 ${vnf_id} Logs the given message with the given level. 5bdb1957-c7c3-4f4f-93ff-54e59845d066 ${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 5bdb1957-c7c3-4f4f-93ff-54e59845d066 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 5845e1ac-4e6b-4810-a4f6-df0bb6208ec1 8b61dad9-0250-434c-bb16-7382c16405a9 ${stdout} Logs the given message with the given level. 5845e1ac-4e6b-4810-a4f6-df0bb6208ec1 8b61dad9-0250-434c-bb16-7382c16405a9 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 5845e1ac-4e6b-4810-a4f6-df0bb6208ec1 8b61dad9-0250-434c-bb16-7382c16405a9 @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ 5845e1ac-4e6b-4810-a4f6-df0bb6208ec1 | 8b61dad9-0250-434c-bb16-7382c16405a9 ] ${VIM_VDUS} @{vdu_ids} Adds ``values`` to the end of ``list``. ${vdu_id} @{VIM_VDUS} 7c9ac4f7-cf5c-41a6-877a-a83dce11e2a6 ${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 7c9ac4f7-cf5c-41a6-877a-a83dce11e2a6 -c volumes_attached -f value 2>&1'. ${rc} = 0 ${stdout} = [{'device': None, 'id': '3e2d8774-7228-4806-9248-8ef055a6f667', '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': '3e2d8774-7228-4806-9248-8ef055a6f667', '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': '3e2d8774-7228-4806-9248-8ef055a6f667', '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} = ['3e2d8774-7228-4806-9248-8ef055a6f667'] ${VIM_VOLUMES} ${match}[0] Adds ``values`` to the end of ``list``. 5845e1ac-4e6b-4810-a4f6-df0bb6208ec1 ${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 5845e1ac-4e6b-4810-a4f6-df0bb6208ec1 -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``. 8b61dad9-0250-434c-bb16-7382c16405a9 ${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 8b61dad9-0250-434c-bb16-7382c16405a9 -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. 7c9ac4f7-cf5c-41a6-877a-a83dce11e2a6 5845e1ac-4e6b-4810-a4f6-df0bb6208ec1 8b61dad9-0250-434c-bb16-7382c16405a9 @{VIM_VOLUMES} Logs the given messages as separate entries using the INFO level. 3e2d8774-7228-4806-9248-8ef055a6f667 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 bbda467b-5519-4e57-93db-5d51f5a0547b | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.141 ${stdout} Logs the given message with the given level. 172.21.249.141 ${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.141 ${ip_addr} Logs the given message with the given level. 172.21.249.141 ${VNF_VOLUMES_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. ${VNF_VOLUMES_IP_ADDR} = 172.21.249.141 ${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 bbda467b-5519-4e57-93db-5d51f5a0547b | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = dae123ce-41c3-4b5f-a9f1-76c867daa154 ${stdout} Logs the given message with the given level. dae123ce-41c3-4b5f-a9f1-76c867daa154 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${vnf_id} = dae123ce-41c3-4b5f-a9f1-76c867daa154 ${VNF_VOLUMES_ID} ${vnf_id} Makes a variable available everywhere within the scope of the current suite. ${VNF_VOLUMES_ID} = dae123ce-41c3-4b5f-a9f1-76c867daa154 ${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 dae123ce-41c3-4b5f-a9f1-76c867daa154 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 7c9ac4f7-cf5c-41a6-877a-a83dce11e2a6 ${stdout} Logs the given message with the given level. 7c9ac4f7-cf5c-41a6-877a-a83dce11e2a6 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 7c9ac4f7-cf5c-41a6-877a-a83dce11e2a6 ${VDU_VOLUMES_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${VDU_VOLUMES_ID} = 7c9ac4f7-cf5c-41a6-877a-a83dce11e2a6 ${VDU_VOLUMES_ID} Logs the given message with the given level. 7c9ac4f7-cf5c-41a6-877a-a83dce11e2a6 @{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 dae123ce-41c3-4b5f-a9f1-76c867daa154 --literal | yq -r '.vdur[].interfaces[]."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.141 ${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.141 ] @{ip} @{VOLUMES_IP_LIST} = [ 172.21.249.141 ] @{VOLUMES_IP_LIST} @{VOLUMES_IP_LIST} Makes a variable available everywhere within the scope of the current suite. @{VOLUMES_IP_LIST} = [ 172.21.249.141 ] @{VOLUMES_IP_LIST} Logs the given message with the given level. 172.21.249.141 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 7c9ac4f7-cf5c-41a6-877a-a83dce11e2a6 -c volumes_attached -f value 2>&1'. ${rc} = 0 ${stdout} = [{'device': None, 'id': '3e2d8774-7228-4806-9248-8ef055a6f667', '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': '3e2d8774-7228-4806-9248-8ef055a6f667', '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': '3e2d8774-7228-4806-9248-8ef055a6f667', '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} = ['3e2d8774-7228-4806-9248-8ef055a6f667'] ${VOLUME_ID} ${match}[0] Makes a variable available everywhere within the scope of the current suite. ${VOLUME_ID} = 3e2d8774-7228-4806-9248-8ef055a6f667 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.249.141: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 14 02:29:28 UTC 2024 System load: 0.64 Processes: 106 Usage of /: 14.0% of 9.52GB Users logged in: 0 Memory usage: 21% IPv4 address for ens3: 172.21.249.141 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 7c9ac4f7-cf5c-41a6-877a-a83dce11e2a6 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 bbda467b-5519-4e57-93db-5d51f5a0547b --vnf dae123ce-41c3-4b5f-a9f1-76c867daa154 --cause "Heal VM of volumes_vnf" --vdu several_volumes-VM 2>&1'. ${rc} = 0 ${stdout} = fc04b620-4fcc-4e73-bb84-6503b32018c5 ${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 fc04b620-4fcc-4e73-bb84-6503b32018c5 --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 fc04b620-4fcc-4e73-bb84-6503b32018c5 ${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 fc04b620-4fcc-4e73-bb84-6503b32018c5 --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 fc04b620-4fcc-4e73-bb84-6503b32018c5 ${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 fc04b620-4fcc-4e73-bb84-6503b32018c5 --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 fc04b620-4fcc-4e73-bb84-6503b32018c5 --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 dae123ce-41c3-4b5f-a9f1-76c867daa154 --literal | yq -r '.vdur[].interfaces[]."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.141 ${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.141 ] @{ip} @{ip_list} = [ 172.21.249.141 ] @{ip_list} Logs the given message with the given level. 172.21.249.141 ${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 dae123ce-41c3-4b5f-a9f1-76c867daa154 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 6126839f-7774-4d65-909f-89a6d59135d9 ${stdout} Logs the given message with the given level. 6126839f-7774-4d65-909f-89a6d59135d9 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 6126839f-7774-4d65-909f-89a6d59135d9 ${id} Logs the given message with the given level. 6126839f-7774-4d65-909f-89a6d59135d9 ${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 6126839f-7774-4d65-909f-89a6d59135d9 -c volumes_attached -f value 2>&1'. ${rc} = 0 ${stdout} = [{'device': None, 'id': '3e2d8774-7228-4806-9248-8ef055a6f667', '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': '3e2d8774-7228-4806-9248-8ef055a6f667', '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': '3e2d8774-7228-4806-9248-8ef055a6f667', '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} = ['3e2d8774-7228-4806-9248-8ef055a6f667'] ${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.249.141: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 14 02:31:03 UTC 2024 System load: 0.35 Processes: 106 Usage of /: 14.0% of 9.52GB Users logged in: 0 Memory usage: 21% IPv4 address for ens3: 172.21.249.141 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 bbda467b-5519-4e57-93db-5d51f5a0547b | grep bbda467b-5519-4e57-93db-5d51f5a0547b | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | dae123ce-41c3-4b5f-a9f1-76c867daa154 5bdb1957-c7c3-4f4f-93ff-54e59845d066 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ dae123ce-41c3-4b5f-a9f1-76c867daa154 | 5bdb1957-c7c3-4f4f-93ff-54e59845d066 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List length is 2 and it contains following items: 0: dae123ce-41c3-4b5f-a9f1-76c867daa154 1: 5bdb1957-c7c3-4f4f-93ff-54e59845d066 @{vnf_list} @{vnf_id_list} = [ dae123ce-41c3-4b5f-a9f1-76c867daa154 | 5bdb1957-c7c3-4f4f-93ff-54e59845d066 ] ${vnf_id} @{vnf_id_list} dae123ce-41c3-4b5f-a9f1-76c867daa154 ${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 dae123ce-41c3-4b5f-a9f1-76c867daa154 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 6126839f-7774-4d65-909f-89a6d59135d9 ${stdout} Logs the given message with the given level. 6126839f-7774-4d65-909f-89a6d59135d9 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 6126839f-7774-4d65-909f-89a6d59135d9 @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ 6126839f-7774-4d65-909f-89a6d59135d9 ] ${vdu_updated} @{vdu_ids} Adds ``values`` to the end of ``list``. ${id} @{vdu_ids} 6126839f-7774-4d65-909f-89a6d59135d9 ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. 5bdb1957-c7c3-4f4f-93ff-54e59845d066 ${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 5bdb1957-c7c3-4f4f-93ff-54e59845d066 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 5845e1ac-4e6b-4810-a4f6-df0bb6208ec1 8b61dad9-0250-434c-bb16-7382c16405a9 ${stdout} Logs the given message with the given level. 5845e1ac-4e6b-4810-a4f6-df0bb6208ec1 8b61dad9-0250-434c-bb16-7382c16405a9 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 5845e1ac-4e6b-4810-a4f6-df0bb6208ec1 8b61dad9-0250-434c-bb16-7382c16405a9 @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ 5845e1ac-4e6b-4810-a4f6-df0bb6208ec1 | 8b61dad9-0250-434c-bb16-7382c16405a9 ] ${vdu_updated} @{vdu_ids} Adds ``values`` to the end of ``list``. ${id} @{vdu_ids} 5845e1ac-4e6b-4810-a4f6-df0bb6208ec1 ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. 8b61dad9-0250-434c-bb16-7382c16405a9 ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. ${vdu_id} @{vdu_updated} 6126839f-7774-4d65-909f-89a6d59135d9 ${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 6126839f-7774-4d65-909f-89a6d59135d9 -c volumes_attached -f value 2>&1'. ${rc} = 0 ${stdout} = [{'device': None, 'id': '3e2d8774-7228-4806-9248-8ef055a6f667', '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': '3e2d8774-7228-4806-9248-8ef055a6f667', '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': '3e2d8774-7228-4806-9248-8ef055a6f667', '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} = ['3e2d8774-7228-4806-9248-8ef055a6f667'] ${VIM_VOLUMES} ${match}[0] Adds ``values`` to the end of ``list``. 5845e1ac-4e6b-4810-a4f6-df0bb6208ec1 ${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 5845e1ac-4e6b-4810-a4f6-df0bb6208ec1 -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``. 8b61dad9-0250-434c-bb16-7382c16405a9 ${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 8b61dad9-0250-434c-bb16-7382c16405a9 -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. 7c9ac4f7-cf5c-41a6-877a-a83dce11e2a6 5845e1ac-4e6b-4810-a4f6-df0bb6208ec1 8b61dad9-0250-434c-bb16-7382c16405a9 6126839f-7774-4d65-909f-89a6d59135d9 @{VIM_VOLUMES} Logs the given messages as separate entries using the INFO level. 3e2d8774-7228-4806-9248-8ef055a6f667 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 | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------------------------------+-------------+-------------------------+ | 99d13e4d-7377-4b93-b790-18dddd6659e9 | slicebasic.slice-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 32fa07b5-be44-4e7b-9a58-c340199dde37 | slicebasic.slice-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 8b4addbf-eec3-42ce-9eb5-3ffbdc70fd43 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.39; slicebasic.slice-nsd_vnfd_vld_dat=192.168.106.251, 192.168.191.227 | ubuntu18.04 | simple_requires-1-1-flv | | 6126839f-7774-4d65-909f-89a6d59135d9 | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.141 | ubuntu20.04 | several_volumes-VM-flv | | 282c9771-a96f-4d04-9bdd-16a0dc2d07c0 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.164.216; osm-ext=172.21.248.8 | ubuntu18.04 | simple_requires-1-1-flv | | 8b61dad9-0250-434c-bb16-7382c16405a9 | heal_01-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.149.113; osm-ext=172.21.249.91 | ubuntu18.04 | simple_requires-1-1-flv | | 12ee8fd2-ce74-468e-9bcc-1cdd9d929809 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.164.118; osm-ext=172.21.248.111 | ubuntu18.04 | simple_requires-1-1-flv | | 5845e1ac-4e6b-4810-a4f6-df0bb6208ec1 | heal_01-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.149.135; osm-ext=172.21.248.78 | ubuntu18.04 | simple_requires-1-1-flv | | 282695c5-6d8e-4e46-ab7c-eed27f4cf963 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.201 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------------------------------+-------------+-------------------------+ | 99d13e4d-7377-4b93-b790-18dddd6659e9 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.30; slicebasic.slice-nsd_vnfd_vld_dat=192.168.106.34 | ubuntu18.04 | simple_requires-1-1-flv | | 32fa07b5-be44-4e7b-9a58-c340199dde37 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.206; slicebasic.slice-nsd_vnfd_vld_dat=192.168.191.178 | ubuntu18.04 | simple_requires-1-1-flv | | 8b4addbf-eec3-42ce-9eb5-3ffbdc70fd43 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.39; slicebasic.slice-nsd_vnfd_vld_dat=192.168.106.251, 192.168.191.227 | ubuntu18.04 | simple_requires-1-1-flv | | 6126839f-7774-4d65-909f-89a6d59135d9 | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.141 | ubuntu20.04 | several_volumes-VM-flv | | 282c9771-a96f-4d04-9bdd-16a0dc2d07c0 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.164.216; osm-ext=172.21.248.8 | ubuntu18.04 | simple_requires-1-1-flv | | 12ee8fd2-ce74-468e-9bcc-1cdd9d929809 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.164.118; osm-ext=172.21.248.111 | ubuntu18.04 | simple_requires-1-1-flv | | 282695c5-6d8e-4e46-ab7c-eed27f4cf963 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.201 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------------------------------+-------------+-------------------------+ | 99d13e4d-7377-4b93-b790-18dddd6659e9 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.30; slicebasic.slice-nsd_vnfd_vld_dat=192.168.106.34 | ubuntu18.04 | simple_requires-1-1-flv | | 32fa07b5-be44-4e7b-9a58-c340199dde37 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.206; slicebasic.slice-nsd_vnfd_vld_dat=192.168.191.178 | ubuntu18.04 | simple_requires-1-1-flv | | 8b4addbf-eec3-42ce-9eb5-3ffbdc70fd43 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.39; slicebasic.slice-nsd_vnfd_vld_dat=192.168.106.251, 192.168.191.227 | ubuntu18.04 | simple_requires-1-1-flv | | 282c9771-a96f-4d04-9bdd-16a0dc2d07c0 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.164.216; osm-ext=172.21.248.8 | ubuntu18.04 | simple_requires-1-1-flv | | 12ee8fd2-ce74-468e-9bcc-1cdd9d929809 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.164.118; osm-ext=172.21.248.111 | ubuntu18.04 | simple_requires-1-1-flv | | 282695c5-6d8e-4e46-ab7c-eed27f4cf963 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.201 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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} 3e2d8774-7228-4806-9248-8ef055a6f667 Checking if volume ${vol_id} is still in VIM Logs the given message with the given level. Checking if volume 3e2d8774-7228-4806-9248-8ef055a6f667 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 3e2d8774-7228-4806-9248-8ef055a6f667 | 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} 7c9ac4f7-cf5c-41a6-877a-a83dce11e2a6 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 7c9ac4f7-cf5c-41a6-877a-a83dce11e2a6 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 7c9ac4f7-cf5c-41a6-877a-a83dce11e2a6 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 7c9ac4f7-cf5c-41a6-877a-a83dce11e2a6 ${stdout} Logs the given message with the given level. No Server found for 7c9ac4f7-cf5c-41a6-877a-a83dce11e2a6 ${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. 5845e1ac-4e6b-4810-a4f6-df0bb6208ec1 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 5845e1ac-4e6b-4810-a4f6-df0bb6208ec1 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 5845e1ac-4e6b-4810-a4f6-df0bb6208ec1 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 5845e1ac-4e6b-4810-a4f6-df0bb6208ec1 ${stdout} Logs the given message with the given level. No Server found for 5845e1ac-4e6b-4810-a4f6-df0bb6208ec1 ${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. 8b61dad9-0250-434c-bb16-7382c16405a9 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 8b61dad9-0250-434c-bb16-7382c16405a9 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 8b61dad9-0250-434c-bb16-7382c16405a9 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 8b61dad9-0250-434c-bb16-7382c16405a9 ${stdout} Logs the given message with the given level. No Server found for 8b61dad9-0250-434c-bb16-7382c16405a9 ${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. 6126839f-7774-4d65-909f-89a6d59135d9 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 6126839f-7774-4d65-909f-89a6d59135d9 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 6126839f-7774-4d65-909f-89a6d59135d9 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 6126839f-7774-4d65-909f-89a6d59135d9 ${stdout} Logs the given message with the given level. No Server found for 6126839f-7774-4d65-909f-89a6d59135d9 ${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 0a9ebfdb-0b42-408b-ab98-3daca5ab1079 ${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} = 0a9ebfdb-0b42-408b-ab98-3daca5ab1079 ${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 a6ef4565-ab4e-499f-87a7-c12954705b7e ${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} = a6ef4565-ab4e-499f-87a7-c12954705b7e ${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 c5b7117f-d44d-4876-b601-1728b717d8b9 ${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} = c5b7117f-d44d-4876-b601-1728b717d8b9 ${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} = 835359 ${flavor_name} SEPARATOR=_ ${FLAVOR_NAME_PREFIX} ${rand} Catenates the given items together and returns the resulted string. ${flavor_name} = osm.heal02_835359 ${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_835359 --ram 1024 --disk 10 --vcpus 1 -c id -f value 2>&1'. ${rc} = 0 ${flavor_id} = 5d2ced93-cd05-4d8f-be7a-8d81cc41a2cf ${flavor_id} Logs the given message with the given level. 5d2ced93-cd05-4d8f-be7a-8d81cc41a2cf ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${flavor_id} ${id} = 5d2ced93-cd05-4d8f-be7a-8d81cc41a2cf ${FLAVOR_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${FLAVOR_ID} = 5d2ced93-cd05-4d8f-be7a-8d81cc41a2cf 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: 5d2ced93-cd05-4d8f-be7a-8d81cc41a2cf}]}] } ${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: 5d2ced93-cd05-4d8f-be7a-8d81cc41a2cf}]}] }' ${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: 5d2ced93-cd05-4d8f-be7a-8d81cc41a2cf}]}] }' --ssh_keys /root/.ssh/id_rsa.pub 2>&1'. ${rc} = 0 ${stdout} = 47ae8a5c-be26-4547-91b7-d525d599e636 ${stdout} Logs the given message with the given level. 47ae8a5c-be26-4547-91b7-d525d599e636 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 47ae8a5c-be26-4547-91b7-d525d599e636 ${ns_id} Logs the given message with the given level. 47ae8a5c-be26-4547-91b7-d525d599e636 ${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 | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------------------------------+-------------+-------------------------+ | 99d13e4d-7377-4b93-b790-18dddd6659e9 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.30; slicebasic.slice-nsd_vnfd_vld_dat=192.168.106.34 | ubuntu18.04 | simple_requires-1-1-flv | | 32fa07b5-be44-4e7b-9a58-c340199dde37 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.206; slicebasic.slice-nsd_vnfd_vld_dat=192.168.191.178 | ubuntu18.04 | simple_requires-1-1-flv | | 8b4addbf-eec3-42ce-9eb5-3ffbdc70fd43 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.39; slicebasic.slice-nsd_vnfd_vld_dat=192.168.106.251, 192.168.191.227 | ubuntu18.04 | simple_requires-1-1-flv | | 282c9771-a96f-4d04-9bdd-16a0dc2d07c0 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.164.216; osm-ext=172.21.248.8 | ubuntu18.04 | simple_requires-1-1-flv | | 12ee8fd2-ce74-468e-9bcc-1cdd9d929809 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.164.118; osm-ext=172.21.248.111 | ubuntu18.04 | simple_requires-1-1-flv | | 282695c5-6d8e-4e46-ab7c-eed27f4cf963 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.201 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | 47ae8a5c-be26-4547-91b7-d525d599e636 | 2024-04-14T02:32:20 | BUILDING | INSTANTIATING (1d8991f6-c6c8-4b8b-8980-1a796d426516) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 47ae8a5c-be26-4547-91b7-d525d599e636 | 2024-04-14T02:32:20 | BUILDING | INSTANTIATING (1d8991f6-c6c8-4b8b-8980-1a796d426516) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------------------------------+-------------+-------------------------+ | ce4476f9-6241-4049-ab10-cd98b583eb96 | heal_03-charm_vnf-mgmtVM-2 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | f8876aac-5e26-4e1b-8d9c-64fbc502de63 | heal_02-manual_scale_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | osm.heal02_835359 | | 7cbac62f-7fc2-4bc6-a34c-b0d4e196db43 | heal_02-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.151.175; osm-ext=172.21.248.181 | ubuntu18.04 | osm.heal02_835359 | | 766c3217-65b5-4b2c-ab80-e5ad30ae1de4 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.159 | ubuntu20.04 | several_volumes-VM-flv | | 99d13e4d-7377-4b93-b790-18dddd6659e9 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.30; slicebasic.slice-nsd_vnfd_vld_dat=192.168.106.34 | ubuntu18.04 | simple_requires-1-1-flv | | 32fa07b5-be44-4e7b-9a58-c340199dde37 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.206; slicebasic.slice-nsd_vnfd_vld_dat=192.168.191.178 | ubuntu18.04 | simple_requires-1-1-flv | | 8b4addbf-eec3-42ce-9eb5-3ffbdc70fd43 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.39; slicebasic.slice-nsd_vnfd_vld_dat=192.168.106.251, 192.168.191.227 | ubuntu18.04 | simple_requires-1-1-flv | | 282c9771-a96f-4d04-9bdd-16a0dc2d07c0 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.164.216; osm-ext=172.21.248.8 | ubuntu18.04 | simple_requires-1-1-flv | | 12ee8fd2-ce74-468e-9bcc-1cdd9d929809 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.164.118; osm-ext=172.21.248.111 | ubuntu18.04 | simple_requires-1-1-flv | | 282695c5-6d8e-4e46-ab7c-eed27f4cf963 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.201 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | 47ae8a5c-be26-4547-91b7-d525d599e636 | 2024-04-14T02:32:20 | BUILDING | INSTANTIATING (1d8991f6-c6c8-4b8b-8980-1a796d426516) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 47ae8a5c-be26-4547-91b7-d525d599e636 | 2024-04-14T02:32:20 | BUILDING | INSTANTIATING (1d8991f6-c6c8-4b8b-8980-1a796d426516) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------------------------------+-------------+-------------------------+ | ce4476f9-6241-4049-ab10-cd98b583eb96 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.164.62; osm-ext=172.21.249.136 | ubuntu18.04 | simple_requires-1-1-flv | | f8876aac-5e26-4e1b-8d9c-64fbc502de63 | heal_02-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.151.176; osm-ext=172.21.248.142 | ubuntu18.04 | osm.heal02_835359 | | 7cbac62f-7fc2-4bc6-a34c-b0d4e196db43 | heal_02-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.151.175; osm-ext=172.21.248.181 | ubuntu18.04 | osm.heal02_835359 | | 766c3217-65b5-4b2c-ab80-e5ad30ae1de4 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.159 | ubuntu20.04 | several_volumes-VM-flv | | 99d13e4d-7377-4b93-b790-18dddd6659e9 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.30; slicebasic.slice-nsd_vnfd_vld_dat=192.168.106.34 | ubuntu18.04 | simple_requires-1-1-flv | | 32fa07b5-be44-4e7b-9a58-c340199dde37 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.206; slicebasic.slice-nsd_vnfd_vld_dat=192.168.191.178 | ubuntu18.04 | simple_requires-1-1-flv | | 8b4addbf-eec3-42ce-9eb5-3ffbdc70fd43 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.39; slicebasic.slice-nsd_vnfd_vld_dat=192.168.106.251, 192.168.191.227 | ubuntu18.04 | simple_requires-1-1-flv | | 282c9771-a96f-4d04-9bdd-16a0dc2d07c0 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.164.216; osm-ext=172.21.248.8 | ubuntu18.04 | simple_requires-1-1-flv | | 12ee8fd2-ce74-468e-9bcc-1cdd9d929809 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.164.118; osm-ext=172.21.248.111 | ubuntu18.04 | simple_requires-1-1-flv | | 282695c5-6d8e-4e46-ab7c-eed27f4cf963 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.201 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | 47ae8a5c-be26-4547-91b7-d525d599e636 | 2024-04-14T02:32: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 | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------------------------------+-------------+-------------------------+ | ce4476f9-6241-4049-ab10-cd98b583eb96 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.164.62; osm-ext=172.21.249.136 | ubuntu18.04 | simple_requires-1-1-flv | | f8876aac-5e26-4e1b-8d9c-64fbc502de63 | heal_02-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.151.176; osm-ext=172.21.248.142 | ubuntu18.04 | osm.heal02_835359 | | 7cbac62f-7fc2-4bc6-a34c-b0d4e196db43 | heal_02-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.151.175; osm-ext=172.21.248.181 | ubuntu18.04 | osm.heal02_835359 | | 766c3217-65b5-4b2c-ab80-e5ad30ae1de4 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.159 | ubuntu20.04 | several_volumes-VM-flv | | 99d13e4d-7377-4b93-b790-18dddd6659e9 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.30; slicebasic.slice-nsd_vnfd_vld_dat=192.168.106.34 | ubuntu18.04 | simple_requires-1-1-flv | | 32fa07b5-be44-4e7b-9a58-c340199dde37 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.206; slicebasic.slice-nsd_vnfd_vld_dat=192.168.191.178 | ubuntu18.04 | simple_requires-1-1-flv | | 8b4addbf-eec3-42ce-9eb5-3ffbdc70fd43 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.39; slicebasic.slice-nsd_vnfd_vld_dat=192.168.106.251, 192.168.191.227 | ubuntu18.04 | simple_requires-1-1-flv | | 282c9771-a96f-4d04-9bdd-16a0dc2d07c0 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.164.216; osm-ext=172.21.248.8 | ubuntu18.04 | simple_requires-1-1-flv | | 12ee8fd2-ce74-468e-9bcc-1cdd9d929809 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.164.118; osm-ext=172.21.248.111 | ubuntu18.04 | simple_requires-1-1-flv | | 282695c5-6d8e-4e46-ab7c-eed27f4cf963 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.201 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | 47ae8a5c-be26-4547-91b7-d525d599e636 | 2024-04-14T02:32: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} = 47ae8a5c-be26-4547-91b7-d525d599e636 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 47ae8a5c-be26-4547-91b7-d525d599e636 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}': '5d2ced93-cd05-4d8f-be7a-8d81cc41a... ${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} = 47ae8a5c-be26-4547-91b7-d525d599e636 ${stdout} Logs the given message with the given level. 47ae8a5c-be26-4547-91b7-d525d599e636 ${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} = 47ae8a5c-be26-4547-91b7-d525d599e636 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 47ae8a5c-be26-4547-91b7-d525d599e636 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 47ae8a5c-be26-4547-91b7-d525d599e636 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = 2092ef9d-8a88-4b37-893f-ee23874a4cf9 ${stdout} Logs the given message with the given level. 2092ef9d-8a88-4b37-893f-ee23874a4cf9 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${vnf_id} = 2092ef9d-8a88-4b37-893f-ee23874a4cf9 ${VNF_MANUALSCALE_ID} ${vnf_id} Makes a variable available everywhere within the scope of the current suite. ${VNF_MANUALSCALE_ID} = 2092ef9d-8a88-4b37-893f-ee23874a4cf9 @{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 2092ef9d-8a88-4b37-893f-ee23874a4cf9 --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} = e845cf28-fefe-447a-ac37-6cfc5cb6dddc ${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 e845cf28-fefe-447a-ac37-6cfc5cb6dddc --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 e845cf28-fefe-447a-ac37-6cfc5cb6dddc ${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 e845cf28-fefe-447a-ac37-6cfc5cb6dddc --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 e845cf28-fefe-447a-ac37-6cfc5cb6dddc ${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 e845cf28-fefe-447a-ac37-6cfc5cb6dddc --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 e845cf28-fefe-447a-ac37-6cfc5cb6dddc --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 2092ef9d-8a88-4b37-893f-ee23874a4cf9 --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 47ae8a5c-be26-4547-91b7-d525d599e636 | grep 47ae8a5c-be26-4547-91b7-d525d599e636 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 342a3c56-7529-4883-a87b-94f92def4266 2092ef9d-8a88-4b37-893f-ee23874a4cf9 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 342a3c56-7529-4883-a87b-94f92def4266 | 2092ef9d-8a88-4b37-893f-ee23874a4cf9 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List length is 2 and it contains following items: 0: 342a3c56-7529-4883-a87b-94f92def4266 1: 2092ef9d-8a88-4b37-893f-ee23874a4cf9 @{vnf_list} @{vnf_id_list} = [ 342a3c56-7529-4883-a87b-94f92def4266 | 2092ef9d-8a88-4b37-893f-ee23874a4cf9 ] ${vnf_id_list} Logs the given message with the given level. ['342a3c56-7529-4883-a87b-94f92def4266', '2092ef9d-8a88-4b37-893f-ee23874a4cf9'] ${vnf_id} @{vnf_id_list} 342a3c56-7529-4883-a87b-94f92def4266 ${vnf_id} Logs the given message with the given level. 342a3c56-7529-4883-a87b-94f92def4266 ${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 342a3c56-7529-4883-a87b-94f92def4266 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 766c3217-65b5-4b2c-ab80-e5ad30ae1de4 ${stdout} Logs the given message with the given level. 766c3217-65b5-4b2c-ab80-e5ad30ae1de4 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 766c3217-65b5-4b2c-ab80-e5ad30ae1de4 @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ 766c3217-65b5-4b2c-ab80-e5ad30ae1de4 ] ${VIM_VDUS} @{vdu_ids} Adds ``values`` to the end of ``list``. 2092ef9d-8a88-4b37-893f-ee23874a4cf9 ${vnf_id} Logs the given message with the given level. 2092ef9d-8a88-4b37-893f-ee23874a4cf9 ${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 2092ef9d-8a88-4b37-893f-ee23874a4cf9 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 7cbac62f-7fc2-4bc6-a34c-b0d4e196db43 f8876aac-5e26-4e1b-8d9c-64fbc502de63 55765cee-34d6-45fb-a100-66d4710c237e ${stdout} Logs the given message with the given level. 7cbac62f-7fc2-4bc6-a34c-b0d4e196db43 f8876aac-5e26-4e1b-8d9c-64fbc502de63 55765cee-34d6-45fb-a100-66d4710c237e ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 7cbac62f-7fc2-4bc6-a34c-b0d4e196db43 f8876aac-5e26-4e1b-8d9c-64fbc502de63 55765cee-34d6-45fb-a100-66d4710c237e @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ 7cbac62f-7fc2-4bc6-a34c-b0d4e196db43 | f8876aac-5e26-4e1b-8d9c-64fbc502de63 | 55765cee-34d6-45fb-a100-66d4710c237e ] ${VIM_VDUS} @{vdu_ids} Adds ``values`` to the end of ``list``. ${vdu_id} @{VIM_VDUS} 766c3217-65b5-4b2c-ab80-e5ad30ae1de4 ${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 766c3217-65b5-4b2c-ab80-e5ad30ae1de4 -c volumes_attached -f value 2>&1'. ${rc} = 0 ${stdout} = [{'device': None, 'id': 'f7bc8db2-b670-4fff-8182-2ab2f3f623aa', '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': 'f7bc8db2-b670-4fff-8182-2ab2f3f623aa', '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': 'f7bc8db2-b670-4fff-8182-2ab2f3f623aa', '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} = ['f7bc8db2-b670-4fff-8182-2ab2f3f623aa'] ${VIM_VOLUMES} ${match}[0] Adds ``values`` to the end of ``list``. 7cbac62f-7fc2-4bc6-a34c-b0d4e196db43 ${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 7cbac62f-7fc2-4bc6-a34c-b0d4e196db43 -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``. f8876aac-5e26-4e1b-8d9c-64fbc502de63 ${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 f8876aac-5e26-4e1b-8d9c-64fbc502de63 -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``. 55765cee-34d6-45fb-a100-66d4710c237e ${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 55765cee-34d6-45fb-a100-66d4710c237e -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. 766c3217-65b5-4b2c-ab80-e5ad30ae1de4 7cbac62f-7fc2-4bc6-a34c-b0d4e196db43 f8876aac-5e26-4e1b-8d9c-64fbc502de63 55765cee-34d6-45fb-a100-66d4710c237e @{VIM_VOLUMES} Logs the given messages as separate entries using the INFO level. f7bc8db2-b670-4fff-8182-2ab2f3f623aa 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}': '5d2ced93-cd05-4d8f-be7a-8d81cc41a... ${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 2092ef9d-8a88-4b37-893f-ee23874a4cf9 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 7cbac62f-7fc2-4bc6-a34c-b0d4e196db43 f8876aac-5e26-4e1b-8d9c-64fbc502de63 55765cee-34d6-45fb-a100-66d4710c237e ${stdout} Logs the given message with the given level. 7cbac62f-7fc2-4bc6-a34c-b0d4e196db43 f8876aac-5e26-4e1b-8d9c-64fbc502de63 55765cee-34d6-45fb-a100-66d4710c237e ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 7cbac62f-7fc2-4bc6-a34c-b0d4e196db43 f8876aac-5e26-4e1b-8d9c-64fbc502de63 55765cee-34d6-45fb-a100-66d4710c237e @{vdu_manualscale_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_manualscale_ids} = [ 7cbac62f-7fc2-4bc6-a34c-b0d4e196db43 | f8876aac-5e26-4e1b-8d9c-64fbc502de63 | 55765cee-34d6-45fb-a100-66d4710c237e ] @{VDU_MANUALSCALE_IDS} @{vdu_manualscale_ids} Makes a variable available everywhere within the scope of the current suite. @{VDU_MANUALSCALE_IDS} = [ 7cbac62f-7fc2-4bc6-a34c-b0d4e196db43 | f8876aac-5e26-4e1b-8d9c-64fbc502de63 | 55765cee-34d6-45fb-a100-66d4710c237e ] ${VDU_MANUALSCALE_IDS}[1] Logs the given message with the given level. f8876aac-5e26-4e1b-8d9c-64fbc502de63 @{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 2092ef9d-8a88-4b37-893f-ee23874a4cf9 --literal | yq -r '.vdur[].interfaces[]."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.181 192.168.151.175 172.21.248.142 192.168.151.176 172.21.249.157 192.168.151.28 ${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.181 | 192.168.151.175 | 172.21.248.142 | 192.168.151.176 | 172.21.249.157 | 192.168.151.28 ] @{ip} @{manualscale_ip_list} = [ 172.21.248.181 | 192.168.151.175 | 172.21.248.142 | 192.168.151.176 | 172.21.249.157 | 192.168.151.28 ] @{MANUALSCALE_IP_LIST} @{manualscale_ip_list} Makes a variable available everywhere within the scope of the current suite. @{MANUALSCALE_IP_LIST} = [ 172.21.248.181 | 192.168.151.175 | 172.21.248.142 | 192.168.151.176 | 172.21.249.157 | 192.168.151.28 ] 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 f8876aac-5e26-4e1b-8d9c-64fbc502de63 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 47ae8a5c-be26-4547-91b7-d525d599e636 --vnf 2092ef9d-8a88-4b37-893f-ee23874a4cf9 --cause "Heal VM of manual_scale_vnf" --vdu mgmtVM --count-index 1 --run-day1 2>&1'. ${rc} = 0 ${stdout} = 1f2ebb12-2959-47d8-b77a-3e3289f9d310 ${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 1f2ebb12-2959-47d8-b77a-3e3289f9d310 --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 1f2ebb12-2959-47d8-b77a-3e3289f9d310 ${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 1f2ebb12-2959-47d8-b77a-3e3289f9d310 --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 1f2ebb12-2959-47d8-b77a-3e3289f9d310 ${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 1f2ebb12-2959-47d8-b77a-3e3289f9d310 --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 1f2ebb12-2959-47d8-b77a-3e3289f9d310 --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 2092ef9d-8a88-4b37-893f-ee23874a4cf9 --literal | yq -r '.vdur[].interfaces[]."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.181 192.168.151.175 172.21.248.142 192.168.151.176 172.21.249.157 192.168.151.28 ${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.181 | 192.168.151.175 | 172.21.248.142 | 192.168.151.176 | 172.21.249.157 | 192.168.151.28 ] @{ip} @{ip_list} = [ 172.21.248.181 | 192.168.151.175 | 172.21.248.142 | 192.168.151.176 | 172.21.249.157 | 192.168.151.28 ] ${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 2092ef9d-8a88-4b37-893f-ee23874a4cf9 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 7cbac62f-7fc2-4bc6-a34c-b0d4e196db43 c7484e98-7956-42b4-8c6b-28aec0b6e4c8 55765cee-34d6-45fb-a100-66d4710c237e ${stdout} Logs the given message with the given level. 7cbac62f-7fc2-4bc6-a34c-b0d4e196db43 c7484e98-7956-42b4-8c6b-28aec0b6e4c8 55765cee-34d6-45fb-a100-66d4710c237e ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 7cbac62f-7fc2-4bc6-a34c-b0d4e196db43 c7484e98-7956-42b4-8c6b-28aec0b6e4c8 55765cee-34d6-45fb-a100-66d4710c237e @{ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{ids} = [ 7cbac62f-7fc2-4bc6-a34c-b0d4e196db43 | c7484e98-7956-42b4-8c6b-28aec0b6e4c8 | 55765cee-34d6-45fb-a100-66d4710c237e ] ${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 2092ef9d-8a88-4b37-893f-ee23874a4cf9 --literal | yq '.vdur[] | select(."count-index" == 1)' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.142 ${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.142 ${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.142:22' as 'ubuntu'. NoValidConnectionsError: [Errno None] Unable to connect to port 22 on 172.21.248.142 ${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.142 ${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 47ae8a5c-be26-4547-91b7-d525d599e636 | grep 47ae8a5c-be26-4547-91b7-d525d599e636 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 342a3c56-7529-4883-a87b-94f92def4266 2092ef9d-8a88-4b37-893f-ee23874a4cf9 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 342a3c56-7529-4883-a87b-94f92def4266 | 2092ef9d-8a88-4b37-893f-ee23874a4cf9 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List length is 2 and it contains following items: 0: 342a3c56-7529-4883-a87b-94f92def4266 1: 2092ef9d-8a88-4b37-893f-ee23874a4cf9 @{vnf_list} @{vnf_id_list} = [ 342a3c56-7529-4883-a87b-94f92def4266 | 2092ef9d-8a88-4b37-893f-ee23874a4cf9 ] ${vnf_id} @{vnf_id_list} 342a3c56-7529-4883-a87b-94f92def4266 ${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 342a3c56-7529-4883-a87b-94f92def4266 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 766c3217-65b5-4b2c-ab80-e5ad30ae1de4 ${stdout} Logs the given message with the given level. 766c3217-65b5-4b2c-ab80-e5ad30ae1de4 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 766c3217-65b5-4b2c-ab80-e5ad30ae1de4 @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ 766c3217-65b5-4b2c-ab80-e5ad30ae1de4 ] ${vdu_updated} @{vdu_ids} Adds ``values`` to the end of ``list``. ${id} @{vdu_ids} 766c3217-65b5-4b2c-ab80-e5ad30ae1de4 ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. 2092ef9d-8a88-4b37-893f-ee23874a4cf9 ${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 2092ef9d-8a88-4b37-893f-ee23874a4cf9 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 7cbac62f-7fc2-4bc6-a34c-b0d4e196db43 c7484e98-7956-42b4-8c6b-28aec0b6e4c8 55765cee-34d6-45fb-a100-66d4710c237e ${stdout} Logs the given message with the given level. 7cbac62f-7fc2-4bc6-a34c-b0d4e196db43 c7484e98-7956-42b4-8c6b-28aec0b6e4c8 55765cee-34d6-45fb-a100-66d4710c237e ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 7cbac62f-7fc2-4bc6-a34c-b0d4e196db43 c7484e98-7956-42b4-8c6b-28aec0b6e4c8 55765cee-34d6-45fb-a100-66d4710c237e @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ 7cbac62f-7fc2-4bc6-a34c-b0d4e196db43 | c7484e98-7956-42b4-8c6b-28aec0b6e4c8 | 55765cee-34d6-45fb-a100-66d4710c237e ] ${vdu_updated} @{vdu_ids} Adds ``values`` to the end of ``list``. ${id} @{vdu_ids} 7cbac62f-7fc2-4bc6-a34c-b0d4e196db43 ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. c7484e98-7956-42b4-8c6b-28aec0b6e4c8 ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. 55765cee-34d6-45fb-a100-66d4710c237e ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. ${vdu_id} @{vdu_updated} 766c3217-65b5-4b2c-ab80-e5ad30ae1de4 ${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 766c3217-65b5-4b2c-ab80-e5ad30ae1de4 -c volumes_attached -f value 2>&1'. ${rc} = 0 ${stdout} = [{'device': None, 'id': 'f7bc8db2-b670-4fff-8182-2ab2f3f623aa', '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': 'f7bc8db2-b670-4fff-8182-2ab2f3f623aa', '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': 'f7bc8db2-b670-4fff-8182-2ab2f3f623aa', '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} = ['f7bc8db2-b670-4fff-8182-2ab2f3f623aa'] ${VIM_VOLUMES} ${match}[0] Adds ``values`` to the end of ``list``. 7cbac62f-7fc2-4bc6-a34c-b0d4e196db43 ${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 7cbac62f-7fc2-4bc6-a34c-b0d4e196db43 -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``. c7484e98-7956-42b4-8c6b-28aec0b6e4c8 ${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 c7484e98-7956-42b4-8c6b-28aec0b6e4c8 -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``. 55765cee-34d6-45fb-a100-66d4710c237e ${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 55765cee-34d6-45fb-a100-66d4710c237e -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. 766c3217-65b5-4b2c-ab80-e5ad30ae1de4 7cbac62f-7fc2-4bc6-a34c-b0d4e196db43 f8876aac-5e26-4e1b-8d9c-64fbc502de63 55765cee-34d6-45fb-a100-66d4710c237e c7484e98-7956-42b4-8c6b-28aec0b6e4c8 @{VIM_VOLUMES} Logs the given messages as separate entries using the INFO level. f7bc8db2-b670-4fff-8182-2ab2f3f623aa 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} = +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | ID... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | c7484e98-7956-42b4-8c6b-28aec0b6e4c8 | heal_02-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.151.176; osm-ext=172.21.248.142 | ubuntu18.04 | osm.heal02_835359 | | 55765cee-34d6-45fb-a100-66d4710c237e | heal_02-manual_scale_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.151.28; osm-ext=172.21.249.157 | ubuntu18.04 | osm.heal02_835359 | | ce4476f9-6241-4049-ab10-cd98b583eb96 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.164.62; osm-ext=172.21.249.136 | ubuntu18.04 | simple_requires-1-1-flv | | 7cbac62f-7fc2-4bc6-a34c-b0d4e196db43 | heal_02-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.151.175; osm-ext=172.21.248.181 | ubuntu18.04 | osm.heal02_835359 | | 766c3217-65b5-4b2c-ab80-e5ad30ae1de4 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.159 | ubuntu20.04 | several_volumes-VM-flv | | 282c9771-a96f-4d04-9bdd-16a0dc2d07c0 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.164.216; osm-ext=172.21.248.8 | ubuntu18.04 | simple_requires-1-1-flv | | 12ee8fd2-ce74-468e-9bcc-1cdd9d929809 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.164.118; osm-ext=172.21.248.111 | ubuntu18.04 | simple_requires-1-1-flv | | 282695c5-6d8e-4e46-ab7c-eed27f4cf963 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.201 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------------------------+-------------+-------------------------+ | 12ba4a8a-9aa9-4054-8e9a-d85ccaec71e1 | slicebasic.slice-middle-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 51b7fee4-c977-4212-9785-214565b8c786 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.27; slicebasic.slice-nsd_vnfd_vld_dat=192.168.189.199 | ubuntu18.04 | simple_requires-1-1-flv | | c7484e98-7956-42b4-8c6b-28aec0b6e4c8 | heal_02-manual_scale_vnf-mgmtVM-1 | ACTIVE | osm-ext=172.21.248.142 | ubuntu18.04 | osm.heal02_835359 | | 55765cee-34d6-45fb-a100-66d4710c237e | heal_02-manual_scale_vnf-mgmtVM-2 | ACTIVE | osm-ext=172.21.249.157 | ubuntu18.04 | osm.heal02_835359 | | ce4476f9-6241-4049-ab10-cd98b583eb96 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.164.62; osm-ext=172.21.249.136 | ubuntu18.04 | simple_requires-1-1-flv | | 7cbac62f-7fc2-4bc6-a34c-b0d4e196db43 | heal_02-manual_scale_vnf-mgmtVM-0 | ACTIVE | osm-ext=172.21.248.181 | ubuntu18.04 | osm.heal02_835359 | | 282c9771-a96f-4d04-9bdd-16a0dc2d07c0 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.164.216; osm-ext=172.21.248.8 | ubuntu18.04 | simple_requires-1-1-flv | | 12ee8fd2-ce74-468e-9bcc-1cdd9d929809 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.164.118; osm-ext=172.21.248.111 | ubuntu18.04 | simple_requires-1-1-flv | | 282695c5-6d8e-4e46-ab7c-eed27f4cf963 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.201 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------------------------------------------+-------------+-------------------------+ | 6383a2cb-2137-467a-acdc-e3a8bcd3079e | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.30; slicebasic.slice-nsd_vnfd_vld_dat=192.168.115.198 | ubuntu18.04 | simple_requires-1-1-flv | | 12ba4a8a-9aa9-4054-8e9a-d85ccaec71e1 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.172; slicebasic.slice-nsd_vnfd_vld_dat=192.168.115.145, 192.168.189.212 | ubuntu18.04 | simple_requires-1-1-flv | | 51b7fee4-c977-4212-9785-214565b8c786 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.27; slicebasic.slice-nsd_vnfd_vld_dat=192.168.189.199 | ubuntu18.04 | simple_requires-1-1-flv | | ce4476f9-6241-4049-ab10-cd98b583eb96 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.164.62; osm-ext=172.21.249.136 | ubuntu18.04 | simple_requires-1-1-flv | | 282c9771-a96f-4d04-9bdd-16a0dc2d07c0 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.164.216; osm-ext=172.21.248.8 | ubuntu18.04 | simple_requires-1-1-flv | | 12ee8fd2-ce74-468e-9bcc-1cdd9d929809 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.164.118; osm-ext=172.21.248.111 | ubuntu18.04 | simple_requires-1-1-flv | | 282695c5-6d8e-4e46-ab7c-eed27f4cf963 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.201 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 5d2ced93-cd05-4d8f-be7a-8d81cc41a2cf 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} f7bc8db2-b670-4fff-8182-2ab2f3f623aa Checking if volume ${vol_id} is still in VIM Logs the given message with the given level. Checking if volume f7bc8db2-b670-4fff-8182-2ab2f3f623aa 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 f7bc8db2-b670-4fff-8182-2ab2f3f623aa | 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} 766c3217-65b5-4b2c-ab80-e5ad30ae1de4 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 766c3217-65b5-4b2c-ab80-e5ad30ae1de4 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 766c3217-65b5-4b2c-ab80-e5ad30ae1de4 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 766c3217-65b5-4b2c-ab80-e5ad30ae1de4 ${stdout} Logs the given message with the given level. No Server found for 766c3217-65b5-4b2c-ab80-e5ad30ae1de4 ${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. 7cbac62f-7fc2-4bc6-a34c-b0d4e196db43 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 7cbac62f-7fc2-4bc6-a34c-b0d4e196db43 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 7cbac62f-7fc2-4bc6-a34c-b0d4e196db43 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 7cbac62f-7fc2-4bc6-a34c-b0d4e196db43 ${stdout} Logs the given message with the given level. No Server found for 7cbac62f-7fc2-4bc6-a34c-b0d4e196db43 ${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. f8876aac-5e26-4e1b-8d9c-64fbc502de63 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server f8876aac-5e26-4e1b-8d9c-64fbc502de63 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 f8876aac-5e26-4e1b-8d9c-64fbc502de63 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for f8876aac-5e26-4e1b-8d9c-64fbc502de63 ${stdout} Logs the given message with the given level. No Server found for f8876aac-5e26-4e1b-8d9c-64fbc502de63 ${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. 55765cee-34d6-45fb-a100-66d4710c237e Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 55765cee-34d6-45fb-a100-66d4710c237e 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 55765cee-34d6-45fb-a100-66d4710c237e -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 55765cee-34d6-45fb-a100-66d4710c237e ${stdout} Logs the given message with the given level. No Server found for 55765cee-34d6-45fb-a100-66d4710c237e ${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. c7484e98-7956-42b4-8c6b-28aec0b6e4c8 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server c7484e98-7956-42b4-8c6b-28aec0b6e4c8 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 c7484e98-7956-42b4-8c6b-28aec0b6e4c8 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for c7484e98-7956-42b4-8c6b-28aec0b6e4c8 ${stdout} Logs the given message with the given level. No Server found for c7484e98-7956-42b4-8c6b-28aec0b6e4c8 ${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 | +--------------------------------------+-----------------------------------------------+---------+--------------------------------------------------------------------------------------------+-------------+-------------------------+ | 6383a2cb-2137-467a-acdc-e3a8bcd3079e | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.30; slicebasic.slice-nsd_vnfd_vld_dat=192.168.115.198 | ubuntu18.04 | simple_requires-1-1-flv | | 12ba4a8a-9aa9-4054-8e9a-d85ccaec71e1 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.172; slicebasic.slice-nsd_vnfd_vld_dat=192.168.115.145, 192.168.189.212 | ubuntu18.04 | simple_requires-1-1-flv | | 51b7fee4-c977-4212-9785-214565b8c786 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.27; slicebasic.slice-nsd_vnfd_vld_dat=192.168.189.199 | ubuntu18.04 | simple_requires-1-1-flv | | ce4476f9-6241-4049-ab10-cd98b583eb96 | heal_03-charm_vnf-mgmtVM-2 | SHUTOFF | heal_03-datanet=192.168.164.62; osm-ext=172.21.249.136 | ubuntu18.04 | simple_requires-1-1-flv | | 282c9771-a96f-4d04-9bdd-16a0dc2d07c0 | heal_03-charm_vnf-mgmtVM-1 | SHUTOFF | heal_03-datanet=192.168.164.216; osm-ext=172.21.248.8 | ubuntu18.04 | simple_requires-1-1-flv | | 12ee8fd2-ce74-468e-9bcc-1cdd9d929809 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.164.118; osm-ext=172.21.248.111 | ubuntu18.04 | simple_requires-1-1-flv | | 282695c5-6d8e-4e46-ab7c-eed27f4cf963 | heal_03-several_volumes_-several_volumes-VM-0 | SHUTOFF | osm-ext=172.21.249.201 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 5d2ced93-cd05-4d8f-be7a-8d81cc41a2cf 2>&1'. ${rc} = 1 ${stdout} = Failed to delete flavor with name or ID '5d2ced93-cd05-4d8f-be7a-8d81cc41a2cf': No Flavor found for 5d2ced93-cd05-4d8f-be7a-8d81cc41a2cf 1 of 1 flavors failed to delete. ${stdout} Logs the given message with the given level. Failed to delete flavor with name or ID '5d2ced93-cd05-4d8f-be7a-8d81cc41a2cf': No Flavor found for 5d2ced93-cd05-4d8f-be7a-8d81cc41a2cf 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} f7bc8db2-b670-4fff-8182-2ab2f3f623aa Checking if volume ${vol_id} is still in VIM Logs the given message with the given level. Checking if volume f7bc8db2-b670-4fff-8182-2ab2f3f623aa 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 f7bc8db2-b670-4fff-8182-2ab2f3f623aa | 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} 766c3217-65b5-4b2c-ab80-e5ad30ae1de4 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 766c3217-65b5-4b2c-ab80-e5ad30ae1de4 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 766c3217-65b5-4b2c-ab80-e5ad30ae1de4 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 766c3217-65b5-4b2c-ab80-e5ad30ae1de4 ${stdout} Logs the given message with the given level. No Server found for 766c3217-65b5-4b2c-ab80-e5ad30ae1de4 ${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. 7cbac62f-7fc2-4bc6-a34c-b0d4e196db43 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 7cbac62f-7fc2-4bc6-a34c-b0d4e196db43 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 7cbac62f-7fc2-4bc6-a34c-b0d4e196db43 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 7cbac62f-7fc2-4bc6-a34c-b0d4e196db43 ${stdout} Logs the given message with the given level. No Server found for 7cbac62f-7fc2-4bc6-a34c-b0d4e196db43 ${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. f8876aac-5e26-4e1b-8d9c-64fbc502de63 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server f8876aac-5e26-4e1b-8d9c-64fbc502de63 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 f8876aac-5e26-4e1b-8d9c-64fbc502de63 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for f8876aac-5e26-4e1b-8d9c-64fbc502de63 ${stdout} Logs the given message with the given level. No Server found for f8876aac-5e26-4e1b-8d9c-64fbc502de63 ${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. 55765cee-34d6-45fb-a100-66d4710c237e Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 55765cee-34d6-45fb-a100-66d4710c237e 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 55765cee-34d6-45fb-a100-66d4710c237e -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 55765cee-34d6-45fb-a100-66d4710c237e ${stdout} Logs the given message with the given level. No Server found for 55765cee-34d6-45fb-a100-66d4710c237e ${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. c7484e98-7956-42b4-8c6b-28aec0b6e4c8 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server c7484e98-7956-42b4-8c6b-28aec0b6e4c8 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 c7484e98-7956-42b4-8c6b-28aec0b6e4c8 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for c7484e98-7956-42b4-8c6b-28aec0b6e4c8 ${stdout} Logs the given message with the given level. No Server found for c7484e98-7956-42b4-8c6b-28aec0b6e4c8 ${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 e6939c4e-aa2e-47fa-8628-2d4a56746265 ${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} = e6939c4e-aa2e-47fa-8628-2d4a56746265 ${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 25af93b0-b175-4bab-afee-451d9dd5744a ${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} = 25af93b0-b175-4bab-afee-451d9dd5744a ${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 12ebdec0-8f27-495c-85ac-f6d88e53d9e5 ${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} = 12ebdec0-8f27-495c-85ac-f6d88e53d9e5 ${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} = 4b7872e8-0d4e-4a64-9a74-c9e8c1920c2b ${stdout} Logs the given message with the given level. 4b7872e8-0d4e-4a64-9a74-c9e8c1920c2b ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 4b7872e8-0d4e-4a64-9a74-c9e8c1920c2b ${ns_id} Logs the given message with the given level. 4b7872e8-0d4e-4a64-9a74-c9e8c1920c2b ${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 | +--------------------------------------+-----------------------------------------------+---------+--------------------------------------------------------------------------------------------+-------------+-------------------------+ | 6383a2cb-2137-467a-acdc-e3a8bcd3079e | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.30; slicebasic.slice-nsd_vnfd_vld_dat=192.168.115.198 | ubuntu18.04 | simple_requires-1-1-flv | | 12ba4a8a-9aa9-4054-8e9a-d85ccaec71e1 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.172; slicebasic.slice-nsd_vnfd_vld_dat=192.168.115.145, 192.168.189.212 | ubuntu18.04 | simple_requires-1-1-flv | | 51b7fee4-c977-4212-9785-214565b8c786 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.27; slicebasic.slice-nsd_vnfd_vld_dat=192.168.189.199 | ubuntu18.04 | simple_requires-1-1-flv | | ce4476f9-6241-4049-ab10-cd98b583eb96 | heal_03-charm_vnf-mgmtVM-2 | SHUTOFF | heal_03-datanet=192.168.164.62; osm-ext=172.21.249.136 | ubuntu18.04 | simple_requires-1-1-flv | | 282c9771-a96f-4d04-9bdd-16a0dc2d07c0 | heal_03-charm_vnf-mgmtVM-1 | SHUTOFF | heal_03-datanet=192.168.164.216; osm-ext=172.21.248.8 | ubuntu18.04 | simple_requires-1-1-flv | | 12ee8fd2-ce74-468e-9bcc-1cdd9d929809 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.164.118; osm-ext=172.21.248.111 | ubuntu18.04 | simple_requires-1-1-flv | | 282695c5-6d8e-4e46-ab7c-eed27f4cf963 | heal_03-several_volumes_-several_volumes-VM-0 | SHUTOFF | osm-ext=172.21.249.201 | ubuntu20.04 | several_volumes-VM-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+---------+--------------------------------------------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | 4b7872e8-0d4e-4a64-9a74-c9e8c1920c2b | 2024-04-14T02:37:11 | BUILDING | INSTANTIATING (656dfc45-648d-4f10-9a53-3b30c8f0799b) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 4b7872e8-0d4e-4a64-9a74-c9e8c1920c2b | 2024-04-14T02:37:11 | BUILDING | INSTANTIATING (656dfc45-648d-4f10-9a53-3b30c8f0799b) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------------------------------------------+-------------+-------------------------+ | 9a2307fa-a7eb-45f9-b92c-b7b5f33ede06 | heal_03-manual_scale_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 95944170-9658-4158-9b56-0b24b26d31bb | heal_03-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.218.64; osm-ext=172.21.248.17 | ubuntu18.04 | simple_requires-1-1-flv | | 4f11333f-7ecf-490e-b222-661e5226da96 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.164.62; osm-ext=172.21.249.136 | ubuntu18.04 | simple_requires-1-1-flv | | df503cd2-7b1e-4c96-8dd7-6a5b15f3ec17 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.33 | ubuntu20.04 | several_volumes-VM-flv | | 137c5ff8-0b7e-48c9-8953-564488ae4d20 | sliceshared.slic-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.213; slicebasic.slice-nsd_vnfd_vld_dat=192.168.115.118 | ubuntu18.04 | simple_requires-1-1-flv | | a8abaa49-7334-4059-88a9-0d4da7422ac1 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.164.216; osm-ext=172.21.248.8 | ubuntu18.04 | simple_requires-1-1-flv | | fb9da107-a881-4c99-867e-8d0417ac2617 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.201 | ubuntu20.04 | several_volumes-VM-flv | | 6383a2cb-2137-467a-acdc-e3a8bcd3079e | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.30; slicebasic.slice-nsd_vnfd_vld_dat=192.168.115.198 | ubuntu18.04 | simple_requires-1-1-flv | | 12ba4a8a-9aa9-4054-8e9a-d85ccaec71e1 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.172; slicebasic.slice-nsd_vnfd_vld_dat=192.168.115.145, 192.168.189.212 | ubuntu18.04 | simple_requires-1-1-flv | | 51b7fee4-c977-4212-9785-214565b8c786 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.27; slicebasic.slice-nsd_vnfd_vld_dat=192.168.189.199 | ubuntu18.04 | simple_requires-1-1-flv | | 12ee8fd2-ce74-468e-9bcc-1cdd9d929809 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.164.118; osm-ext=172.21.248.111 | ubuntu18.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | 4b7872e8-0d4e-4a64-9a74-c9e8c1920c2b | 2024-04-14T02:37:11 | BUILDING | INSTANTIATING (656dfc45-648d-4f10-9a53-3b30c8f0799b) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 4b7872e8-0d4e-4a64-9a74-c9e8c1920c2b | 2024-04-14T02:37:11 | BUILDING | INSTANTIATING (656dfc45-648d-4f10-9a53-3b30c8f0799b) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------------------------------------------+-------------+-------------------------+ | 9a2307fa-a7eb-45f9-b92c-b7b5f33ede06 | heal_03-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.218.76; osm-ext=172.21.248.252 | ubuntu18.04 | simple_requires-1-1-flv | | 95944170-9658-4158-9b56-0b24b26d31bb | heal_03-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.218.64; osm-ext=172.21.248.17 | ubuntu18.04 | simple_requires-1-1-flv | | 4f11333f-7ecf-490e-b222-661e5226da96 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.164.62; osm-ext=172.21.249.136 | ubuntu18.04 | simple_requires-1-1-flv | | df503cd2-7b1e-4c96-8dd7-6a5b15f3ec17 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.33 | ubuntu20.04 | several_volumes-VM-flv | | 137c5ff8-0b7e-48c9-8953-564488ae4d20 | sliceshared.slic-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.213; slicebasic.slice-nsd_vnfd_vld_dat=192.168.115.118 | ubuntu18.04 | simple_requires-1-1-flv | | a8abaa49-7334-4059-88a9-0d4da7422ac1 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.164.216; osm-ext=172.21.248.8 | ubuntu18.04 | simple_requires-1-1-flv | | fb9da107-a881-4c99-867e-8d0417ac2617 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.201 | ubuntu20.04 | several_volumes-VM-flv | | 6383a2cb-2137-467a-acdc-e3a8bcd3079e | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.30; slicebasic.slice-nsd_vnfd_vld_dat=192.168.115.198 | ubuntu18.04 | simple_requires-1-1-flv | | 12ba4a8a-9aa9-4054-8e9a-d85ccaec71e1 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.172; slicebasic.slice-nsd_vnfd_vld_dat=192.168.115.145, 192.168.189.212 | ubuntu18.04 | simple_requires-1-1-flv | | 51b7fee4-c977-4212-9785-214565b8c786 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.27; slicebasic.slice-nsd_vnfd_vld_dat=192.168.189.199 | ubuntu18.04 | simple_requires-1-1-flv | | 12ee8fd2-ce74-468e-9bcc-1cdd9d929809 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.164.118; osm-ext=172.21.248.111 | ubuntu18.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | 4b7872e8-0d4e-4a64-9a74-c9e8c1920c2b | 2024-04-14T02:37: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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------------------------------------------+-------------+-------------------------+ | 9a2307fa-a7eb-45f9-b92c-b7b5f33ede06 | heal_03-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.218.76; osm-ext=172.21.248.252 | ubuntu18.04 | simple_requires-1-1-flv | | 95944170-9658-4158-9b56-0b24b26d31bb | heal_03-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.218.64; osm-ext=172.21.248.17 | ubuntu18.04 | simple_requires-1-1-flv | | 4f11333f-7ecf-490e-b222-661e5226da96 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.164.62; osm-ext=172.21.249.136 | ubuntu18.04 | simple_requires-1-1-flv | | df503cd2-7b1e-4c96-8dd7-6a5b15f3ec17 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.33 | ubuntu20.04 | several_volumes-VM-flv | | 137c5ff8-0b7e-48c9-8953-564488ae4d20 | sliceshared.slic-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.213; slicebasic.slice-nsd_vnfd_vld_dat=192.168.115.118 | ubuntu18.04 | simple_requires-1-1-flv | | a8abaa49-7334-4059-88a9-0d4da7422ac1 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.164.216; osm-ext=172.21.248.8 | ubuntu18.04 | simple_requires-1-1-flv | | fb9da107-a881-4c99-867e-8d0417ac2617 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.201 | ubuntu20.04 | several_volumes-VM-flv | | 6383a2cb-2137-467a-acdc-e3a8bcd3079e | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.30; slicebasic.slice-nsd_vnfd_vld_dat=192.168.115.198 | ubuntu18.04 | simple_requires-1-1-flv | | 12ba4a8a-9aa9-4054-8e9a-d85ccaec71e1 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.172; slicebasic.slice-nsd_vnfd_vld_dat=192.168.115.145, 192.168.189.212 | ubuntu18.04 | simple_requires-1-1-flv | | 51b7fee4-c977-4212-9785-214565b8c786 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.27; slicebasic.slice-nsd_vnfd_vld_dat=192.168.189.199 | ubuntu18.04 | simple_requires-1-1-flv | | 12ee8fd2-ce74-468e-9bcc-1cdd9d929809 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.164.118; osm-ext=172.21.248.111 | ubuntu18.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | 4b7872e8-0d4e-4a64-9a74-c9e8c1920c2b | 2024-04-14T02:37: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} = 4b7872e8-0d4e-4a64-9a74-c9e8c1920c2b ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 4b7872e8-0d4e-4a64-9a74-c9e8c1920c2b 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} = 4b7872e8-0d4e-4a64-9a74-c9e8c1920c2b ${stdout} Logs the given message with the given level. 4b7872e8-0d4e-4a64-9a74-c9e8c1920c2b ${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} = 4b7872e8-0d4e-4a64-9a74-c9e8c1920c2b ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 4b7872e8-0d4e-4a64-9a74-c9e8c1920c2b 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 4b7872e8-0d4e-4a64-9a74-c9e8c1920c2b | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = d1d1a81e-e282-43cb-aec8-e7a4ef584de5 ${stdout} Logs the given message with the given level. d1d1a81e-e282-43cb-aec8-e7a4ef584de5 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${vnf_id} = d1d1a81e-e282-43cb-aec8-e7a4ef584de5 ${VNF_MANUALSCALE_ID} ${vnf_id} Makes a variable available everywhere within the scope of the current suite. ${VNF_MANUALSCALE_ID} = d1d1a81e-e282-43cb-aec8-e7a4ef584de5 @{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 d1d1a81e-e282-43cb-aec8-e7a4ef584de5 --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} = 0f8ecf92-088d-4f4b-88a8-e8c0cc78ab1f ${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 0f8ecf92-088d-4f4b-88a8-e8c0cc78ab1f --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 0f8ecf92-088d-4f4b-88a8-e8c0cc78ab1f ${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 0f8ecf92-088d-4f4b-88a8-e8c0cc78ab1f --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 0f8ecf92-088d-4f4b-88a8-e8c0cc78ab1f ${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 0f8ecf92-088d-4f4b-88a8-e8c0cc78ab1f --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 0f8ecf92-088d-4f4b-88a8-e8c0cc78ab1f --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 d1d1a81e-e282-43cb-aec8-e7a4ef584de5 --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 4b7872e8-0d4e-4a64-9a74-c9e8c1920c2b | grep 4b7872e8-0d4e-4a64-9a74-c9e8c1920c2b | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 50c518ef-0573-4cf0-b176-3bed8f751164 d1d1a81e-e282-43cb-aec8-e7a4ef584de5 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 50c518ef-0573-4cf0-b176-3bed8f751164 | d1d1a81e-e282-43cb-aec8-e7a4ef584de5 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List length is 2 and it contains following items: 0: 50c518ef-0573-4cf0-b176-3bed8f751164 1: d1d1a81e-e282-43cb-aec8-e7a4ef584de5 @{vnf_list} @{vnf_id_list} = [ 50c518ef-0573-4cf0-b176-3bed8f751164 | d1d1a81e-e282-43cb-aec8-e7a4ef584de5 ] ${vnf_id_list} Logs the given message with the given level. ['50c518ef-0573-4cf0-b176-3bed8f751164', 'd1d1a81e-e282-43cb-aec8-e7a4ef584de5'] ${vnf_id} @{vnf_id_list} 50c518ef-0573-4cf0-b176-3bed8f751164 ${vnf_id} Logs the given message with the given level. 50c518ef-0573-4cf0-b176-3bed8f751164 ${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 50c518ef-0573-4cf0-b176-3bed8f751164 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = df503cd2-7b1e-4c96-8dd7-6a5b15f3ec17 ${stdout} Logs the given message with the given level. df503cd2-7b1e-4c96-8dd7-6a5b15f3ec17 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = df503cd2-7b1e-4c96-8dd7-6a5b15f3ec17 @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ df503cd2-7b1e-4c96-8dd7-6a5b15f3ec17 ] ${VIM_VDUS} @{vdu_ids} Adds ``values`` to the end of ``list``. d1d1a81e-e282-43cb-aec8-e7a4ef584de5 ${vnf_id} Logs the given message with the given level. d1d1a81e-e282-43cb-aec8-e7a4ef584de5 ${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 d1d1a81e-e282-43cb-aec8-e7a4ef584de5 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 95944170-9658-4158-9b56-0b24b26d31bb 9a2307fa-a7eb-45f9-b92c-b7b5f33ede06 55aeddad-2372-48c2-8163-661080614b32 ${stdout} Logs the given message with the given level. 95944170-9658-4158-9b56-0b24b26d31bb 9a2307fa-a7eb-45f9-b92c-b7b5f33ede06 55aeddad-2372-48c2-8163-661080614b32 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 95944170-9658-4158-9b56-0b24b26d31bb 9a2307fa-a7eb-45f9-b92c-b7b5f33ede06 55aeddad-2372-48c2-8163-661080614b32 @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ 95944170-9658-4158-9b56-0b24b26d31bb | 9a2307fa-a7eb-45f9-b92c-b7b5f33ede06 | 55aeddad-2372-48c2-8163-661080614b32 ] ${VIM_VDUS} @{vdu_ids} Adds ``values`` to the end of ``list``. ${vdu_id} @{VIM_VDUS} df503cd2-7b1e-4c96-8dd7-6a5b15f3ec17 ${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 df503cd2-7b1e-4c96-8dd7-6a5b15f3ec17 -c volumes_attached -f value 2>&1'. ${rc} = 0 ${stdout} = [{'device': None, 'id': 'f7fbd911-9cd0-422a-b354-bcfaa63c659c', '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': 'f7fbd911-9cd0-422a-b354-bcfaa63c659c', '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': 'f7fbd911-9cd0-422a-b354-bcfaa63c659c', '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} = ['f7fbd911-9cd0-422a-b354-bcfaa63c659c'] ${VIM_VOLUMES} ${match}[0] Adds ``values`` to the end of ``list``. 95944170-9658-4158-9b56-0b24b26d31bb ${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 95944170-9658-4158-9b56-0b24b26d31bb -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``. 9a2307fa-a7eb-45f9-b92c-b7b5f33ede06 ${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 9a2307fa-a7eb-45f9-b92c-b7b5f33ede06 -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``. 55aeddad-2372-48c2-8163-661080614b32 ${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 55aeddad-2372-48c2-8163-661080614b32 -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. df503cd2-7b1e-4c96-8dd7-6a5b15f3ec17 95944170-9658-4158-9b56-0b24b26d31bb 9a2307fa-a7eb-45f9-b92c-b7b5f33ede06 55aeddad-2372-48c2-8163-661080614b32 @{VIM_VOLUMES} Logs the given messages as separate entries using the INFO level. f7fbd911-9cd0-422a-b354-bcfaa63c659c 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 d1d1a81e-e282-43cb-aec8-e7a4ef584de5 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 95944170-9658-4158-9b56-0b24b26d31bb 9a2307fa-a7eb-45f9-b92c-b7b5f33ede06 55aeddad-2372-48c2-8163-661080614b32 ${stdout} Logs the given message with the given level. 95944170-9658-4158-9b56-0b24b26d31bb 9a2307fa-a7eb-45f9-b92c-b7b5f33ede06 55aeddad-2372-48c2-8163-661080614b32 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 95944170-9658-4158-9b56-0b24b26d31bb 9a2307fa-a7eb-45f9-b92c-b7b5f33ede06 55aeddad-2372-48c2-8163-661080614b32 @{vdu_manualscale_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_manualscale_ids} = [ 95944170-9658-4158-9b56-0b24b26d31bb | 9a2307fa-a7eb-45f9-b92c-b7b5f33ede06 | 55aeddad-2372-48c2-8163-661080614b32 ] @{VDU_MANUALSCALE_IDS} @{vdu_manualscale_ids} Makes a variable available everywhere within the scope of the current suite. @{VDU_MANUALSCALE_IDS} = [ 95944170-9658-4158-9b56-0b24b26d31bb | 9a2307fa-a7eb-45f9-b92c-b7b5f33ede06 | 55aeddad-2372-48c2-8163-661080614b32 ] ${VDU_MANUALSCALE_IDS}[1] Logs the given message with the given level. 9a2307fa-a7eb-45f9-b92c-b7b5f33ede06 @{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 d1d1a81e-e282-43cb-aec8-e7a4ef584de5 --literal | yq -r '.vdur[].interfaces[]."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.17 192.168.218.64 172.21.248.252 192.168.218.76 172.21.249.157 192.168.218.23 ${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.17 | 192.168.218.64 | 172.21.248.252 | 192.168.218.76 | 172.21.249.157 | 192.168.218.23 ] @{ip} @{manualscale_ip_list} = [ 172.21.248.17 | 192.168.218.64 | 172.21.248.252 | 192.168.218.76 | 172.21.249.157 | 192.168.218.23 ] @{MANUALSCALE_IP_LIST} @{manualscale_ip_list} Makes a variable available everywhere within the scope of the current suite. @{MANUALSCALE_IP_LIST} = [ 172.21.248.17 | 192.168.218.64 | 172.21.248.252 | 192.168.218.76 | 172.21.249.157 | 192.168.218.23 ] 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 4b7872e8-0d4e-4a64-9a74-c9e8c1920c2b | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.33 ${stdout} Logs the given message with the given level. 172.21.248.33 ${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.33 ${ip_addr} Logs the given message with the given level. 172.21.248.33 ${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.33 ${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 4b7872e8-0d4e-4a64-9a74-c9e8c1920c2b | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = 50c518ef-0573-4cf0-b176-3bed8f751164 ${stdout} Logs the given message with the given level. 50c518ef-0573-4cf0-b176-3bed8f751164 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${vnf_id} = 50c518ef-0573-4cf0-b176-3bed8f751164 ${VNF_VOLUMES_ID} ${vnf_id} Makes a variable available everywhere within the scope of the current suite. ${VNF_VOLUMES_ID} = 50c518ef-0573-4cf0-b176-3bed8f751164 ${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 50c518ef-0573-4cf0-b176-3bed8f751164 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = df503cd2-7b1e-4c96-8dd7-6a5b15f3ec17 ${stdout} Logs the given message with the given level. df503cd2-7b1e-4c96-8dd7-6a5b15f3ec17 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = df503cd2-7b1e-4c96-8dd7-6a5b15f3ec17 ${VDU_VOLUMES_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${VDU_VOLUMES_ID} = df503cd2-7b1e-4c96-8dd7-6a5b15f3ec17 ${VDU_VOLUMES_ID} Logs the given message with the given level. df503cd2-7b1e-4c96-8dd7-6a5b15f3ec17 @{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 50c518ef-0573-4cf0-b176-3bed8f751164 --literal | yq -r '.vdur[].interfaces[]."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.33 ${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.33 ] @{ip} @{volumes_ip_list} = [ 172.21.248.33 ] @{VOLUMES_IP_LIST} @{volumes_ip_list} Makes a variable available everywhere within the scope of the current suite. @{VOLUMES_IP_LIST} = [ 172.21.248.33 ] @{VOLUMES_IP_LIST} Logs the given message with the given level. 172.21.248.33 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 9a2307fa-a7eb-45f9-b92c-b7b5f33ede06 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 55aeddad-2372-48c2-8163-661080614b32 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 df503cd2-7b1e-4c96-8dd7-6a5b15f3ec17 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 4b7872e8-0d4e-4a64-9a74-c9e8c1920c2b --vnf 50c518ef-0573-4cf0-b176-3bed8f751164 --cause "Heal myvdu1 of several_volumes_vnf" --vdu several_volumes-VM --vnf d1d1a81e-e282-43cb-aec8-e7a4ef584de5 --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} = 0895e85b-80a6-4e8d-8b91-47b5a7c9f98a ${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 0895e85b-80a6-4e8d-8b91-47b5a7c9f98a --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 0895e85b-80a6-4e8d-8b91-47b5a7c9f98a ${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 0895e85b-80a6-4e8d-8b91-47b5a7c9f98a --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 0895e85b-80a6-4e8d-8b91-47b5a7c9f98a ${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 0895e85b-80a6-4e8d-8b91-47b5a7c9f98a --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 0895e85b-80a6-4e8d-8b91-47b5a7c9f98a ${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 0895e85b-80a6-4e8d-8b91-47b5a7c9f98a --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 0895e85b-80a6-4e8d-8b91-47b5a7c9f98a --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 d1d1a81e-e282-43cb-aec8-e7a4ef584de5 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 95944170-9658-4158-9b56-0b24b26d31bb f4f3a7e3-37d5-4ce7-bc29-bb3e246cba1a ebb2af4b-8d01-4dbf-9d7a-cb0e89dbb6b6 ${stdout} Logs the given message with the given level. 95944170-9658-4158-9b56-0b24b26d31bb f4f3a7e3-37d5-4ce7-bc29-bb3e246cba1a ebb2af4b-8d01-4dbf-9d7a-cb0e89dbb6b6 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 95944170-9658-4158-9b56-0b24b26d31bb f4f3a7e3-37d5-4ce7-bc29-bb3e246cba1a ebb2af4b-8d01-4dbf-9d7a-cb0e89dbb6b6 @{ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{ids} = [ 95944170-9658-4158-9b56-0b24b26d31bb | f4f3a7e3-37d5-4ce7-bc29-bb3e246cba1a | ebb2af4b-8d01-4dbf-9d7a-cb0e89dbb6b6 ] ${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 50c518ef-0573-4cf0-b176-3bed8f751164 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = ad359036-39d6-4a21-8e9c-67722b1f3599 ${stdout} Logs the given message with the given level. ad359036-39d6-4a21-8e9c-67722b1f3599 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = ad359036-39d6-4a21-8e9c-67722b1f3599 ${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 d1d1a81e-e282-43cb-aec8-e7a4ef584de5 --literal | yq '.vdur[] | select(."count-index" == 1)' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.252 ${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.252 ${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.252: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 disabled due to load higher than 1.0 0 updates can be applied immediately. The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@heal-03-manual-scale-vnf-mgmtvm-1:~$ ${stdout} ${rc} ${command} return_rc=True return_stdout=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'sudo ls /root/helloworld.txt'. Command exited with return code 0. ${stdout} = /root/helloworld.txt ${rc} = 0 ${rc} Logs the given message with the given level. 0 ${stdout} Logs the given message with the given level. /root/helloworld.txt Closes all open connections. ${rc} 0 Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${stdout} = /root/helloworld.txt ${stdout} Logs the given message with the given level. /root/helloworld.txt ${ip} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} ${VNF_MANUALSCALE_DAY1_FILE} Check via SSH if a file exists in in the remote host, using the user and credentials passed as arguments. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.248.252: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 disabled due to load higher than 1.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 14 02:41:00 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 4b7872e8-0d4e-4a64-9a74-c9e8c1920c2b | grep 4b7872e8-0d4e-4a64-9a74-c9e8c1920c2b | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 50c518ef-0573-4cf0-b176-3bed8f751164 d1d1a81e-e282-43cb-aec8-e7a4ef584de5 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 50c518ef-0573-4cf0-b176-3bed8f751164 | d1d1a81e-e282-43cb-aec8-e7a4ef584de5 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List length is 2 and it contains following items: 0: 50c518ef-0573-4cf0-b176-3bed8f751164 1: d1d1a81e-e282-43cb-aec8-e7a4ef584de5 @{vnf_list} @{vnf_id_list} = [ 50c518ef-0573-4cf0-b176-3bed8f751164 | d1d1a81e-e282-43cb-aec8-e7a4ef584de5 ] ${vnf_id} @{vnf_id_list} 50c518ef-0573-4cf0-b176-3bed8f751164 ${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 50c518ef-0573-4cf0-b176-3bed8f751164 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = ad359036-39d6-4a21-8e9c-67722b1f3599 ${stdout} Logs the given message with the given level. ad359036-39d6-4a21-8e9c-67722b1f3599 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = ad359036-39d6-4a21-8e9c-67722b1f3599 @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ ad359036-39d6-4a21-8e9c-67722b1f3599 ] ${vdu_updated} @{vdu_ids} Adds ``values`` to the end of ``list``. ${id} @{vdu_ids} ad359036-39d6-4a21-8e9c-67722b1f3599 ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. d1d1a81e-e282-43cb-aec8-e7a4ef584de5 ${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 d1d1a81e-e282-43cb-aec8-e7a4ef584de5 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 95944170-9658-4158-9b56-0b24b26d31bb f4f3a7e3-37d5-4ce7-bc29-bb3e246cba1a ebb2af4b-8d01-4dbf-9d7a-cb0e89dbb6b6 ${stdout} Logs the given message with the given level. 95944170-9658-4158-9b56-0b24b26d31bb f4f3a7e3-37d5-4ce7-bc29-bb3e246cba1a ebb2af4b-8d01-4dbf-9d7a-cb0e89dbb6b6 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 95944170-9658-4158-9b56-0b24b26d31bb f4f3a7e3-37d5-4ce7-bc29-bb3e246cba1a ebb2af4b-8d01-4dbf-9d7a-cb0e89dbb6b6 @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ 95944170-9658-4158-9b56-0b24b26d31bb | f4f3a7e3-37d5-4ce7-bc29-bb3e246cba1a | ebb2af4b-8d01-4dbf-9d7a-cb0e89dbb6b6 ] ${vdu_updated} @{vdu_ids} Adds ``values`` to the end of ``list``. ${id} @{vdu_ids} 95944170-9658-4158-9b56-0b24b26d31bb ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. f4f3a7e3-37d5-4ce7-bc29-bb3e246cba1a ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. ebb2af4b-8d01-4dbf-9d7a-cb0e89dbb6b6 ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. ${vdu_id} @{vdu_updated} ad359036-39d6-4a21-8e9c-67722b1f3599 ${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 ad359036-39d6-4a21-8e9c-67722b1f3599 -c volumes_attached -f value 2>&1'. ${rc} = 0 ${stdout} = [{'device': None, 'id': 'f7fbd911-9cd0-422a-b354-bcfaa63c659c', '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': 'f7fbd911-9cd0-422a-b354-bcfaa63c659c', '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': 'f7fbd911-9cd0-422a-b354-bcfaa63c659c', '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} = ['f7fbd911-9cd0-422a-b354-bcfaa63c659c'] ${VIM_VOLUMES} ${match}[0] Adds ``values`` to the end of ``list``. 95944170-9658-4158-9b56-0b24b26d31bb ${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 95944170-9658-4158-9b56-0b24b26d31bb -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``. f4f3a7e3-37d5-4ce7-bc29-bb3e246cba1a ${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 f4f3a7e3-37d5-4ce7-bc29-bb3e246cba1a -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``. ebb2af4b-8d01-4dbf-9d7a-cb0e89dbb6b6 ${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 ebb2af4b-8d01-4dbf-9d7a-cb0e89dbb6b6 -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. df503cd2-7b1e-4c96-8dd7-6a5b15f3ec17 95944170-9658-4158-9b56-0b24b26d31bb 9a2307fa-a7eb-45f9-b92c-b7b5f33ede06 55aeddad-2372-48c2-8163-661080614b32 ad359036-39d6-4a21-8e9c-67722b1f3599 f4f3a7e3-37d5-4ce7-bc29-bb3e246cba1a ebb2af4b-8d01-4dbf-9d7a-cb0e89dbb6b6 @{VIM_VOLUMES} Logs the given messages as separate entries using the INFO level. f7fbd911-9cd0-422a-b354-bcfaa63c659c 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 | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------------------------+-------------+-------------------------+ | ebb2af4b-8d01-4dbf-9d7a-cb0e89dbb6b6 | heal_03-manual_scale_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.218.23; osm-ext=172.21.249.157 | ubuntu18.04 | simple_requires-1-1-flv | | f4f3a7e3-37d5-4ce7-bc29-bb3e246cba1a | heal_03-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.218.76; osm-ext=172.21.248.252 | ubuntu18.04 | simple_requires-1-1-flv | | ad359036-39d6-4a21-8e9c-67722b1f3599 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.33 | ubuntu20.04 | several_volumes-VM-flv | | 95944170-9658-4158-9b56-0b24b26d31bb | heal_03-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.218.64; osm-ext=172.21.248.17 | ubuntu18.04 | simple_requires-1-1-flv | | 4f11333f-7ecf-490e-b222-661e5226da96 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.164.62; osm-ext=172.21.249.136 | ubuntu18.04 | simple_requires-1-1-flv | | 137c5ff8-0b7e-48c9-8953-564488ae4d20 | sliceshared.slic-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.213 | ubuntu18.04 | simple_requires-1-1-flv | | a8abaa49-7334-4059-88a9-0d4da7422ac1 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.164.216; osm-ext=172.21.248.8 | ubuntu18.04 | simple_requires-1-1-flv | | fb9da107-a881-4c99-867e-8d0417ac2617 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.201 | ubuntu20.04 | several_volumes-VM-flv | | 12ba4a8a-9aa9-4054-8e9a-d85ccaec71e1 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.249.172; slicebasic.slice-nsd_vnfd_vld_dat=192.168.115.145 | ubuntu18.04 | simple_requires-1-1-flv | | 12ee8fd2-ce74-468e-9bcc-1cdd9d929809 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.164.118; osm-ext=172.21.248.111 | ubuntu18.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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} = +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | ID... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | ebb2af4b-8d01-4dbf-9d7a-cb0e89dbb6b6 | heal_03-manual_scale_vnf-mgmtVM-2 | ACTIVE | osm-ext=172.21.249.157 | ubuntu18.04 | simple_requires-1-1-flv | | f4f3a7e3-37d5-4ce7-bc29-bb3e246cba1a | heal_03-manual_scale_vnf-mgmtVM-1 | ACTIVE | osm-ext=172.21.248.252 | ubuntu18.04 | simple_requires-1-1-flv | | 4f11333f-7ecf-490e-b222-661e5226da96 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.164.62; osm-ext=172.21.249.136 | ubuntu18.04 | simple_requires-1-1-flv | | a8abaa49-7334-4059-88a9-0d4da7422ac1 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.164.216; osm-ext=172.21.248.8 | ubuntu18.04 | simple_requires-1-1-flv | | fb9da107-a881-4c99-867e-8d0417ac2617 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.201 | ubuntu20.04 | several_volumes-VM-flv | | 12ee8fd2-ce74-468e-9bcc-1cdd9d929809 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.164.118; osm-ext=172.21.248.111 | ubuntu18.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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} = +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | ID... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | 4f11333f-7ecf-490e-b222-661e5226da96 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.164.62; osm-ext=172.21.249.136 | ubuntu18.04 | simple_requires-1-1-flv | | a8abaa49-7334-4059-88a9-0d4da7422ac1 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.164.216; osm-ext=172.21.248.8 | ubuntu18.04 | simple_requires-1-1-flv | | fb9da107-a881-4c99-867e-8d0417ac2617 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.201 | ubuntu20.04 | several_volumes-VM-flv | | 12ee8fd2-ce74-468e-9bcc-1cdd9d929809 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.164.118; osm-ext=172.21.248.111 | ubuntu18.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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} f7fbd911-9cd0-422a-b354-bcfaa63c659c Checking if volume ${vol_id} is still in VIM Logs the given message with the given level. Checking if volume f7fbd911-9cd0-422a-b354-bcfaa63c659c 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 f7fbd911-9cd0-422a-b354-bcfaa63c659c | 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} df503cd2-7b1e-4c96-8dd7-6a5b15f3ec17 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server df503cd2-7b1e-4c96-8dd7-6a5b15f3ec17 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 df503cd2-7b1e-4c96-8dd7-6a5b15f3ec17 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for df503cd2-7b1e-4c96-8dd7-6a5b15f3ec17 ${stdout} Logs the given message with the given level. No Server found for df503cd2-7b1e-4c96-8dd7-6a5b15f3ec17 ${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. 95944170-9658-4158-9b56-0b24b26d31bb Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 95944170-9658-4158-9b56-0b24b26d31bb 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 95944170-9658-4158-9b56-0b24b26d31bb -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 95944170-9658-4158-9b56-0b24b26d31bb ${stdout} Logs the given message with the given level. No Server found for 95944170-9658-4158-9b56-0b24b26d31bb ${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. 9a2307fa-a7eb-45f9-b92c-b7b5f33ede06 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 9a2307fa-a7eb-45f9-b92c-b7b5f33ede06 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 9a2307fa-a7eb-45f9-b92c-b7b5f33ede06 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 9a2307fa-a7eb-45f9-b92c-b7b5f33ede06 ${stdout} Logs the given message with the given level. No Server found for 9a2307fa-a7eb-45f9-b92c-b7b5f33ede06 ${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. 55aeddad-2372-48c2-8163-661080614b32 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 55aeddad-2372-48c2-8163-661080614b32 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 55aeddad-2372-48c2-8163-661080614b32 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 55aeddad-2372-48c2-8163-661080614b32 ${stdout} Logs the given message with the given level. No Server found for 55aeddad-2372-48c2-8163-661080614b32 ${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. ad359036-39d6-4a21-8e9c-67722b1f3599 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server ad359036-39d6-4a21-8e9c-67722b1f3599 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 ad359036-39d6-4a21-8e9c-67722b1f3599 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for ad359036-39d6-4a21-8e9c-67722b1f3599 ${stdout} Logs the given message with the given level. No Server found for ad359036-39d6-4a21-8e9c-67722b1f3599 ${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. f4f3a7e3-37d5-4ce7-bc29-bb3e246cba1a Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server f4f3a7e3-37d5-4ce7-bc29-bb3e246cba1a 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 f4f3a7e3-37d5-4ce7-bc29-bb3e246cba1a -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for f4f3a7e3-37d5-4ce7-bc29-bb3e246cba1a ${stdout} Logs the given message with the given level. No Server found for f4f3a7e3-37d5-4ce7-bc29-bb3e246cba1a ${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. ebb2af4b-8d01-4dbf-9d7a-cb0e89dbb6b6 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server ebb2af4b-8d01-4dbf-9d7a-cb0e89dbb6b6 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 ebb2af4b-8d01-4dbf-9d7a-cb0e89dbb6b6 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for ebb2af4b-8d01-4dbf-9d7a-cb0e89dbb6b6 ${stdout} Logs the given message with the given level. No Server found for ebb2af4b-8d01-4dbf-9d7a-cb0e89dbb6b6 ${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} = +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | ID... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | 4f11333f-7ecf-490e-b222-661e5226da96 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.164.62; osm-ext=172.21.249.136 | ubuntu18.04 | simple_requires-1-1-flv | | a8abaa49-7334-4059-88a9-0d4da7422ac1 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.164.216; osm-ext=172.21.248.8 | ubuntu18.04 | simple_requires-1-1-flv | | fb9da107-a881-4c99-867e-8d0417ac2617 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.201 | ubuntu20.04 | several_volumes-VM-flv | | 12ee8fd2-ce74-468e-9bcc-1cdd9d929809 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.164.118; osm-ext=172.21.248.111 | ubuntu18.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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 c2c8e6f6-bc8a-4b14-9bfd-150dffe0bb28 ${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} = c2c8e6f6-bc8a-4b14-9bfd-150dffe0bb28 ${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 5d8175b5-c656-475c-b9b6-6079ef65a4e0 ${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} = 5d8175b5-c656-475c-b9b6-6079ef65a4e0 ${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} = 648bf6fe-766c-4361-996f-ce6a3395b431 ${stdout} Logs the given message with the given level. 648bf6fe-766c-4361-996f-ce6a3395b431 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 648bf6fe-766c-4361-996f-ce6a3395b431 ${ns_id} Logs the given message with the given level. 648bf6fe-766c-4361-996f-ce6a3395b431 ${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 | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | 4f11333f-7ecf-490e-b222-661e5226da96 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.164.62; osm-ext=172.21.249.136 | ubuntu18.04 | simple_requires-1-1-flv | | a8abaa49-7334-4059-88a9-0d4da7422ac1 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.164.216; osm-ext=172.21.248.8 | ubuntu18.04 | simple_requires-1-1-flv | | fb9da107-a881-4c99-867e-8d0417ac2617 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.201 | ubuntu20.04 | several_volumes-VM-flv | | 12ee8fd2-ce74-468e-9bcc-1cdd9d929809 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.164.118; osm-ext=172.21.248.111 | ubuntu18.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list --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 | 648bf6fe-766c-4361-996f-ce6a3395b431 | 2024-04-14T02:42:33 | BUILDING | INSTANTIATING (870fa2d2-da0d-4499-951b-af73eb0a1fd9) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 648bf6fe-766c-4361-996f-ce6a3395b431 | 2024-04-14T02:42:33 | BUILDING | INSTANTIATING (870fa2d2-da0d-4499-951b-af73eb0a1fd9) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+------------------------------------------------+--------+---------------------------------------------------------+-------------+-----------------------------------------+ | 4d04bc8f-c13b-469e-878c-80ee59f96ed8 | heal_04-autoheal-basic-1-autoheal_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.80 | ubuntu20.04 | autoheal_vnfd-VM-autoheal-basic-1-1-flv | | a7f86c7f-7ecd-4fcc-a872-2cdef0015ec6 | sol003-instance--1-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.219 | ubuntu20.04 | simple_requires-1-1-flv | | 4f11333f-7ecf-490e-b222-661e5226da96 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.164.62; osm-ext=172.21.249.136 | ubuntu18.04 | simple_requires-1-1-flv | | a8abaa49-7334-4059-88a9-0d4da7422ac1 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.164.216; osm-ext=172.21.248.8 | ubuntu18.04 | simple_requires-1-1-flv | | fb9da107-a881-4c99-867e-8d0417ac2617 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.201 | ubuntu20.04 | several_volumes-VM-flv | | 12ee8fd2-ce74-468e-9bcc-1cdd9d929809 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.164.118; osm-ext=172.21.248.111 | ubuntu18.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------------+--------+---------------------------------------------------------+-------------+-----------------------------------------+ ${rc} ${stdout} osm ns-list --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 | 648bf6fe-766c-4361-996f-ce6a3395b431 | 2024-04-14T02:42:33 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------------+--------+---------------------------------------------------------+-------------+------------------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------------+--------+---------------------------------------------------------+-------------+-----------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------------+--------+---------------------------------------------------------+-------------+-----------------------------------------+ | 4d04bc8f-c13b-469e-878c-80ee59f96ed8 | heal_04-autoheal-basic-1-autoheal_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.80 | ubuntu20.04 | autoheal_vnfd-VM-autoheal-basic-1-1-flv | | a7f86c7f-7ecd-4fcc-a872-2cdef0015ec6 | sol003-instance--1-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.219 | ubuntu20.04 | simple_requires-1-1-flv | | 4f11333f-7ecf-490e-b222-661e5226da96 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.164.62; osm-ext=172.21.249.136 | ubuntu18.04 | simple_requires-1-1-flv | | a8abaa49-7334-4059-88a9-0d4da7422ac1 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.164.216; osm-ext=172.21.248.8 | ubuntu18.04 | simple_requires-1-1-flv | | fb9da107-a881-4c99-867e-8d0417ac2617 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.201 | ubuntu20.04 | several_volumes-VM-flv | | 12ee8fd2-ce74-468e-9bcc-1cdd9d929809 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.164.118; osm-ext=172.21.248.111 | ubuntu18.04 | simple_requires-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+------------------------------------------------+--------+---------------------------------------------------------+-------------+-----------------------------------------+ ${rc} ${stdout} osm ns-list --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 | 648bf6fe-766c-4361-996f-ce6a3395b431 | 2024-04-14T02:42:33 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} BROKEN Fails if ``container`` contains ``item`` one or more times. ${ns_id} ${id} = 648bf6fe-766c-4361-996f-ce6a3395b431 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 648bf6fe-766c-4361-996f-ce6a3395b431 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} = 648bf6fe-766c-4361-996f-ce6a3395b431 ${stdout} Logs the given message with the given level. 648bf6fe-766c-4361-996f-ce6a3395b431 ${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} = 648bf6fe-766c-4361-996f-ce6a3395b431 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 648bf6fe-766c-4361-996f-ce6a3395b431 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 648bf6fe-766c-4361-996f-ce6a3395b431 | grep 648bf6fe-766c-4361-996f-ce6a3395b431 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 85640686-20fc-4ce9-9e14-affa98b8c5a4 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 85640686-20fc-4ce9-9e14-affa98b8c5a4 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 85640686-20fc-4ce9-9e14-affa98b8c5a4 @{vnf_list} @{vnf_id_list} = [ 85640686-20fc-4ce9-9e14-affa98b8c5a4 ] ${vnf_id_list} Logs the given message with the given level. ['85640686-20fc-4ce9-9e14-affa98b8c5a4'] ${vnf_id} @{vnf_id_list} 85640686-20fc-4ce9-9e14-affa98b8c5a4 ${vnf_id} Logs the given message with the given level. 85640686-20fc-4ce9-9e14-affa98b8c5a4 ${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 85640686-20fc-4ce9-9e14-affa98b8c5a4 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 4d04bc8f-c13b-469e-878c-80ee59f96ed8 ${stdout} Logs the given message with the given level. 4d04bc8f-c13b-469e-878c-80ee59f96ed8 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 4d04bc8f-c13b-469e-878c-80ee59f96ed8 @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ 4d04bc8f-c13b-469e-878c-80ee59f96ed8 ] ${VIM_VDUS} @{vdu_ids} Adds ``values`` to the end of ``list``. @{VIM_VDUS} Logs the given messages as separate entries using the INFO level. 4d04bc8f-c13b-469e-878c-80ee59f96ed8 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 648bf6fe-766c-4361-996f-ce6a3395b431 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.80 ${stdout} Logs the given message with the given level. 172.21.249.80 ${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.80 ${ip_addr} Logs the given message with the given level. 172.21.249.80 ${VNF_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. ${VNF_IP_ADDR} = 172.21.249.80 ${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 648bf6fe-766c-4361-996f-ce6a3395b431 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = 85640686-20fc-4ce9-9e14-affa98b8c5a4 ${stdout} Logs the given message with the given level. 85640686-20fc-4ce9-9e14-affa98b8c5a4 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${vnf_id} = 85640686-20fc-4ce9-9e14-affa98b8c5a4 ${VNF_AUTOHEAL_ID} ${vnf_id} Makes a variable available everywhere within the scope of the current suite. ${VNF_AUTOHEAL_ID} = 85640686-20fc-4ce9-9e14-affa98b8c5a4 ${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 85640686-20fc-4ce9-9e14-affa98b8c5a4 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 4d04bc8f-c13b-469e-878c-80ee59f96ed8 ${stdout} Logs the given message with the given level. 4d04bc8f-c13b-469e-878c-80ee59f96ed8 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 4d04bc8f-c13b-469e-878c-80ee59f96ed8 ${VDU_AUTOHEAL_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${VDU_AUTOHEAL_ID} = 4d04bc8f-c13b-469e-878c-80ee59f96ed8 ${VDU_AUTOHEAL_ID} Logs the given message with the given level. 4d04bc8f-c13b-469e-878c-80ee59f96ed8 @{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 85640686-20fc-4ce9-9e14-affa98b8c5a4 --literal | yq -r '.vdur[].interfaces[]."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.80 ${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.80 ] @{ip} @{AUTOHEAL_IP_LIST} = [ 172.21.249.80 ] @{AUTOHEAL_IP_LIST} @{AUTOHEAL_IP_LIST} Makes a variable available everywhere within the scope of the current suite. @{AUTOHEAL_IP_LIST} = [ 172.21.249.80 ] @{AUTOHEAL_IP_LIST} Logs the given message with the given level. 172.21.249.80 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 4d04bc8f-c13b-469e-878c-80ee59f96ed8 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 648bf6fe-766c-4361-996f-ce6a3395b431 | 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 648bf6fe-766c-4361-996f-ce6a3395b431 | 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 648bf6fe-766c-4361-996f-ce6a3395b431 | 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 648bf6fe-766c-4361-996f-ce6a3395b431 | 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 648bf6fe-766c-4361-996f-ce6a3395b431 | 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 648bf6fe-766c-4361-996f-ce6a3395b431 | 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 648bf6fe-766c-4361-996f-ce6a3395b431 | 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 648bf6fe-766c-4361-996f-ce6a3395b431 | 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 648bf6fe-766c-4361-996f-ce6a3395b431 | 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 648bf6fe-766c-4361-996f-ce6a3395b431 | 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 648bf6fe-766c-4361-996f-ce6a3395b431 | 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 648bf6fe-766c-4361-996f-ce6a3395b431 | 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 648bf6fe-766c-4361-996f-ce6a3395b431 | 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 648bf6fe-766c-4361-996f-ce6a3395b431 | 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 648bf6fe-766c-4361-996f-ce6a3395b431 | 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 648bf6fe-766c-4361-996f-ce6a3395b431 | 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 648bf6fe-766c-4361-996f-ce6a3395b431 | grep heal | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = cacfbe7f-0d54-4726-aeee-11562901c2b0 ${stdout} Logs the given message with the given level. cacfbe7f-0d54-4726-aeee-11562901c2b0 ${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 648bf6fe-766c-4361-996f-ce6a3395b431 | grep heal | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = cacfbe7f-0d54-4726-aeee-11562901c2b0 ${stdout} Logs the given message with the given level. cacfbe7f-0d54-4726-aeee-11562901c2b0 ${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} = cacfbe7f-0d54-4726-aeee-11562901c2b0 ${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 cacfbe7f-0d54-4726-aeee-11562901c2b0 --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 cacfbe7f-0d54-4726-aeee-11562901c2b0 ${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 cacfbe7f-0d54-4726-aeee-11562901c2b0 --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 cacfbe7f-0d54-4726-aeee-11562901c2b0 ${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 cacfbe7f-0d54-4726-aeee-11562901c2b0 --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 cacfbe7f-0d54-4726-aeee-11562901c2b0 --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 85640686-20fc-4ce9-9e14-affa98b8c5a4 --literal | yq -r '.vdur[].interfaces[]."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.80 ${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.80 ] @{ip} @{ip_list} = [ 172.21.249.80 ] @{ip_list} Logs the given message with the given level. 172.21.249.80 ${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 85640686-20fc-4ce9-9e14-affa98b8c5a4 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 84b81d41-caeb-4e17-9f22-8e37be111f45 ${stdout} Logs the given message with the given level. 84b81d41-caeb-4e17-9f22-8e37be111f45 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 84b81d41-caeb-4e17-9f22-8e37be111f45 ${id} Logs the given message with the given level. 84b81d41-caeb-4e17-9f22-8e37be111f45 ${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 648bf6fe-766c-4361-996f-ce6a3395b431 | grep 648bf6fe-766c-4361-996f-ce6a3395b431 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 85640686-20fc-4ce9-9e14-affa98b8c5a4 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 85640686-20fc-4ce9-9e14-affa98b8c5a4 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 85640686-20fc-4ce9-9e14-affa98b8c5a4 @{vnf_list} @{vnf_id_list} = [ 85640686-20fc-4ce9-9e14-affa98b8c5a4 ] ${vnf_id} @{vnf_id_list} 85640686-20fc-4ce9-9e14-affa98b8c5a4 ${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 85640686-20fc-4ce9-9e14-affa98b8c5a4 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 84b81d41-caeb-4e17-9f22-8e37be111f45 ${stdout} Logs the given message with the given level. 84b81d41-caeb-4e17-9f22-8e37be111f45 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 84b81d41-caeb-4e17-9f22-8e37be111f45 @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ 84b81d41-caeb-4e17-9f22-8e37be111f45 ] ${id} @{vdu_ids} 84b81d41-caeb-4e17-9f22-8e37be111f45 ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. @{VIM_VDUS} Logs the given messages as separate entries using the INFO level. 4d04bc8f-c13b-469e-878c-80ee59f96ed8 84b81d41-caeb-4e17-9f22-8e37be111f45 Retrieve all VMs from the NS and stores them in VIM_VDUS. This is done again to guarantee that all objects are cleaned in the VIM in case the heal operation added new objects. cluster_heal daily heal_04 regression ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete heal_04 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+---------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+---------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ | fe2e4aa5-8bd5-405b-90f1-92f4bf2372ff | heal_04-autoheal-basic-1-autoheal_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.189 | ubuntu20.04 | autoheal_vnfd-VM-autoheal-basic-1-1-flv | | 84b81d41-caeb-4e17-9f22-8e37be111f45 | heal_04-autoheal-basic-1-autoheal_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.80 | ubuntu20.04 | autoheal_vnfd-VM-autoheal-basic-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+---------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep heal_04 2>&1'. ${rc} = 0 ${stdout} = heal_04 ${rc},${stdout} Logs the given message with the given level. 0,heal_04 ${stdout} ${ns} Fails if objects are equal after converting them to strings. heal_04 == heal_04 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+---------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+---------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ | fe2e4aa5-8bd5-405b-90f1-92f4bf2372ff | heal_04-autoheal-basic-1-autoheal_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.189 | ubuntu20.04 | autoheal_vnfd-VM-autoheal-basic-1-1-flv | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | ubuntu20.04 | osm.sanity | | da22e375-ac38-42cb-8d48-104309d9f31c | osm-v140-merge-296 | ACTIVE | osm-ext=172.21.249.167 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-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} 4d04bc8f-c13b-469e-878c-80ee59f96ed8 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 4d04bc8f-c13b-469e-878c-80ee59f96ed8 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 4d04bc8f-c13b-469e-878c-80ee59f96ed8 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 4d04bc8f-c13b-469e-878c-80ee59f96ed8 ${stdout} Logs the given message with the given level. No Server found for 4d04bc8f-c13b-469e-878c-80ee59f96ed8 ${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. 84b81d41-caeb-4e17-9f22-8e37be111f45 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 84b81d41-caeb-4e17-9f22-8e37be111f45 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 84b81d41-caeb-4e17-9f22-8e37be111f45 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 84b81d41-caeb-4e17-9f22-8e37be111f45 ${stdout} Logs the given message with the given level. No Server found for 84b81d41-caeb-4e17-9f22-8e37be111f45 ${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} = 912688 ${VIM_NAME} SEPARATOR=_ ${vim_name_prefix} ${rand} Catenates the given items together and returns the resulted string. ${VIM_NAME} = basic01_912688 ${VIM_NAME} Makes a variable available everywhere within the scope of the current suite. ${VIM_NAME} = basic01_912688 ${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_912688 --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_912688 --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} = f79faaa1-5515-4830-a0df-4fb205cbabd0 ${stdout} Logs the given message with the given level. f79faaa1-5515-4830-a0df-4fb205cbabd0 ${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} = f79faaa1-5515-4830-a0df-4fb205cbabd0 ${CREATED_VIM_ACCOUNT_ID} Makes a variable available everywhere within the scope of the current suite. ${CREATED_VIM_ACCOUNT_ID} = f79faaa1-5515-4830-a0df-4fb205cbabd0 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_912688 --k8s-nets '{"net1": "osm-ext"}' k8s02 --description "Robot cluster" 2>&1'. ${rc} = 0 ${stdout} = bbceaeb8-79f1-4e42-beb9-6151eabe0a12 ${stdout} Logs the given message with the given level. bbceaeb8-79f1-4e42-beb9-6151eabe0a12 ${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 | bbceaeb8-79f1-4e42-beb9-6151eabe0a12 | basic01_912688 | 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 | bbceaeb8-79f1-4e42-beb9-6151eabe0a12 | basic01_912688 | 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 | bbceaeb8-79f1-4e42-beb9-6151eabe0a12 | basic01_912688 | 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 | bbceaeb8-79f1-4e42-beb9-6151eabe0a12 | basic01_912688 | 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_912688 " | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = f79faaa1-5515-4830-a0df-4fb205cbabd0 ${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} = f79faaa1-5515-4830-a0df-4fb205cbabd0 ${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 f79faaa1-5515-4830-a0df-4fb205cbabd0 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 f79faaa1-5515-4830-a0df-4fb205cbabd0 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 f7b9a802-c362-4dc8-bd6d-449259aca2ce ${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} = f7b9a802-c362-4dc8-bd6d-449259aca2ce ${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 c0b421c5-9654-4249-bd58-5fe211fcae89 ${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} = c0b421c5-9654-4249-bd58-5fe211fcae89 ${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} = 5f5263af-7c7e-450c-ab9f-1c2855653552 ${stdout} Logs the given message with the given level. 5f5263af-7c7e-450c-ab9f-1c2855653552 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 5f5263af-7c7e-450c-ab9f-1c2855653552 ${ns_id} Logs the given message with the given level. 5f5263af-7c7e-450c-ab9f-1c2855653552 ${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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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="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 | 5f5263af-7c7e-450c-ab9f-1c2855653552 | 2024-04-14T02:50:11 | BUILDING | INSTANTIATING (4ef34271-6180-4a95-9359-36ad409345d3) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 5f5263af-7c7e-450c-ab9f-1c2855653552 | 2024-04-14T02:50:11 | BUILDING | INSTANTIATING (4ef34271-6180-4a95-9359-36ad409345d3) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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="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 | 5f5263af-7c7e-450c-ab9f-1c2855653552 | 2024-04-14T02:50:11 | BUILDING | INSTANTIATING (4ef34271-6180-4a95-9359-36ad409345d3) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 5f5263af-7c7e-450c-ab9f-1c2855653552 | 2024-04-14T02:50:11 | BUILDING | INSTANTIATING (4ef34271-6180-4a95-9359-36ad409345d3) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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="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 | 5f5263af-7c7e-450c-ab9f-1c2855653552 | 2024-04-14T02:50:11 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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="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 | 5f5263af-7c7e-450c-ab9f-1c2855653552 | 2024-04-14T02:50: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} = 5f5263af-7c7e-450c-ab9f-1c2855653552 ${id} Logs the given message with the given level. 5f5263af-7c7e-450c-ab9f-1c2855653552 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} = 5f5263af-7c7e-450c-ab9f-1c2855653552 ${stdout} Logs the given message with the given level. 5f5263af-7c7e-450c-ab9f-1c2855653552 ${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} = 5f5263af-7c7e-450c-ab9f-1c2855653552 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 5f5263af-7c7e-450c-ab9f-1c2855653552 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 5f5263af-7c7e-450c-ab9f-1c2855653552 | grep 5f5263af-7c7e-450c-ab9f-1c2855653552 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = 08419678-7559-4555-a201-9dbac188d2d1 ${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} = [ 08419678-7559-4555-a201-9dbac188d2d1 ] @{vdur} @{vnfr_list} = [ 08419678-7559-4555-a201-9dbac188d2d1 ] ${vnfr_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 08419678-7559-4555-a201-9dbac188d2d1 ${VNF_ID} ${vnfr_list}[0] Makes a variable available everywhere within the scope of the current suite. ${VNF_ID} = 08419678-7559-4555-a201-9dbac188d2d1 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} = 6492166e-d401-4f5d-819f-d7487061388a ${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 6492166e-d401-4f5d-819f-d7487061388a --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 6492166e-d401-4f5d-819f-d7487061388a ${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 6492166e-d401-4f5d-819f-d7487061388a --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 6492166e-d401-4f5d-819f-d7487061388a ${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 6492166e-d401-4f5d-819f-d7487061388a --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 6492166e-d401-4f5d-819f-d7487061388a ${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 6492166e-d401-4f5d-819f-d7487061388a --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 6492166e-d401-4f5d-819f-d7487061388a --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} = 6492166e-d401-4f5d-819f-d7487061388a ${ns_op_id} Logs the given message with the given level. 6492166e-d401-4f5d-819f-d7487061388a 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 08419678-7559-4555-a201-9dbac188d2d1 --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} = 718ff8eb-9990-46a1-b275-f9a6ca1c7b36 ${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 718ff8eb-9990-46a1-b275-f9a6ca1c7b36 --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 718ff8eb-9990-46a1-b275-f9a6ca1c7b36 ${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 718ff8eb-9990-46a1-b275-f9a6ca1c7b36 --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 718ff8eb-9990-46a1-b275-f9a6ca1c7b36 --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} = 718ff8eb-9990-46a1-b275-f9a6ca1c7b36 ${ns_op_id} Logs the given message with the given level. 718ff8eb-9990-46a1-b275-f9a6ca1c7b36 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 08419678-7559-4555-a201-9dbac188d2d1 --kdu ldap | yq -r .config.replicaCount 2>&1'. ${rc} = 0 ${stdout} = null ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${return} '${stdout}' == 'null' ${EMPTY} ${stdout} Sets variable based on the given condition. ${return} = ${return} ${count} = ${count} Logs the given message with the given level. ${count} Verifies that the given item is empty. Length is 0 Check that the number of replcias after the rollback is the expected one. azure cluster_k8s daily k8s_04 regression sanity verify ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete ldap 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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 | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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 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 5ab508f4-3846-474b-b221-08605e20c99c ${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} = 5ab508f4-3846-474b-b221-08605e20c99c ${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 d289fb82-1c11-4b68-ad3d-de30f1a286d2 ${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} = d289fb82-1c11-4b68-ad3d-de30f1a286d2 ${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} = c133f094-6d57-4162-ab5e-4b563211f5df ${stdout} Logs the given message with the given level. c133f094-6d57-4162-ab5e-4b563211f5df ${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} = c133f094-6d57-4162-ab5e-4b563211f5df ${created_vim_account_id} Logs the given message with the given level. c133f094-6d57-4162-ab5e-4b563211f5df 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} = 25e88423-8d19-4cc0-b950-eba987b8a319 ${stdout} Logs the given message with the given level. 25e88423-8d19-4cc0-b950-eba987b8a319 ${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 | 25e88423-8d19-4cc0-b950-eba987b8a319 | 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 | 25e88423-8d19-4cc0-b950-eba987b8a319 | 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 | 25e88423-8d19-4cc0-b950-eba987b8a319 | 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 | 25e88423-8d19-4cc0-b950-eba987b8a319 | 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} = 50ac5d58-c117-4538-9d65-3d184f714fad ${stdout} Logs the given message with the given level. 50ac5d58-c117-4538-9d65-3d184f714fad ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 50ac5d58-c117-4538-9d65-3d184f714fad ${ns_id} Logs the given message with the given level. 50ac5d58-c117-4538-9d65-3d184f714fad ${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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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="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 | 50ac5d58-c117-4538-9d65-3d184f714fad | 2024-04-14T02:54:06 | BUILDING | INSTANTIATING (215a0f34-e7a8-45eb-a0f7-1ab16f21dc68) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 50ac5d58-c117-4538-9d65-3d184f714fad | 2024-04-14T02:54:06 | BUILDING | INSTANTIATING (215a0f34-e7a8-45eb-a0f7-1ab16f21dc68) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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="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 | 50ac5d58-c117-4538-9d65-3d184f714fad | 2024-04-14T02:54:06 | BUILDING | INSTANTIATING (215a0f34-e7a8-45eb-a0f7-1ab16f21dc68) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 50ac5d58-c117-4538-9d65-3d184f714fad | 2024-04-14T02:54:06 | BUILDING | INSTANTIATING (215a0f34-e7a8-45eb-a0f7-1ab16f21dc68) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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="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 | 50ac5d58-c117-4538-9d65-3d184f714fad | 2024-04-14T02:54:06 | 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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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="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 | 50ac5d58-c117-4538-9d65-3d184f714fad | 2024-04-14T02:54:06 | 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} = 50ac5d58-c117-4538-9d65-3d184f714fad ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 50ac5d58-c117-4538-9d65-3d184f714fad 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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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 | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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 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 bdfc0663-f6ea-4a78-93d5-0e82cd4a5eb7 ${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} = bdfc0663-f6ea-4a78-93d5-0e82cd4a5eb7 ${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 3a551bac-49a8-4452-b04c-b549bf63964a ${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} = 3a551bac-49a8-4452-b04c-b549bf63964a ${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} = 045647c9-187e-4f02-b388-4f280179d4cd ${rc},${stdout} Logs the given message with the given level. 0,045647c9-187e-4f02-b388-4f280179d4cd ${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} = 22649f2c-7e1a-4e69-86cf-7c5afc9ad978 ${stdout} Logs the given message with the given level. 22649f2c-7e1a-4e69-86cf-7c5afc9ad978 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 22649f2c-7e1a-4e69-86cf-7c5afc9ad978 ${ns_id} Logs the given message with the given level. 22649f2c-7e1a-4e69-86cf-7c5afc9ad978 ${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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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="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 | 22649f2c-7e1a-4e69-86cf-7c5afc9ad978 | 2024-04-14T02:55:59 | BUILDING | INSTANTIATING (04290e2b-f7e9-47a9-89e3-eb55ea33b93a) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 22649f2c-7e1a-4e69-86cf-7c5afc9ad978 | 2024-04-14T02:55:59 | BUILDING | INSTANTIATING (04290e2b-f7e9-47a9-89e3-eb55ea33b93a) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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="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 | 22649f2c-7e1a-4e69-86cf-7c5afc9ad978 | 2024-04-14T02:55:59 | BUILDING | INSTANTIATING (04290e2b-f7e9-47a9-89e3-eb55ea33b93a) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 22649f2c-7e1a-4e69-86cf-7c5afc9ad978 | 2024-04-14T02:55:59 | BUILDING | INSTANTIATING (04290e2b-f7e9-47a9-89e3-eb55ea33b93a) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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="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 | 22649f2c-7e1a-4e69-86cf-7c5afc9ad978 | 2024-04-14T02:55:59 | BUILDING | INSTANTIATING (04290e2b-f7e9-47a9-89e3-eb55ea33b93a) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 22649f2c-7e1a-4e69-86cf-7c5afc9ad978 | 2024-04-14T02:55:59 | BUILDING | INSTANTIATING (04290e2b-f7e9-47a9-89e3-eb55ea33b93a) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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="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 | 22649f2c-7e1a-4e69-86cf-7c5afc9ad978 | 2024-04-14T02:55:59 | 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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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="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 | 22649f2c-7e1a-4e69-86cf-7c5afc9ad978 | 2024-04-14T02:55:59 | 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} = 22649f2c-7e1a-4e69-86cf-7c5afc9ad978 ${id} Logs the given message with the given level. 22649f2c-7e1a-4e69-86cf-7c5afc9ad978 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} = 22649f2c-7e1a-4e69-86cf-7c5afc9ad978 ${stdout} Logs the given message with the given level. 22649f2c-7e1a-4e69-86cf-7c5afc9ad978 ${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} = 22649f2c-7e1a-4e69-86cf-7c5afc9ad978 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 22649f2c-7e1a-4e69-86cf-7c5afc9ad978 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 22649f2c-7e1a-4e69-86cf-7c5afc9ad978 | grep 22649f2c-7e1a-4e69-86cf-7c5afc9ad978 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = 012c3a32-98bb-47d6-8a5c-22f459606ae5 ${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} = [ 012c3a32-98bb-47d6-8a5c-22f459606ae5 ] @{vdur} @{vnfr_list} = [ 012c3a32-98bb-47d6-8a5c-22f459606ae5 ] ${vnfr_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 012c3a32-98bb-47d6-8a5c-22f459606ae5 ${VNF_ID} ${vnfr_list}[0] Makes a variable available everywhere within the scope of the current suite. ${VNF_ID} = 012c3a32-98bb-47d6-8a5c-22f459606ae5 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} = cc7b8762-5f89-42a7-9ab7-42bba84e7ec5 ${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 cc7b8762-5f89-42a7-9ab7-42bba84e7ec5 --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 cc7b8762-5f89-42a7-9ab7-42bba84e7ec5 ${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 cc7b8762-5f89-42a7-9ab7-42bba84e7ec5 --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 cc7b8762-5f89-42a7-9ab7-42bba84e7ec5 ${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 cc7b8762-5f89-42a7-9ab7-42bba84e7ec5 --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 cc7b8762-5f89-42a7-9ab7-42bba84e7ec5 --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} = cc7b8762-5f89-42a7-9ab7-42bba84e7ec5 ${ns_op_id} Logs the given message with the given level. cc7b8762-5f89-42a7-9ab7-42bba84e7ec5 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 012c3a32-98bb-47d6-8a5c-22f459606ae5 --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} = ccc841c0-41a8-43dc-ae19-5c84d2683623 ${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 ccc841c0-41a8-43dc-ae19-5c84d2683623 --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 ccc841c0-41a8-43dc-ae19-5c84d2683623 ${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 ccc841c0-41a8-43dc-ae19-5c84d2683623 --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 ccc841c0-41a8-43dc-ae19-5c84d2683623 --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} = ccc841c0-41a8-43dc-ae19-5c84d2683623 ${ns_op_id} Logs the given message with the given level. ccc841c0-41a8-43dc-ae19-5c84d2683623 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 012c3a32-98bb-47d6-8a5c-22f459606ae5 --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} = f01c040b-5f02-443e-a739-853d8f8baffe ${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 f01c040b-5f02-443e-a739-853d8f8baffe --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 f01c040b-5f02-443e-a739-853d8f8baffe ${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 f01c040b-5f02-443e-a739-853d8f8baffe --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 f01c040b-5f02-443e-a739-853d8f8baffe ${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 f01c040b-5f02-443e-a739-853d8f8baffe --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 f01c040b-5f02-443e-a739-853d8f8baffe ${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 f01c040b-5f02-443e-a739-853d8f8baffe --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 f01c040b-5f02-443e-a739-853d8f8baffe --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} = f01c040b-5f02-443e-a739-853d8f8baffe ${ns_op_id} Logs the given message with the given level. f01c040b-5f02-443e-a739-853d8f8baffe 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 012c3a32-98bb-47d6-8a5c-22f459606ae5 --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} = ab95cbdf-ec06-4dfb-947d-d09281acd30e ${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 ab95cbdf-ec06-4dfb-947d-d09281acd30e --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 ab95cbdf-ec06-4dfb-947d-d09281acd30e ${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 ab95cbdf-ec06-4dfb-947d-d09281acd30e --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 ab95cbdf-ec06-4dfb-947d-d09281acd30e --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} = ab95cbdf-ec06-4dfb-947d-d09281acd30e ${ns_op_id} Logs the given message with the given level. ab95cbdf-ec06-4dfb-947d-d09281acd30e 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 012c3a32-98bb-47d6-8a5c-22f459606ae5 --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 ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------+--------+----------------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------+--------+----------------------------------------------------------------+-------------+-------------------------+ | 777c74d5-8a82-4adb-9376-1134e976a95b | k8s_05-k8s_proxy-vnf2-mgmtVM-0 | ACTIVE | k8s_05-k8s_proxy-datanet=192.168.57.88; osm-ext=172.21.248.190 | ubuntu18.04 | simple_requires-1-1-flv | | a8b30c87-b716-4e8d-ae7e-b94d797bfec4 | k8s_05-k8s_proxy-vnf1-mgmtVM-0 | ACTIVE | k8s_05-k8s_proxy-datanet=192.168.57.53; osm-ext=172.21.249.92 | ubuntu18.04 | simple_requires-1-1-flv | | 6fd09770-36b1-4017-b42e-c03956d025fa | osm-v150-merge-119 | ACTIVE | osm-ext=172.21.248.219 | ubuntu22.04 | osm.sanity | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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 ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------+--------+----------------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------+--------+----------------------------------------------------------------+-------------+-------------------------+ | 777c74d5-8a82-4adb-9376-1134e976a95b | k8s_05-k8s_proxy-vnf2-mgmtVM-0 | ACTIVE | k8s_05-k8s_proxy-datanet=192.168.57.88; osm-ext=172.21.248.190 | ubuntu18.04 | simple_requires-1-1-flv | | a8b30c87-b716-4e8d-ae7e-b94d797bfec4 | k8s_05-k8s_proxy-vnf1-mgmtVM-0 | ACTIVE | k8s_05-k8s_proxy-datanet=192.168.57.53; osm-ext=172.21.249.92 | ubuntu18.04 | simple_requires-1-1-flv | | 6fd09770-36b1-4017-b42e-c03956d025fa | osm-v150-merge-119 | ACTIVE | osm-ext=172.21.248.219 | ubuntu22.04 | osm.sanity | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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 4c68e3a6-0e42-482e-ab3e-cd6f38df6035 ${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} = 4c68e3a6-0e42-482e-ab3e-cd6f38df6035 ${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 60cc528b-6ffe-4cde-9f55-bac5d7ab76d0 ${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} = 60cc528b-6ffe-4cde-9f55-bac5d7ab76d0 ${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} = 0985afe4-9e15-4200-827c-1f735548095b ${stdout} Logs the given message with the given level. 0985afe4-9e15-4200-827c-1f735548095b ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 0985afe4-9e15-4200-827c-1f735548095b ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 0985afe4-9e15-4200-827c-1f735548095b 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 0985afe4-9e15-4200-827c-1f735548095b | grep instantiate | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = 9ace4906-0f47-4226-add4-d3acff07d57d ${stdout} Logs the given message with the given level. 9ace4906-0f47-4226-add4-d3acff07d57d ${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} = 9ace4906-0f47-4226-add4-d3acff07d57d ${OP_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${OP_ID} = 9ace4906-0f47-4226-add4-d3acff07d57d 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 9ace4906-0f47-4226-add4-d3acff07d57d --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 9ace4906-0f47-4226-add4-d3acff07d57d --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 ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------+--------+----------------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------+--------+----------------------------------------------------------------+-------------+-------------------------+ | d1354ffd-aaa3-4ae5-948c-b7d02a417c03 | lcmop_01_cancel_-simple-mgmtVM-0 | BUILD | | ubuntu18.04 | mgmtVM-simple-1-flv-62 | | 777c74d5-8a82-4adb-9376-1134e976a95b | k8s_05-k8s_proxy-vnf2-mgmtVM-0 | ACTIVE | k8s_05-k8s_proxy-datanet=192.168.57.88; osm-ext=172.21.248.190 | ubuntu18.04 | simple_requires-1-1-flv | | a8b30c87-b716-4e8d-ae7e-b94d797bfec4 | k8s_05-k8s_proxy-vnf1-mgmtVM-0 | ACTIVE | k8s_05-k8s_proxy-datanet=192.168.57.53; osm-ext=172.21.249.92 | ubuntu18.04 | simple_requires-1-1-flv | | 6fd09770-36b1-4017-b42e-c03956d025fa | osm-v150-merge-119 | ACTIVE | osm-ext=172.21.248.219 | ubuntu22.04 | osm.sanity | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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 ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------+--------+----------------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------+--------+----------------------------------------------------------------+-------------+-------------------------+ | 777c74d5-8a82-4adb-9376-1134e976a95b | k8s_05-k8s_proxy-vnf2-mgmtVM-0 | ACTIVE | k8s_05-k8s_proxy-datanet=192.168.57.88; osm-ext=172.21.248.190 | ubuntu18.04 | simple_requires-1-1-flv | | a8b30c87-b716-4e8d-ae7e-b94d797bfec4 | k8s_05-k8s_proxy-vnf1-mgmtVM-0 | ACTIVE | k8s_05-k8s_proxy-datanet=192.168.57.53; osm-ext=172.21.249.92 | ubuntu18.04 | simple_requires-1-1-flv | | 6fd09770-36b1-4017-b42e-c03956d025fa | osm-v150-merge-119 | ACTIVE | osm-ext=172.21.248.219 | ubuntu22.04 | osm.sanity | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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} = 66084d10-7394-468e-adbc-2b647ec0ae18 ${stdout} Logs the given message with the given level. 66084d10-7394-468e-adbc-2b647ec0ae18 ${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} = defd1136-8c74-41f5-ac6f-47cf6b948138 ${stdout} Logs the given message with the given level. defd1136-8c74-41f5-ac6f-47cf6b948138 ${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} = d1cdf527-2350-49f9-a19f-d4fce23bea04 ${rc},${stdout} Logs the given message with the given level. 0,d1cdf527-2350-49f9-a19f-d4fce23bea04 ${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 d685727b-33de-46db-9231-4dad71f2da72 ${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 (66084d10-7394-468e-adbc-2b647ec0ae18)" } ${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 fa605c39-4dea-4a91-addb-b257f036360b ${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 9f6d81cb-8ebb-43fe-9c28-c4cf8dcbcb6e ${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 2189d3bb-39d5-4c5a-b48f-ed8a2e68d318 ${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 1a96b4a1-ddef-48a7-bb10-8ebc25af42d7 ${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 (66084d10-7394-468e-adbc-2b647ec0ae18)" } ${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 7ea29b01-435b-41b9-911b-d97d5519c7cc ${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 (defd1136-8c74-41f5-ac6f-47cf6b948138)" } ${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' (defd1136-8c74-41f5-ac6f-47cf6b948138) 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' (defd1136-8c74-41f5-ac6f-47cf6b948138) 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.248.26 == '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 a621fb55-521f-447e-ad22-0a6219a1e419 ${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} = a621fb55-521f-447e-ad22-0a6219a1e419 ${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 a6e71e51-441f-4a82-8281-838936cc13b4 ${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} = a6e71e51-441f-4a82-8281-838936cc13b4 ${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} = 84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${stdout} Logs the given message with the given level. 84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${ns_id} Logs the given message with the given level. 84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 6fd09770-36b1-4017-b42e-c03956d025fa | osm-v150-merge-119 | ACTIVE | osm-ext=172.21.248.219 | ubuntu22.04 | osm.sanity | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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 | 84a770ac-bc67-4cd7-ad4c-2562caeaaaec | 2024-04-14T03:02:51 | BUILDING | INSTANTIATING (bf386780-f940-4a49-8688-a038eeecba98) | N/A | +---------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 84a770ac-bc67-4cd7-ad4c-2562caeaaaec | 2024-04-14T03:02:51 | BUILDING | INSTANTIATING (bf386780-f940-4a49-8688-a038eeecba98) | N/A | +---------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 122c3cd3-10a9-4c0b-8e92-91b080204b5f | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.206 | ubuntu20.04 | simple_requires-1-1-flv | | 6fd09770-36b1-4017-b42e-c03956d025fa | osm-v150-merge-119 | ACTIVE | osm-ext=172.21.248.219 | ubuntu22.04 | osm.sanity | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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 | 84a770ac-bc67-4cd7-ad4c-2562caeaaaec | 2024-04-14T03:02:51 | 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 | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 122c3cd3-10a9-4c0b-8e92-91b080204b5f | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.206 | ubuntu20.04 | simple_requires-1-1-flv | | 6fd09770-36b1-4017-b42e-c03956d025fa | osm-v150-merge-119 | ACTIVE | osm-ext=172.21.248.219 | ubuntu22.04 | osm.sanity | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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 | 84a770ac-bc67-4cd7-ad4c-2562caeaaaec | 2024-04-14T03:02:51 | 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} = 84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 84a770ac-bc67-4cd7-ad4c-2562caeaaaec 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=84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${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=84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${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=84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${param_name} = ns_id ${param_value} = 84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=84a770ac-bc67-4cd7-ad4c-2562caeaaaec,ns_id,84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="84a770ac-bc67-4cd7-ad4c-2562caeaaaec", ${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.248.26:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f35381dd750>, 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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2284a770ac-bc67-4cd7-ad4c-2562caeaaaec%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2284a770ac-bc67-4cd7-ad4c-2562caeaaaec%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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2284a770ac-bc67-4cd7-ad4c-2562caeaaaec%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 14 Apr 2024 03:03: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=84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${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=84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${param_name} = ns_id ${param_value} = 84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=84a770ac-bc67-4cd7-ad4c-2562caeaaaec,ns_id,84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="84a770ac-bc67-4cd7-ad4c-2562caeaaaec", ${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.248.26:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f353a938190>, 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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2284a770ac-bc67-4cd7-ad4c-2562caeaaaec%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2284a770ac-bc67-4cd7-ad4c-2562caeaaaec%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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2284a770ac-bc67-4cd7-ad4c-2562caeaaaec%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 14 Apr 2024 03:04: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=84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${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=84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${param_name} = ns_id ${param_value} = 84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=84a770ac-bc67-4cd7-ad4c-2562caeaaaec,ns_id,84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="84a770ac-bc67-4cd7-ad4c-2562caeaaaec", ${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.248.26:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f35381b6e30>, 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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2284a770ac-bc67-4cd7-ad4c-2562caeaaaec%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2284a770ac-bc67-4cd7-ad4c-2562caeaaaec%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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2284a770ac-bc67-4cd7-ad4c-2562caeaaaec%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 14 Apr 2024 03:05: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=84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${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=84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${param_name} = ns_id ${param_value} = 84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=84a770ac-bc67-4cd7-ad4c-2562caeaaaec,ns_id,84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="84a770ac-bc67-4cd7-ad4c-2562caeaaaec", ${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.248.26:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f35381dda80>, 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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2284a770ac-bc67-4cd7-ad4c-2562caeaaaec%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2284a770ac-bc67-4cd7-ad4c-2562caeaaaec%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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2284a770ac-bc67-4cd7-ad4c-2562caeaaaec%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 14 Apr 2024 03:06: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=84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${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=84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${param_name} = ns_id ${param_value} = 84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=84a770ac-bc67-4cd7-ad4c-2562caeaaaec,ns_id,84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="84a770ac-bc67-4cd7-ad4c-2562caeaaaec", ${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.248.26:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f35381b6080>, 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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2284a770ac-bc67-4cd7-ad4c-2562caeaaaec%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2284a770ac-bc67-4cd7-ad4c-2562caeaaaec%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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2284a770ac-bc67-4cd7-ad4c-2562caeaaaec%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 14 Apr 2024 03:07: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=84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${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=84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${param_name} = ns_id ${param_value} = 84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=84a770ac-bc67-4cd7-ad4c-2562caeaaaec,ns_id,84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="84a770ac-bc67-4cd7-ad4c-2562caeaaaec", ${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.248.26:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f3538c82d10>, 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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2284a770ac-bc67-4cd7-ad4c-2562caeaaaec%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2284a770ac-bc67-4cd7-ad4c-2562caeaaaec%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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2284a770ac-bc67-4cd7-ad4c-2562caeaaaec%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 14 Apr 2024 03:08: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=84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${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=84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${param_name} = ns_id ${param_value} = 84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=84a770ac-bc67-4cd7-ad4c-2562caeaaaec,ns_id,84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="84a770ac-bc67-4cd7-ad4c-2562caeaaaec", ${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.248.26:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f353a99ffd0>, 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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2284a770ac-bc67-4cd7-ad4c-2562caeaaaec%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2284a770ac-bc67-4cd7-ad4c-2562caeaaaec%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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2284a770ac-bc67-4cd7-ad4c-2562caeaaaec%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 14 Apr 2024 03:09:30 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=84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${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=84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${param_name} = ns_id ${param_value} = 84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=84a770ac-bc67-4cd7-ad4c-2562caeaaaec,ns_id,84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="84a770ac-bc67-4cd7-ad4c-2562caeaaaec", ${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.248.26:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f3538255bd0>, 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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2284a770ac-bc67-4cd7-ad4c-2562caeaaaec%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2284a770ac-bc67-4cd7-ad4c-2562caeaaaec%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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2284a770ac-bc67-4cd7-ad4c-2562caeaaaec%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 14 Apr 2024 03:10:30 GMT', 'Content-Length': '360'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_cpu_utilization","job":"airflow_osm_vm_metrics_c20f510d-aeb3-434a-a238-18ec3c4eeedc","metric_id":"vnf_cpu_util","ns_id":"84a770ac-bc67-4cd7-ad4c-2562caeaaaec","project_id":"631aecb9-5952-4e8c-b924-78254cf6fa87","vdu_id":"hackfest_basic_metrics-VM","vdu_name":"sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0","vim_id":"c20f510d-aeb3-434a-a238-18ec3c4eeedc","vm_id":"122c3cd3-10a9-4c0b-8e92-91b080204b5f","vnf_member_index":"vnf"},"value":[1713064230.051,"0.3333333333333333"]}]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': [{'metric': {'__name__': 'osm_cpu_utilization', 'job': 'airflow_osm_vm_metrics_c20f510d-aeb3-434a-a238-18ec3c4eeedc', '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_c20f510d-aeb3-434a-a238-18ec3c4eeedc', 'metric_id': 'vnf_cpu_util', 'ns_id': '84a770ac-bc67-4cd7-ad4c-2562caeaaaec', '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.3333333333333333 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=84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${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=84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${param_name} = ns_id ${param_value} = 84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=84a770ac-bc67-4cd7-ad4c-2562caeaaaec,ns_id,84a770ac-bc67-4cd7-ad4c-2562caeaaaec ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="84a770ac-bc67-4cd7-ad4c-2562caeaaaec", ${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.248.26:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f353807c9a0>, 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.248.26:9091/api/v1/query?query=osm_average_memory_utilization%7Bns_id=%2284a770ac-bc67-4cd7-ad4c-2562caeaaaec%22,%7D path_url=/api/v1/query?query=osm_average_memory_utilization%7Bns_id=%2284a770ac-bc67-4cd7-ad4c-2562caeaaaec%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.248.26:9091/api/v1/query?query=osm_average_memory_utilization%7Bns_id=%2284a770ac-bc67-4cd7-ad4c-2562caeaaaec%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 14 Apr 2024 03:10:30 GMT', 'Content-Length': '370'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_average_memory_utilization","job":"airflow_osm_vm_metrics_c20f510d-aeb3-434a-a238-18ec3c4eeedc","metric_id":"vnf_memory_util","ns_id":"84a770ac-bc67-4cd7-ad4c-2562caeaaaec","project_id":"631aecb9-5952-4e8c-b924-78254cf6fa87","vdu_id":"hackfest_basic_metrics-VM","vdu_name":"sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0","vim_id":"c20f510d-aeb3-434a-a238-18ec3c4eeedc","vm_id":"122c3cd3-10a9-4c0b-8e92-91b080204b5f","vnf_member_index":"vnf"},"value":[1713064230.075,"270.8515625"]}]}} ${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_c20f510d-aeb3-434a-a238-18ec3c4eeedc', '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_c20f510d-aeb3-434a-a238-18ec3c4eeedc', 'metric_id': 'vnf_memory_util', 'ns_id': '84a770ac-bc67-4cd7-ad4c-2562c... ${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} = 270.8515625 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 | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 122c3cd3-10a9-4c0b-8e92-91b080204b5f | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.206 | ubuntu20.04 | simple_requires-1-1-flv | | 6fd09770-36b1-4017-b42e-c03956d025fa | osm-v150-merge-119 | ACTIVE | osm-ext=172.21.248.219 | ubuntu22.04 | osm.sanity | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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 | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 6fd09770-36b1-4017-b42e-c03956d025fa | osm-v150-merge-119 | ACTIVE | osm-ext=172.21.248.219 | ubuntu22.04 | osm.sanity | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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.248.26 == '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 5a0b8d35-55ea-4c3e-a0b8-f7cf8ae4baa4 ${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} = 5a0b8d35-55ea-4c3e-a0b8-f7cf8ae4baa4 ${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 58a4780e-62e9-4ae8-9dab-4d520d131eeb ${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} = 58a4780e-62e9-4ae8-9dab-4d520d131eeb ${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} = 92002443-f804-4d5d-9e90-d4d0d6677639 ${stdout} Logs the given message with the given level. 92002443-f804-4d5d-9e90-d4d0d6677639 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 92002443-f804-4d5d-9e90-d4d0d6677639 ${ns_id} Logs the given message with the given level. 92002443-f804-4d5d-9e90-d4d0d6677639 ${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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 6fd09770-36b1-4017-b42e-c03956d025fa | osm-v150-merge-119 | ACTIVE | osm-ext=172.21.248.219 | ubuntu22.04 | osm.sanity | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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 | 92002443-f804-4d5d-9e90-d4d0d6677639 | 2024-04-14T03:11:06 | BUILDING | INSTANTIATING (4b516026-5068-4b04-a466-2a6ba65f7dbc) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 92002443-f804-4d5d-9e90-d4d0d6677639 | 2024-04-14T03:11:06 | BUILDING | INSTANTIATING (4b516026-5068-4b04-a466-2a6ba65f7dbc) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | 00d106b4-c5dc-4c1a-b85b-98d57f197925 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.214 | ubuntu20.04 | simple_requires-1-1-flv | | 6fd09770-36b1-4017-b42e-c03956d025fa | osm-v150-merge-119 | ACTIVE | osm-ext=172.21.248.219 | ubuntu22.04 | osm.sanity | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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 | 92002443-f804-4d5d-9e90-d4d0d6677639 | 2024-04-14T03:11:06 | 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 | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | 00d106b4-c5dc-4c1a-b85b-98d57f197925 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.214 | ubuntu20.04 | simple_requires-1-1-flv | | 6fd09770-36b1-4017-b42e-c03956d025fa | osm-v150-merge-119 | ACTIVE | osm-ext=172.21.248.219 | ubuntu22.04 | osm.sanity | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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 | 92002443-f804-4d5d-9e90-d4d0d6677639 | 2024-04-14T03:11:06 | 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} = 92002443-f804-4d5d-9e90-d4d0d6677639 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 92002443-f804-4d5d-9e90-d4d0d6677639 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 92002443-f804-4d5d-9e90-d4d0d6677639 | grep 92002443-f804-4d5d-9e90-d4d0d6677639 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = faeb1f20-0707-4393-a913-3f75f8c3e37e ${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} = [ faeb1f20-0707-4393-a913-3f75f8c3e37e ] @{vdur} @{vnfr_list} = [ faeb1f20-0707-4393-a913-3f75f8c3e37e ] ${vnfr_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: faeb1f20-0707-4393-a913-3f75f8c3e37e ${VNF_ID} ${vnfr_list}[0] Makes a variable available everywhere within the scope of the current suite. ${VNF_ID} = faeb1f20-0707-4393-a913-3f75f8c3e37e 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 92002443-f804-4d5d-9e90-d4d0d6677639 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.214 ${stdout} Logs the given message with the given level. 172.21.249.214 ${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.214 ${ip_addr} Logs the given message with the given level. 172.21.249.214 ${VNF_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. ${VNF_IP_ADDR} = 172.21.249.214 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=92002443-f804-4d5d-9e90-d4d0d6677639 ${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=92002443-f804-4d5d-9e90-d4d0d6677639 ${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=92002443-f804-4d5d-9e90-d4d0d6677639 ${param_name} = ns_id ${param_value} = 92002443-f804-4d5d-9e90-d4d0d6677639 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=92002443-f804-4d5d-9e90-d4d0d6677639,ns_id,92002443-f804-4d5d-9e90-d4d0d6677639 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="92002443-f804-4d5d-9e90-d4d0d6677639", ${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.248.26:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f35382089d0>, 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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2292002443-f804-4d5d-9e90-d4d0d6677639%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2292002443-f804-4d5d-9e90-d4d0d6677639%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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2292002443-f804-4d5d-9e90-d4d0d6677639%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 14 Apr 2024 03:11:48 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=92002443-f804-4d5d-9e90-d4d0d6677639 ${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=92002443-f804-4d5d-9e90-d4d0d6677639 ${param_name} = ns_id ${param_value} = 92002443-f804-4d5d-9e90-d4d0d6677639 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=92002443-f804-4d5d-9e90-d4d0d6677639,ns_id,92002443-f804-4d5d-9e90-d4d0d6677639 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="92002443-f804-4d5d-9e90-d4d0d6677639", ${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.248.26:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f3538208400>, 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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2292002443-f804-4d5d-9e90-d4d0d6677639%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2292002443-f804-4d5d-9e90-d4d0d6677639%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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2292002443-f804-4d5d-9e90-d4d0d6677639%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 14 Apr 2024 03:12:48 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=92002443-f804-4d5d-9e90-d4d0d6677639 ${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=92002443-f804-4d5d-9e90-d4d0d6677639 ${param_name} = ns_id ${param_value} = 92002443-f804-4d5d-9e90-d4d0d6677639 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=92002443-f804-4d5d-9e90-d4d0d6677639,ns_id,92002443-f804-4d5d-9e90-d4d0d6677639 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="92002443-f804-4d5d-9e90-d4d0d6677639", ${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.248.26:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f353807caf0>, 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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2292002443-f804-4d5d-9e90-d4d0d6677639%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2292002443-f804-4d5d-9e90-d4d0d6677639%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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2292002443-f804-4d5d-9e90-d4d0d6677639%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 14 Apr 2024 03:13:48 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=92002443-f804-4d5d-9e90-d4d0d6677639 ${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=92002443-f804-4d5d-9e90-d4d0d6677639 ${param_name} = ns_id ${param_value} = 92002443-f804-4d5d-9e90-d4d0d6677639 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=92002443-f804-4d5d-9e90-d4d0d6677639,ns_id,92002443-f804-4d5d-9e90-d4d0d6677639 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="92002443-f804-4d5d-9e90-d4d0d6677639", ${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.248.26:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f353807f8e0>, 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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2292002443-f804-4d5d-9e90-d4d0d6677639%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2292002443-f804-4d5d-9e90-d4d0d6677639%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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2292002443-f804-4d5d-9e90-d4d0d6677639%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 14 Apr 2024 03:14:48 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=92002443-f804-4d5d-9e90-d4d0d6677639 ${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=92002443-f804-4d5d-9e90-d4d0d6677639 ${param_name} = ns_id ${param_value} = 92002443-f804-4d5d-9e90-d4d0d6677639 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=92002443-f804-4d5d-9e90-d4d0d6677639,ns_id,92002443-f804-4d5d-9e90-d4d0d6677639 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="92002443-f804-4d5d-9e90-d4d0d6677639", ${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.248.26:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f353807de10>, 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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2292002443-f804-4d5d-9e90-d4d0d6677639%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2292002443-f804-4d5d-9e90-d4d0d6677639%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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2292002443-f804-4d5d-9e90-d4d0d6677639%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 14 Apr 2024 03:15:48 GMT', 'Content-Length': '358'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_cpu_utilization","job":"airflow_osm_vm_metrics_c20f510d-aeb3-434a-a238-18ec3c4eeedc","metric_id":"vnf_cpu_util","ns_id":"92002443-f804-4d5d-9e90-d4d0d6677639","project_id":"631aecb9-5952-4e8c-b924-78254cf6fa87","vdu_id":"hackfest_basic_metrics-VM","vdu_name":"sa_02-vnf-hackfest_basic_metrics-VM-0","vim_id":"c20f510d-aeb3-434a-a238-18ec3c4eeedc","vm_id":"00d106b4-c5dc-4c1a-b85b-98d57f197925","vnf_member_index":"vnf"},"value":[1713064548.175,"0.35833333333333334"]}]}} ${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_c20f510d-aeb3-434a-a238-18ec3c4eeedc', '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_c20f510d-aeb3-434a-a238-18ec3c4eeedc', 'metric_id': 'vnf_cpu_util', 'ns_id': '92002443-f804-4d5d-9e90-d4d0d6677639', '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.35833333333333334 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.249.214: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 14 03:15:48 UTC 2024 System load: 0.12 Processes: 104 Usage of /: 14.2% of 9.52GB Users logged in: 0 Memory usage: 20% IPv4 address for ens3: 172.21.249.214 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=92002443-f804-4d5d-9e90-d4d0d6677639 ${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=92002443-f804-4d5d-9e90-d4d0d6677639 ${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=92002443-f804-4d5d-9e90-d4d0d6677639 ${param_name} = ns_id ${param_value} = 92002443-f804-4d5d-9e90-d4d0d6677639 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=92002443-f804-4d5d-9e90-d4d0d6677639,ns_id,92002443-f804-4d5d-9e90-d4d0d6677639 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="92002443-f804-4d5d-9e90-d4d0d6677639", ${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.248.26:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f35381dc4c0>, 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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2292002443-f804-4d5d-9e90-d4d0d6677639%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2292002443-f804-4d5d-9e90-d4d0d6677639%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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2292002443-f804-4d5d-9e90-d4d0d6677639%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 14 Apr 2024 03:15:50 GMT', 'Content-Length': '358'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_cpu_utilization","job":"airflow_osm_vm_metrics_c20f510d-aeb3-434a-a238-18ec3c4eeedc","metric_id":"vnf_cpu_util","ns_id":"92002443-f804-4d5d-9e90-d4d0d6677639","project_id":"631aecb9-5952-4e8c-b924-78254cf6fa87","vdu_id":"hackfest_basic_metrics-VM","vdu_name":"sa_02-vnf-hackfest_basic_metrics-VM-0","vim_id":"c20f510d-aeb3-434a-a238-18ec3c4eeedc","vm_id":"00d106b4-c5dc-4c1a-b85b-98d57f197925","vnf_member_index":"vnf"},"value":[1713064550.505,"0.35833333333333334"]}]}} ${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_c20f510d-aeb3-434a-a238-18ec3c4eeedc', '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_c20f510d-aeb3-434a-a238-18ec3c4eeedc', 'metric_id': 'vnf_cpu_util', 'ns_id': '92002443-f804-4d5d-9e90-d4d0d6677639', '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.35833333333333334 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.35833333333333334' 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=92002443-f804-4d5d-9e90-d4d0d6677639 ${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=92002443-f804-4d5d-9e90-d4d0d6677639 ${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=92002443-f804-4d5d-9e90-d4d0d6677639 ${param_name} = ns_id ${param_value} = 92002443-f804-4d5d-9e90-d4d0d6677639 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=92002443-f804-4d5d-9e90-d4d0d6677639,ns_id,92002443-f804-4d5d-9e90-d4d0d6677639 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="92002443-f804-4d5d-9e90-d4d0d6677639", ${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.248.26:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f353820a200>, 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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2292002443-f804-4d5d-9e90-d4d0d6677639%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2292002443-f804-4d5d-9e90-d4d0d6677639%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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2292002443-f804-4d5d-9e90-d4d0d6677639%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 14 Apr 2024 03:16:50 GMT', 'Content-Length': '358'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_cpu_utilization","job":"airflow_osm_vm_metrics_c20f510d-aeb3-434a-a238-18ec3c4eeedc","metric_id":"vnf_cpu_util","ns_id":"92002443-f804-4d5d-9e90-d4d0d6677639","project_id":"631aecb9-5952-4e8c-b924-78254cf6fa87","vdu_id":"hackfest_basic_metrics-VM","vdu_name":"sa_02-vnf-hackfest_basic_metrics-VM-0","vim_id":"c20f510d-aeb3-434a-a238-18ec3c4eeedc","vm_id":"00d106b4-c5dc-4c1a-b85b-98d57f197925","vnf_member_index":"vnf"},"value":[1713064610.534,"0.35833333333333334"]}]}} ${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_c20f510d-aeb3-434a-a238-18ec3c4eeedc', '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_c20f510d-aeb3-434a-a238-18ec3c4eeedc', 'metric_id': 'vnf_cpu_util', 'ns_id': '92002443-f804-4d5d-9e90-d4d0d6677639', '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.35833333333333334 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.35833333333333334' 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=92002443-f804-4d5d-9e90-d4d0d6677639 ${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=92002443-f804-4d5d-9e90-d4d0d6677639 ${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=92002443-f804-4d5d-9e90-d4d0d6677639 ${param_name} = ns_id ${param_value} = 92002443-f804-4d5d-9e90-d4d0d6677639 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=92002443-f804-4d5d-9e90-d4d0d6677639,ns_id,92002443-f804-4d5d-9e90-d4d0d6677639 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="92002443-f804-4d5d-9e90-d4d0d6677639", ${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.248.26:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f3538256560>, 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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2292002443-f804-4d5d-9e90-d4d0d6677639%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2292002443-f804-4d5d-9e90-d4d0d6677639%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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2292002443-f804-4d5d-9e90-d4d0d6677639%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 14 Apr 2024 03:17:50 GMT', 'Content-Length': '359'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_cpu_utilization","job":"airflow_osm_vm_metrics_c20f510d-aeb3-434a-a238-18ec3c4eeedc","metric_id":"vnf_cpu_util","ns_id":"92002443-f804-4d5d-9e90-d4d0d6677639","project_id":"631aecb9-5952-4e8c-b924-78254cf6fa87","vdu_id":"hackfest_basic_metrics-VM","vdu_name":"sa_02-vnf-hackfest_basic_metrics-VM-0","vim_id":"c20f510d-aeb3-434a-a238-18ec3c4eeedc","vm_id":"00d106b4-c5dc-4c1a-b85b-98d57f197925","vnf_member_index":"vnf"},"value":[1713064670.575,"0.35833333333333334"]}]}} ${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_c20f510d-aeb3-434a-a238-18ec3c4eeedc', '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_c20f510d-aeb3-434a-a238-18ec3c4eeedc', 'metric_id': 'vnf_cpu_util', 'ns_id': '92002443-f804-4d5d-9e90-d4d0d6677639', '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.35833333333333334 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.35833333333333334' 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=92002443-f804-4d5d-9e90-d4d0d6677639 ${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=92002443-f804-4d5d-9e90-d4d0d6677639 ${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=92002443-f804-4d5d-9e90-d4d0d6677639 ${param_name} = ns_id ${param_value} = 92002443-f804-4d5d-9e90-d4d0d6677639 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=92002443-f804-4d5d-9e90-d4d0d6677639,ns_id,92002443-f804-4d5d-9e90-d4d0d6677639 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="92002443-f804-4d5d-9e90-d4d0d6677639", ${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.248.26:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f3538257520>, 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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2292002443-f804-4d5d-9e90-d4d0d6677639%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2292002443-f804-4d5d-9e90-d4d0d6677639%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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2292002443-f804-4d5d-9e90-d4d0d6677639%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 14 Apr 2024 03:18:50 GMT', 'Content-Length': '359'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_cpu_utilization","job":"airflow_osm_vm_metrics_c20f510d-aeb3-434a-a238-18ec3c4eeedc","metric_id":"vnf_cpu_util","ns_id":"92002443-f804-4d5d-9e90-d4d0d6677639","project_id":"631aecb9-5952-4e8c-b924-78254cf6fa87","vdu_id":"hackfest_basic_metrics-VM","vdu_name":"sa_02-vnf-hackfest_basic_metrics-VM-0","vim_id":"c20f510d-aeb3-434a-a238-18ec3c4eeedc","vm_id":"00d106b4-c5dc-4c1a-b85b-98d57f197925","vnf_member_index":"vnf"},"value":[1713064730.614,"0.35833333333333334"]}]}} ${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_c20f510d-aeb3-434a-a238-18ec3c4eeedc', '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_c20f510d-aeb3-434a-a238-18ec3c4eeedc', 'metric_id': 'vnf_cpu_util', 'ns_id': '92002443-f804-4d5d-9e90-d4d0d6677639', '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.35833333333333334 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.35833333333333334' 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=92002443-f804-4d5d-9e90-d4d0d6677639 ${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=92002443-f804-4d5d-9e90-d4d0d6677639 ${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=92002443-f804-4d5d-9e90-d4d0d6677639 ${param_name} = ns_id ${param_value} = 92002443-f804-4d5d-9e90-d4d0d6677639 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=92002443-f804-4d5d-9e90-d4d0d6677639,ns_id,92002443-f804-4d5d-9e90-d4d0d6677639 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="92002443-f804-4d5d-9e90-d4d0d6677639", ${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.248.26:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f3532f3c430>, 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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2292002443-f804-4d5d-9e90-d4d0d6677639%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2292002443-f804-4d5d-9e90-d4d0d6677639%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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2292002443-f804-4d5d-9e90-d4d0d6677639%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 14 Apr 2024 03:19:50 GMT', 'Content-Length': '359'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_cpu_utilization","job":"airflow_osm_vm_metrics_c20f510d-aeb3-434a-a238-18ec3c4eeedc","metric_id":"vnf_cpu_util","ns_id":"92002443-f804-4d5d-9e90-d4d0d6677639","project_id":"631aecb9-5952-4e8c-b924-78254cf6fa87","vdu_id":"hackfest_basic_metrics-VM","vdu_name":"sa_02-vnf-hackfest_basic_metrics-VM-0","vim_id":"c20f510d-aeb3-434a-a238-18ec3c4eeedc","vm_id":"00d106b4-c5dc-4c1a-b85b-98d57f197925","vnf_member_index":"vnf"},"value":[1713064790.642,"0.35833333333333334"]}]}} ${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_c20f510d-aeb3-434a-a238-18ec3c4eeedc', '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_c20f510d-aeb3-434a-a238-18ec3c4eeedc', 'metric_id': 'vnf_cpu_util', 'ns_id': '92002443-f804-4d5d-9e90-d4d0d6677639', '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.35833333333333334 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.35833333333333334' 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=92002443-f804-4d5d-9e90-d4d0d6677639 ${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=92002443-f804-4d5d-9e90-d4d0d6677639 ${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=92002443-f804-4d5d-9e90-d4d0d6677639 ${param_name} = ns_id ${param_value} = 92002443-f804-4d5d-9e90-d4d0d6677639 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=92002443-f804-4d5d-9e90-d4d0d6677639,ns_id,92002443-f804-4d5d-9e90-d4d0d6677639 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="92002443-f804-4d5d-9e90-d4d0d6677639", ${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.248.26:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f3532f3de70>, 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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2292002443-f804-4d5d-9e90-d4d0d6677639%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2292002443-f804-4d5d-9e90-d4d0d6677639%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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2292002443-f804-4d5d-9e90-d4d0d6677639%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 14 Apr 2024 03:20:50 GMT', 'Content-Length': '359'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_cpu_utilization","job":"airflow_osm_vm_metrics_c20f510d-aeb3-434a-a238-18ec3c4eeedc","metric_id":"vnf_cpu_util","ns_id":"92002443-f804-4d5d-9e90-d4d0d6677639","project_id":"631aecb9-5952-4e8c-b924-78254cf6fa87","vdu_id":"hackfest_basic_metrics-VM","vdu_name":"sa_02-vnf-hackfest_basic_metrics-VM-0","vim_id":"c20f510d-aeb3-434a-a238-18ec3c4eeedc","vm_id":"00d106b4-c5dc-4c1a-b85b-98d57f197925","vnf_member_index":"vnf"},"value":[1713064850.677,"100.20833333333333"]}]}} ${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_c20f510d-aeb3-434a-a238-18ec3c4eeedc', '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_c20f510d-aeb3-434a-a238-18ec3c4eeedc', 'metric_id': 'vnf_cpu_util', 'ns_id': '92002443-f804-4d5d-9e90-d4d0d6677639', '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.20833333333333 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=92002443-f804-4d5d-9e90-d4d0d6677639 ${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=92002443-f804-4d5d-9e90-d4d0d6677639 ${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=92002443-f804-4d5d-9e90-d4d0d6677639 ${param_name} = ns_id ${param_value} = 92002443-f804-4d5d-9e90-d4d0d6677639 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=92002443-f804-4d5d-9e90-d4d0d6677639,ns_id,92002443-f804-4d5d-9e90-d4d0d6677639 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="92002443-f804-4d5d-9e90-d4d0d6677639", ${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.248.26:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f3532f5c160>, 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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2292002443-f804-4d5d-9e90-d4d0d6677639%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2292002443-f804-4d5d-9e90-d4d0d6677639%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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2292002443-f804-4d5d-9e90-d4d0d6677639%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 14 Apr 2024 03:22:50 GMT', 'Content-Length': '359'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_cpu_utilization","job":"airflow_osm_vm_metrics_c20f510d-aeb3-434a-a238-18ec3c4eeedc","metric_id":"vnf_cpu_util","ns_id":"92002443-f804-4d5d-9e90-d4d0d6677639","project_id":"631aecb9-5952-4e8c-b924-78254cf6fa87","vdu_id":"hackfest_basic_metrics-VM","vdu_name":"sa_02-vnf-hackfest_basic_metrics-VM-0","vim_id":"c20f510d-aeb3-434a-a238-18ec3c4eeedc","vm_id":"00d106b4-c5dc-4c1a-b85b-98d57f197925","vnf_member_index":"vnf"},"value":[1713064970.718,"100.20833333333333"]}]}} ${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_c20f510d-aeb3-434a-a238-18ec3c4eeedc', '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_c20f510d-aeb3-434a-a238-18ec3c4eeedc', 'metric_id': 'vnf_cpu_util', 'ns_id': '92002443-f804-4d5d-9e90-d4d0d6677639', '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.20833333333333 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 faeb1f20-0707-4393-a913-3f75f8c3e37e --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... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+---------------------------------------+--------+-----------------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------------------+--------+-----------------------------------------------------------------+-------------+-------------------------+ | ed0ee3d0-6a40-4ebe-9110-3482ad5994a1 | k8s_10-k8s_proxy-vnf2-mgmtVM-0 | ACTIVE | k8s_10-k8s_proxy-datanet=192.168.155.30; osm-ext=172.21.248.224 | ubuntu18.04 | simple_requires-1-1-flv | | 1945ee53-4ec0-4df8-8321-2bb9f4bcc9d3 | k8s_10-k8s_proxy-vnf1-mgmtVM-0 | ACTIVE | k8s_10-k8s_proxy-datanet=192.168.155.73; osm-ext=172.21.248.249 | ubuntu18.04 | simple_requires-1-1-flv | | 6ecc53b0-3c7a-4a4d-baa2-c18bb669338f | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.249.136 | ubuntu20.04 | simple_requires-1-1-flv | | 00d106b4-c5dc-4c1a-b85b-98d57f197925 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.214 | ubuntu20.04 | simple_requires-1-1-flv | | 6fd09770-36b1-4017-b42e-c03956d025fa | osm-v150-merge-119 | ACTIVE | osm-ext=172.21.248.219 | ubuntu22.04 | osm.sanity | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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 ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------+--------+-----------------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------+--------+-----------------------------------------------------------------+-------------+-------------------------+ | ed0ee3d0-6a40-4ebe-9110-3482ad5994a1 | k8s_10-k8s_proxy-vnf2-mgmtVM-0 | ACTIVE | k8s_10-k8s_proxy-datanet=192.168.155.30; osm-ext=172.21.248.224 | ubuntu18.04 | simple_requires-1-1-flv | | 1945ee53-4ec0-4df8-8321-2bb9f4bcc9d3 | k8s_10-k8s_proxy-vnf1-mgmtVM-0 | ACTIVE | k8s_10-k8s_proxy-datanet=192.168.155.73; osm-ext=172.21.248.249 | ubuntu18.04 | simple_requires-1-1-flv | | 6fd09770-36b1-4017-b42e-c03956d025fa | osm-v150-merge-119 | ACTIVE | osm-ext=172.21.248.219 | ubuntu22.04 | osm.sanity | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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.248.26 == '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 46a99211-b405-4630-b16a-866ba3cd5479 ${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} = 46a99211-b405-4630-b16a-866ba3cd5479 ${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 7d6208a6-a30d-4262-bfb6-357028e53a21 ${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} = 7d6208a6-a30d-4262-bfb6-357028e53a21 ${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} = fcb71e88-d25e-4f9a-8705-d01c5f703eba ${stdout} Logs the given message with the given level. fcb71e88-d25e-4f9a-8705-d01c5f703eba ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = fcb71e88-d25e-4f9a-8705-d01c5f703eba ${ns_id} Logs the given message with the given level. fcb71e88-d25e-4f9a-8705-d01c5f703eba ${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 | +--------------------------------------+--------------------------------+--------+-----------------------------------------------------------------+-------------+-------------------------+ | ed0ee3d0-6a40-4ebe-9110-3482ad5994a1 | k8s_10-k8s_proxy-vnf2-mgmtVM-0 | ACTIVE | k8s_10-k8s_proxy-datanet=192.168.155.30; osm-ext=172.21.248.224 | ubuntu18.04 | simple_requires-1-1-flv | | 1945ee53-4ec0-4df8-8321-2bb9f4bcc9d3 | k8s_10-k8s_proxy-vnf1-mgmtVM-0 | ACTIVE | k8s_10-k8s_proxy-datanet=192.168.155.73; osm-ext=172.21.248.249 | ubuntu18.04 | simple_requires-1-1-flv | | 6fd09770-36b1-4017-b42e-c03956d025fa | osm-v150-merge-119 | ACTIVE | osm-ext=172.21.248.219 | ubuntu22.04 | osm.sanity | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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 | fcb71e88-d25e-4f9a-8705-d01c5f703eba | 2024-04-14T03:25:25 | BUILDING | INSTANTIATING (9cf948bb-2b45-4827-86c3-c2e9e551c9ac) | N/A | +----------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | fcb71e88-d25e-4f9a-8705-d01c5f703eba | 2024-04-14T03:25:25 | BUILDING | INSTANTIATING (9cf948bb-2b45-4827-86c3-c2e9e551c9ac) | N/A | +----------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | N... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | 23f64f4c-a694-4eab-bc1b-9f2741335eb4 | basic_16-vnf-hackfest_basic_metrics-VM-2 | ACTIVE | osm-ext=172.21.249.249 | ubuntu20.04 | simple_requires-1-1-flv | | 50ec85ff-f6fd-4258-8723-6143da71e25f | basic_16-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.249.242 | ubuntu20.04 | simple_requires-1-1-flv | | ad4592c9-36f8-4561-ba72-29dc7324d3b0 | basic_16-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.255 | ubuntu20.04 | simple_requires-1-1-flv | | 08529cd3-58ed-4660-acbe-27d138012856 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.42 | ubuntu20.04 | simple_requires-1-1-flv | | ed0ee3d0-6a40-4ebe-9110-3482ad5994a1 | k8s_10-k8s_proxy-vnf2-mgmtVM-0 | ACTIVE | osm-ext=172.21.248.224 | ubuntu18.04 | simple_requires-1-1-flv | | 1945ee53-4ec0-4df8-8321-2bb9f4bcc9d3 | k8s_10-k8s_proxy-vnf1-mgmtVM-0 | ACTIVE | osm-ext=172.21.248.249 | ubuntu18.04 | simple_requires-1-1-flv | | 6fd09770-36b1-4017-b42e-c03956d025fa | osm-v150-merge-119 | ACTIVE | osm-ext=172.21.248.219 | ubuntu22.04 | osm.sanity | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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 | fcb71e88-d25e-4f9a-8705-d01c5f703eba | 2024-04-14T03:25:25 | READY | IDLE (None) | N/A | +----------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | N... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | 23f64f4c-a694-4eab-bc1b-9f2741335eb4 | basic_16-vnf-hackfest_basic_metrics-VM-2 | ACTIVE | osm-ext=172.21.249.249 | ubuntu20.04 | simple_requires-1-1-flv | | 50ec85ff-f6fd-4258-8723-6143da71e25f | basic_16-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.249.242 | ubuntu20.04 | simple_requires-1-1-flv | | ad4592c9-36f8-4561-ba72-29dc7324d3b0 | basic_16-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.255 | ubuntu20.04 | simple_requires-1-1-flv | | 08529cd3-58ed-4660-acbe-27d138012856 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.42 | ubuntu20.04 | simple_requires-1-1-flv | | ed0ee3d0-6a40-4ebe-9110-3482ad5994a1 | k8s_10-k8s_proxy-vnf2-mgmtVM-0 | ACTIVE | | ubuntu18.04 | simple_requires-1-1-flv | | 6fd09770-36b1-4017-b42e-c03956d025fa | osm-v150-merge-119 | ACTIVE | osm-ext=172.21.248.219 | ubuntu22.04 | osm.sanity | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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 | fcb71e88-d25e-4f9a-8705-d01c5f703eba | 2024-04-14T03:25:25 | READY | IDLE (None) | N/A | +----------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} BROKEN Fails if ``container`` contains ``item`` one or more times. ${ns_id} ${id} = fcb71e88-d25e-4f9a-8705-d01c5f703eba ${WS_NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${WS_NS_ID} = fcb71e88-d25e-4f9a-8705-d01c5f703eba 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 fcb71e88-d25e-4f9a-8705-d01c5f703eba | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.42 ${stdout} Logs the given message with the given level. 172.21.248.42 ${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.42 ${ip_addr} Logs the given message with the given level. 172.21.248.42 ${WS_VNF_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. ${WS_VNF_IP_ADDR} = 172.21.248.42 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.248.42: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 14 03:26:46 UTC 2024 System load: 0.66 Processes: 104 Usage of /: 14.0% of 9.52GB Users logged in: 0 Memory usage: 20% IPv4 address for ens3: 172.21.248.42 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.248.42: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 fa2a8889-32bc-4d01-b2ca-9cbddedcb212 ${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} = fa2a8889-32bc-4d01-b2ca-9cbddedcb212 ${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 6fd61403-726c-484f-a28f-89a56e7b6a14 ${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} = 6fd61403-726c-484f-a28f-89a56e7b6a14 ${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} = 93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${stdout} Logs the given message with the given level. 93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${ns_id} Logs the given message with the given level. 93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${ns_launch_max_wait_time} ${NS_LAUNCH_POL_TIME} Check For NS Instance To Configured ${ns_name} Runs the specified keyword and retries if it fails. ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | N... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | 0cc885e9-389d-4e9a-96da-f6831ecf03d6 | basic_16-vnf-hackfest_basic_metrics-VM-3 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 23f64f4c-a694-4eab-bc1b-9f2741335eb4 | basic_16-vnf-hackfest_basic_metrics-VM-2 | ACTIVE | osm-ext=172.21.249.249 | ubuntu20.04 | simple_requires-1-1-flv | | 50ec85ff-f6fd-4258-8723-6143da71e25f | basic_16-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.249.242 | ubuntu20.04 | simple_requires-1-1-flv | | ad4592c9-36f8-4561-ba72-29dc7324d3b0 | basic_16-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.255 | ubuntu20.04 | simple_requires-1-1-flv | | 08529cd3-58ed-4660-acbe-27d138012856 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.42 | ubuntu20.04 | simple_requires-1-1-flv | | 6fd09770-36b1-4017-b42e-c03956d025fa | osm-v150-merge-119 | ACTIVE | osm-ext=172.21.248.219 | ubuntu22.04 | osm.sanity | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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 | 93a9f575-0cdf-44d9-a06c-d962e9f5aa8d | 2024-04-14T03:26:53 | BUILDING | INSTANTIATING (0384ee79-33cf-40c1-bbcb-817502514bfe) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 93a9f575-0cdf-44d9-a06c-d962e9f5aa8d | 2024-04-14T03:26:53 | BUILDING | INSTANTIATING (0384ee79-33cf-40c1-bbcb-817502514bfe) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | e28adb29-c4a6-4764-b249-6fbe3f6545a0 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.74 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | afa59b59-5080-4179-8080-6b771a4420b9 | basic_16-vnf-hackfest_basic_metrics-VM-4 | ACTIVE | osm-ext=172.21.248.132 | ubuntu20.04 | simple_requires-1-1-flv | | 0cc885e9-389d-4e9a-96da-f6831ecf03d6 | basic_16-vnf-hackfest_basic_metrics-VM-3 | ACTIVE | osm-ext=172.21.248.220 | ubuntu20.04 | simple_requires-1-1-flv | | 23f64f4c-a694-4eab-bc1b-9f2741335eb4 | basic_16-vnf-hackfest_basic_metrics-VM-2 | ACTIVE | osm-ext=172.21.249.249 | ubuntu20.04 | simple_requires-1-1-flv | | 50ec85ff-f6fd-4258-8723-6143da71e25f | basic_16-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.249.242 | ubuntu20.04 | simple_requires-1-1-flv | | ad4592c9-36f8-4561-ba72-29dc7324d3b0 | basic_16-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.255 | ubuntu20.04 | simple_requires-1-1-flv | | 08529cd3-58ed-4660-acbe-27d138012856 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.42 | ubuntu20.04 | simple_requires-1-1-flv | | 6fd09770-36b1-4017-b42e-c03956d025fa | osm-v150-merge-119 | ACTIVE | osm-ext=172.21.248.219 | ubuntu22.04 | osm.sanity | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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 | 93a9f575-0cdf-44d9-a06c-d962e9f5aa8d | 2024-04-14T03:26: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} = +--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | e28adb29-c4a6-4764-b249-6fbe3f6545a0 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.74 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | afa59b59-5080-4179-8080-6b771a4420b9 | basic_16-vnf-hackfest_basic_metrics-VM-4 | ACTIVE | osm-ext=172.21.248.132 | ubuntu20.04 | simple_requires-1-1-flv | | 0cc885e9-389d-4e9a-96da-f6831ecf03d6 | basic_16-vnf-hackfest_basic_metrics-VM-3 | ACTIVE | osm-ext=172.21.248.220 | ubuntu20.04 | simple_requires-1-1-flv | | 23f64f4c-a694-4eab-bc1b-9f2741335eb4 | basic_16-vnf-hackfest_basic_metrics-VM-2 | ACTIVE | osm-ext=172.21.249.249 | ubuntu20.04 | simple_requires-1-1-flv | | 50ec85ff-f6fd-4258-8723-6143da71e25f | basic_16-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.249.242 | ubuntu20.04 | simple_requires-1-1-flv | | ad4592c9-36f8-4561-ba72-29dc7324d3b0 | basic_16-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.255 | ubuntu20.04 | simple_requires-1-1-flv | | 08529cd3-58ed-4660-acbe-27d138012856 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.42 | ubuntu20.04 | simple_requires-1-1-flv | | 6fd09770-36b1-4017-b42e-c03956d025fa | osm-v150-merge-119 | ACTIVE | osm-ext=172.21.248.219 | ubuntu22.04 | osm.sanity | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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 | 93a9f575-0cdf-44d9-a06c-d962e9f5aa8d | 2024-04-14T03:26: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} = 93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 93a9f575-0cdf-44d9-a06c-d962e9f5aa8d 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=93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${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=93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${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=93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${param_name} = ns_id ${param_value} = 93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=93a9f575-0cdf-44d9-a06c-d962e9f5aa8d,ns_id,93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="93a9f575-0cdf-44d9-a06c-d962e9f5aa8d", ${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.248.26:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f3532f19b40>, 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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2293a9f575-0cdf-44d9-a06c-d962e9f5aa8d%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2293a9f575-0cdf-44d9-a06c-d962e9f5aa8d%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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2293a9f575-0cdf-44d9-a06c-d962e9f5aa8d%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 14 Apr 2024 03:27:32 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=93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${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=93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${param_name} = ns_id ${param_value} = 93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=93a9f575-0cdf-44d9-a06c-d962e9f5aa8d,ns_id,93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="93a9f575-0cdf-44d9-a06c-d962e9f5aa8d", ${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.248.26:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f353820be20>, 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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2293a9f575-0cdf-44d9-a06c-d962e9f5aa8d%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2293a9f575-0cdf-44d9-a06c-d962e9f5aa8d%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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2293a9f575-0cdf-44d9-a06c-d962e9f5aa8d%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 14 Apr 2024 03:28:32 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=93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${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=93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${param_name} = ns_id ${param_value} = 93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=93a9f575-0cdf-44d9-a06c-d962e9f5aa8d,ns_id,93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="93a9f575-0cdf-44d9-a06c-d962e9f5aa8d", ${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.248.26:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f3538cb3820>, 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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2293a9f575-0cdf-44d9-a06c-d962e9f5aa8d%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2293a9f575-0cdf-44d9-a06c-d962e9f5aa8d%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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2293a9f575-0cdf-44d9-a06c-d962e9f5aa8d%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 14 Apr 2024 03:29:32 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=93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${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=93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${param_name} = ns_id ${param_value} = 93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=93a9f575-0cdf-44d9-a06c-d962e9f5aa8d,ns_id,93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="93a9f575-0cdf-44d9-a06c-d962e9f5aa8d", ${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.248.26:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f35381b5e40>, 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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2293a9f575-0cdf-44d9-a06c-d962e9f5aa8d%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2293a9f575-0cdf-44d9-a06c-d962e9f5aa8d%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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2293a9f575-0cdf-44d9-a06c-d962e9f5aa8d%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 14 Apr 2024 03:30:32 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=93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${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=93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${param_name} = ns_id ${param_value} = 93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=93a9f575-0cdf-44d9-a06c-d962e9f5aa8d,ns_id,93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="93a9f575-0cdf-44d9-a06c-d962e9f5aa8d", ${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.248.26:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f35381b6200>, 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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2293a9f575-0cdf-44d9-a06c-d962e9f5aa8d%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2293a9f575-0cdf-44d9-a06c-d962e9f5aa8d%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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2293a9f575-0cdf-44d9-a06c-d962e9f5aa8d%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 14 Apr 2024 03:31:32 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=93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${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=93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${param_name} = ns_id ${param_value} = 93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=93a9f575-0cdf-44d9-a06c-d962e9f5aa8d,ns_id,93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="93a9f575-0cdf-44d9-a06c-d962e9f5aa8d", ${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.248.26:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f3532f3feb0>, 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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2293a9f575-0cdf-44d9-a06c-d962e9f5aa8d%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2293a9f575-0cdf-44d9-a06c-d962e9f5aa8d%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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2293a9f575-0cdf-44d9-a06c-d962e9f5aa8d%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 14 Apr 2024 03:32:32 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=93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${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=93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${param_name} = ns_id ${param_value} = 93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=93a9f575-0cdf-44d9-a06c-d962e9f5aa8d,ns_id,93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="93a9f575-0cdf-44d9-a06c-d962e9f5aa8d", ${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.248.26:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f3538254190>, 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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2293a9f575-0cdf-44d9-a06c-d962e9f5aa8d%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2293a9f575-0cdf-44d9-a06c-d962e9f5aa8d%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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2293a9f575-0cdf-44d9-a06c-d962e9f5aa8d%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 14 Apr 2024 03:33:32 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=93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${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=93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${param_name} = ns_id ${param_value} = 93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=93a9f575-0cdf-44d9-a06c-d962e9f5aa8d,ns_id,93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="93a9f575-0cdf-44d9-a06c-d962e9f5aa8d", ${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.248.26:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f3538256e30>, 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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2293a9f575-0cdf-44d9-a06c-d962e9f5aa8d%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2293a9f575-0cdf-44d9-a06c-d962e9f5aa8d%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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2293a9f575-0cdf-44d9-a06c-d962e9f5aa8d%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 14 Apr 2024 03:34:32 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=93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${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=93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${param_name} = ns_id ${param_value} = 93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=93a9f575-0cdf-44d9-a06c-d962e9f5aa8d,ns_id,93a9f575-0cdf-44d9-a06c-d962e9f5aa8d ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="93a9f575-0cdf-44d9-a06c-d962e9f5aa8d", ${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.248.26:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f3538256ef0>, 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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2293a9f575-0cdf-44d9-a06c-d962e9f5aa8d%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2293a9f575-0cdf-44d9-a06c-d962e9f5aa8d%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.248.26:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%2293a9f575-0cdf-44d9-a06c-d962e9f5aa8d%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 14 Apr 2024 03:35:32 GMT', 'Content-Length': '359'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_cpu_utilization","job":"airflow_osm_vm_metrics_c20f510d-aeb3-434a-a238-18ec3c4eeedc","metric_id":"cirros_vnf_cpu_util","ns_id":"93a9f575-0cdf-44d9-a06c-d962e9f5aa8d","project_id":"631aecb9-5952-4e8c-b924-78254cf6fa87","vdu_id":"cirros_vnfd-VM","vdu_name":"sa_07-alarm_test-vnf-cirros_vnfd-VM-0","vim_id":"c20f510d-aeb3-434a-a238-18ec3c4eeedc","vm_id":"e28adb29-c4a6-4764-b249-6fbe3f6545a0","vnf_member_index":"vnf"},"value":[1713065732.619,"0.06666666666666667"]}]}} ${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_c20f510d-aeb3-434a-a238-18ec3c4eeedc', '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_c20f510d-aeb3-434a-a238-18ec3c4eeedc', 'metric_id': 'cirros_vnf_cpu_util', 'ns_id': '93a9f575-0cdf-44d9-a06c-d962e9f5aa8d... ${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.06666666666666667 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.248.42: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 14 03:35:32 UTC 2024 System load: 0.0 Processes: 103 Usage of /: 14.2% of 9.52GB Users logged in: 0 Memory usage: 21% IPv4 address for ens3: 172.21.248.42 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 14 03:26: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@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.248.42: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 14 03:36:14 UTC 2024 System load: 0.0 Processes: 103 Usage of /: 14.2% of 9.52GB Users logged in: 0 Memory usage: 21% IPv4 address for ens3: 172.21.248.42 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 14 03:35: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@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.248.42: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 14 03:36:56 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.248.42 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 14 03:36:15 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": "7a3f4085-d71d-4cbb-bbf4-dc02404e100e", "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": "7a3f4085-d71d-4cbb-bbf4-dc02404e100e", "status": "alarm", "metric_name": "osm_cpu_utilization", "start_date": "2024-04-14T03:36:37.934Z", "tags": {"alertname": "vdu_alarm_7a3f4085-d71d-4cbb-bbf4-dc02404e100e", "job": "airflow_osm_vm_metrics_c20f510d-aeb3-434a-a238-18ec3c4eeedc", "metric_id": "cirros_vnf_cpu_util", "ns_id": "93a9f575-0cdf-44d9-a06c-d962e9f5aa8d", "project_id": "631aecb9-5952-4e8c-b924-78254cf6fa87", "vdu_id": "cirros_vnfd-VM", "vdu_name": "sa_07-alarm_test-vnf-cirros_vnfd-VM-0", "vim_id": "c20f510d-aeb3-434a-a238-18ec3c4eeedc", "vm_id": "e28adb29-c4a6-4764-b249-6fbe3f6545a0", "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 | +--------------------------------------+--------------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | b920b758-2dfe-4746-bb46-7b12e31f5e74 | basic_24-affinity-basic-1-affinity_basic-VM-2-0 | ACTIVE | osm-ext=172.21.249.235 | ubuntu20.04 | simple_requires-1-1-flv | | 0702f788-1aac-499e-a2a9-d721b7df5615 | basic_24-affinity-basic-1-affinity_basic-VM-1-0 | ACTIVE | osm-ext=172.21.248.133 | ubuntu20.04 | simple_requires-1-1-flv | | c72865c2-4581-4eda-8f01-1eff52f79151 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.207 | ubuntu20.04 | simple_requires-1-1-flv | | e28adb29-c4a6-4764-b249-6fbe3f6545a0 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.74 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 08529cd3-58ed-4660-acbe-27d138012856 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.42 | ubuntu20.04 | simple_requires-1-1-flv | | 6fd09770-36b1-4017-b42e-c03956d025fa | osm-v150-merge-119 | ACTIVE | osm-ext=172.21.248.219 | ubuntu22.04 | osm.sanity | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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 | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | b920b758-2dfe-4746-bb46-7b12e31f5e74 | basic_24-affinity-basic-1-affinity_basic-VM-2-0 | ACTIVE | osm-ext=172.21.249.235 | ubuntu20.04 | simple_requires-1-1-flv | | 0702f788-1aac-499e-a2a9-d721b7df5615 | basic_24-affinity-basic-1-affinity_basic-VM-1-0 | ACTIVE | osm-ext=172.21.248.133 | ubuntu20.04 | simple_requires-1-1-flv | | c72865c2-4581-4eda-8f01-1eff52f79151 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.207 | ubuntu20.04 | simple_requires-1-1-flv | | 08529cd3-58ed-4660-acbe-27d138012856 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.42 | ubuntu20.04 | simple_requires-1-1-flv | | 6fd09770-36b1-4017-b42e-c03956d025fa | osm-v150-merge-119 | ACTIVE | osm-ext=172.21.248.219 | ubuntu22.04 | osm.sanity | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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 | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | b920b758-2dfe-4746-bb46-7b12e31f5e74 | basic_24-affinity-basic-1-affinity_basic-VM-2-0 | ACTIVE | osm-ext=172.21.249.235 | ubuntu20.04 | simple_requires-1-1-flv | | 0702f788-1aac-499e-a2a9-d721b7df5615 | basic_24-affinity-basic-1-affinity_basic-VM-1-0 | ACTIVE | osm-ext=172.21.248.133 | ubuntu20.04 | simple_requires-1-1-flv | | c72865c2-4581-4eda-8f01-1eff52f79151 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.207 | ubuntu20.04 | simple_requires-1-1-flv | | 08529cd3-58ed-4660-acbe-27d138012856 | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.42 | ubuntu20.04 | simple_requires-1-1-flv | | 6fd09770-36b1-4017-b42e-c03956d025fa | osm-v150-merge-119 | ACTIVE | osm-ext=172.21.248.219 | ubuntu22.04 | osm.sanity | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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 | +--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-------------------------+ | b920b758-2dfe-4746-bb46-7b12e31f5e74 | basic_24-affinity-basic-1-affinity_basic-VM-2-0 | ACTIVE | osm-ext=172.21.249.235 | ubuntu20.04 | simple_requires-1-1-flv | | 0702f788-1aac-499e-a2a9-d721b7df5615 | basic_24-affinity-basic-1-affinity_basic-VM-1-0 | ACTIVE | osm-ext=172.21.248.133 | ubuntu20.04 | simple_requires-1-1-flv | | 6fd09770-36b1-4017-b42e-c03956d025fa | osm-v150-merge-119 | ACTIVE | osm-ext=172.21.248.219 | ubuntu22.04 | osm.sanity | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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.248.26 == '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 0d8d3cfe-45de-4b5c-9cf1-06775ba30992 ${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} = 0d8d3cfe-45de-4b5c-9cf1-06775ba30992 ${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 4... ${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 4ef04855-305d-48a8-b2c2-38c72843988b ${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} = 4ef04855-305d-48a8-b2c2-38c72843988b ${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} = 0ed742e8-02f0-471e-94eb-861c3d20a6cd ${stdout} Logs the given message with the given level. 0ed742e8-02f0-471e-94eb-861c3d20a6cd ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 0ed742e8-02f0-471e-94eb-861c3d20a6cd ${ns_id} Logs the given message with the given level. 0ed742e8-02f0-471e-94eb-861c3d20a6cd ${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 | +--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-------------------------+ | b920b758-2dfe-4746-bb46-7b12e31f5e74 | basic_24-affinity-basic-1-affinity_basic-VM-2-0 | ACTIVE | | ubuntu20.04 | simple_requires-1-1-flv | | 6fd09770-36b1-4017-b42e-c03956d025fa | osm-v150-merge-119 | ACTIVE | osm-ext=172.21.248.219 | ubuntu22.04 | osm.sanity | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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 | 0ed742e8-02f0-471e-94eb-861c3d20a6cd | 2024-04-14T03:38:02 | BUILDING | INSTANTIATING (701350eb-ecb8-47ed-8e5b-f5f7fc6d6761) | N/A | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 0ed742e8-02f0-471e-94eb-861c3d20a6cd | 2024-04-14T03:38:02 | BUILDING | INSTANTIATING (701350eb-ecb8-47ed-8e5b-f5f7fc6d6761) | N/A | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' does not contain any of 'READY' or 'BROKEN' ${ns_name} Check if a given NS instance has completed the instantiation, no matter if it succeeded (the status should be READY or BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+----------------------------------------+--------+------------------------+-------------+---------------------------+ | ID | N... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------------+--------+------------------------+-------------+---------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------------+--------+------------------------+-------------+---------------------------+ | 1d4d95ac-e797-439e-8e5b-e175775c93ee | basic_27_helm_ee-simple-mgmtVM-0 | BUILD | | ubuntu18.04 | mgmtVM-simple-1-flv-62 | | ce55af1f-6c31-4970-94ee-96c5eeefe17d | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | BUILD | | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 0d5dc60d-7d1a-42bd-841a-f4ff0963a878 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.165 | ubuntu20.04 | simple_requires-1-1-flv | | 6fd09770-36b1-4017-b42e-c03956d025fa | osm-v150-merge-119 | ACTIVE | osm-ext=172.21.248.219 | ubuntu22.04 | osm.sanity | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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 | 0ed742e8-02f0-471e-94eb-861c3d20a6cd | 2024-04-14T03:38:02 | BUILDING | INSTANTIATING (701350eb-ecb8-47ed-8e5b-f5f7fc6d6761) | N/A | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 0ed742e8-02f0-471e-94eb-861c3d20a6cd | 2024-04-14T03:38:02 | BUILDING | INSTANTIATING (701350eb-ecb8-47ed-8e5b-f5f7fc6d6761) | N/A | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+----------------------------------------+--------+------------------------------------------------------------------------------------------------------------+-------------+---------------------------+ | 1d4d95ac-e797-439e-8e5b-e175775c93ee | basic_27_helm_ee-simple-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.182 | ubuntu18.04 | mgmtVM-simple-1-flv-62 | | ce55af1f-6c31-4970-94ee-96c5eeefe17d | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ACTIVE | osm-ext=172.21.249.172; sa_08-vnf_with_v-external=192.168.24.179; sa_08-vnf_with_v-internal=192.168.205.65 | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 0d5dc60d-7d1a-42bd-841a-f4ff0963a878 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.165 | ubuntu20.04 | simple_requires-1-1-flv | | 6fd09770-36b1-4017-b42e-c03956d025fa | osm-v150-merge-119 | ACTIVE | osm-ext=172.21.248.219 | ubuntu22.04 | osm.sanity | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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 | 0ed742e8-02f0-471e-94eb-861c3d20a6cd | 2024-04-14T03:38:02 | BUILDING | INSTANTIATING (701350eb-ecb8-47ed-8e5b-f5f7fc6d6761) | N/A | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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 | 0ed742e8-02f0-471e-94eb-861c3d20a6cd | 2024-04-14T03:38:02 | BUILDING | INSTANTIATING (701350eb-ecb8-47ed-8e5b-f5f7fc6d6761) | N/A | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations 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 | +--------------------------------------+----------------------------------------+--------+------------------------------------------------------------------------------------------------------------+-------------+---------------------------+ | 1d4d95ac-e797-439e-8e5b-e175775c93ee | basic_27_helm_ee-simple-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.182 | ubuntu18.04 | mgmtVM-simple-1-flv-62 | | ce55af1f-6c31-4970-94ee-96c5eeefe17d | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ACTIVE | osm-ext=172.21.249.172; sa_08-vnf_with_v-external=192.168.24.179; sa_08-vnf_with_v-internal=192.168.205.65 | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 0d5dc60d-7d1a-42bd-841a-f4ff0963a878 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.165 | ubuntu20.04 | simple_requires-1-1-flv | | 6fd09770-36b1-4017-b42e-c03956d025fa | osm-v150-merge-119 | ACTIVE | osm-ext=172.21.248.219 | ubuntu22.04 | osm.sanity | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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 | 0ed742e8-02f0-471e-94eb-861c3d20a6cd | 2024-04-14T03:38: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 | +--------------------------------------+----------------------------------------+--------+------------------------------------------------------------------------------------------------------------+-------------+---------------------------+ | 1d4d95ac-e797-439e-8e5b-e175775c93ee | basic_27_helm_ee-simple-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.182 | ubuntu18.04 | mgmtVM-simple-1-flv-62 | | ce55af1f-6c31-4970-94ee-96c5eeefe17d | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ACTIVE | osm-ext=172.21.249.172; sa_08-vnf_with_v-external=192.168.24.179; sa_08-vnf_with_v-internal=192.168.205.65 | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 0d5dc60d-7d1a-42bd-841a-f4ff0963a878 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.165 | ubuntu20.04 | simple_requires-1-1-flv | | 6fd09770-36b1-4017-b42e-c03956d025fa | osm-v150-merge-119 | ACTIVE | osm-ext=172.21.248.219 | ubuntu22.04 | osm.sanity | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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 | 0ed742e8-02f0-471e-94eb-861c3d20a6cd | 2024-04-14T03:38: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} = 0ed742e8-02f0-471e-94eb-861c3d20a6cd ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 0ed742e8-02f0-471e-94eb-861c3d20a6cd 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.248.26:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f3532f88640>, 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.248.26: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.248.26:9091/api/v1/query?query=ifInOctets%7BifIndex=%221%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 14 Apr 2024 03:39:47 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.249.172","job":"395212b25be4482291b77f78dc082b57"},"value":[1713065987.904,"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.249.172', ... ${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.249.172', 'job': '395212b25be4482291b77f78dc082b57'}, 'value': [1713065987.... ${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.248.26:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f3532f1bac0>, 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.248.26: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.248.26:9091/api/v1/query?query=ifMtu%7BifIndex=%222%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Sun, 14 Apr 2024 03:39:47 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.249.172","job":"395212b25be4482291b77f78dc082b57"},"value":[1713065987.921,"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.249.172', 'job': '395212b25be4482291b77f78dc082b5... ${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 | +--------------------------------------+----------------------------------------+--------+------------------------------------------------------------------------------------------------------------+-------------+---------------------------+ | 1d4d95ac-e797-439e-8e5b-e175775c93ee | basic_27_helm_ee-simple-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.182 | ubuntu18.04 | mgmtVM-simple-1-flv-62 | | ce55af1f-6c31-4970-94ee-96c5eeefe17d | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ACTIVE | osm-ext=172.21.249.172; sa_08-vnf_with_v-external=192.168.24.179; sa_08-vnf_with_v-internal=192.168.205.65 | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 0d5dc60d-7d1a-42bd-841a-f4ff0963a878 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.165 | ubuntu20.04 | simple_requires-1-1-flv | | 6fd09770-36b1-4017-b42e-c03956d025fa | osm-v150-merge-119 | ACTIVE | osm-ext=172.21.248.219 | ubuntu22.04 | osm.sanity | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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} = +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | 1d4d95ac-e797-439e-8e5b-e175775c93ee | basic_27_helm_ee-simple-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.182 | ubuntu18.04 | mgmtVM-simple-1-flv-62 | | 0d5dc60d-7d1a-42bd-841a-f4ff0963a878 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.165 | ubuntu20.04 | simple_requires-1-1-flv | | 6fd09770-36b1-4017-b42e-c03956d025fa | osm-v150-merge-119 | ACTIVE | osm-ext=172.21.248.219 | ubuntu22.04 | osm.sanity | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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} = +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | 1d4d95ac-e797-439e-8e5b-e175775c93ee | basic_27_helm_ee-simple-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.182 | ubuntu18.04 | mgmtVM-simple-1-flv-62 | | 0d5dc60d-7d1a-42bd-841a-f4ff0963a878 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.165 | ubuntu20.04 | simple_requires-1-1-flv | | 6fd09770-36b1-4017-b42e-c03956d025fa | osm-v150-merge-119 | ACTIVE | osm-ext=172.21.248.219 | ubuntu22.04 | osm.sanity | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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 40396236-9894-4e47-b685-3326ff61324e ${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} = 40396236-9894-4e47-b685-3326ff61324e ${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 afd82ee1-a019-4e88-8421-8f9800731ae3 ${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} = afd82ee1-a019-4e88-8421-8f9800731ae3 ${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 7839e064-851e-4aca-8df9-8163e76e8a24 ${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} = 7839e064-851e-4aca-8df9-8163e76e8a24 ${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 79639e42-c516-4a96-bcb5-d0ff6a9efcf5 ${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} = 79639e42-c516-4a96-bcb5-d0ff6a9efcf5 ${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} = 8421dcbc-c186-4f3f-84ca-eba0a47e379b ${stdout} Logs the given message with the given level. 8421dcbc-c186-4f3f-84ca-eba0a47e379b ${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} = 8c3824bd-be0b-4246-903e-1daa83293b94 ${rc},${stdout} Logs the given message with the given level. 0,8c3824bd-be0b-4246-903e-1daa83293b94 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${nsi_id} = 8c3824bd-be0b-4246-903e-1daa83293b94 ${nsi_id} Logs the given message with the given level. 8c3824bd-be0b-4246-903e-1daa83293b94 ${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 | 8c3824bd-be0b-4246-903e-1daa83293b94 | 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 | 8c3824bd-be0b-4246-903e-1daa83293b94 | 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 | 8c3824bd-be0b-4246-903e-1daa83293b94 | 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 | 8c3824bd-be0b-4246-903e-1daa83293b94 | 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 | 8c3824bd-be0b-4246-903e-1daa83293b94 | 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 | 8c3824bd-be0b-4246-903e-1daa83293b94 | 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 | 8c3824bd-be0b-4246-903e-1daa83293b94 | 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 | 8c3824bd-be0b-4246-903e-1daa83293b94 | 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} = 8c3824bd-be0b-4246-903e-1daa83293b94 ${NSI_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NSI_ID} = 8c3824bd-be0b-4246-903e-1daa83293b94 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, '400e5536-e739-442f-ab3c-6daf8c53d886') ${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 400e5536-e739-442f-ab3c-6daf8c53d886 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.109 ${stdout} Logs the given message with the given level. 172.21.249.109 ${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.109 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.109 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 | 8f79d47b-8b17-49bb-b0a5-4b88c7d106fd 7c33d90b-d945-405e-9652-209a2b43cc99 ] @{ns_list} ${ns_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{ns_list} = [ 8f79d47b-8b17-49bb-b0a5-4b88c7d106fd | 7c33d90b-d945-405e-9652-209a2b43cc99 ] ${ns_list} Logs the length and contents of the ``list`` using given ``level``. List length is 2 and it contains following items: 0: 8f79d47b-8b17-49bb-b0a5-4b88c7d106fd 1: 7c33d90b-d945-405e-9652-209a2b43cc99 @{ns_list} @{slice_ns_list} = [ 8f79d47b-8b17-49bb-b0a5-4b88c7d106fd | 7c33d90b-d945-405e-9652-209a2b43cc99 ] @{slice_ns_list} Logs the given messages as separate entries using the INFO level. 8f79d47b-8b17-49bb-b0a5-4b88c7d106fd 7c33d90b-d945-405e-9652-209a2b43cc99 @{temp_list} Returns a list containing given items. @{temp_list} = [ ] ${ns_id} @{slice_ns_list} 8f79d47b-8b17-49bb-b0a5-4b88c7d106fd ${ns_id} Logs the given message with the given level. 8f79d47b-8b17-49bb-b0a5-4b88c7d106fd @{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 8f79d47b-8b17-49bb-b0a5-4b88c7d106fd | grep 8f79d47b-8b17-49bb-b0a5-4b88c7d106fd | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | affe7fff-3751-493d-b7f7-4a5549b703d7 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ affe7fff-3751-493d-b7f7-4a5549b703d7 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: affe7fff-3751-493d-b7f7-4a5549b703d7 @{vnf_list} @{vnf_id_list} = [ affe7fff-3751-493d-b7f7-4a5549b703d7 ] @{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} affe7fff-3751-493d-b7f7-4a5549b703d7 ${vnf_id} Logs the given message with the given level. affe7fff-3751-493d-b7f7-4a5549b703d7 @{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=affe7fff-3751-493d-b7f7-4a5549b703d7 | 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.231 ] ${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.248.231 ] ${vnf_ip_list} Logs the given messages as separate entries using the INFO level. ['172.21.248.231'] ${vnf_ip_list} Verifies that the given item is not empty. Length is 1 @{vnf_ip_list} @{vnf_ip_list} = [ 172.21.248.231 ] @{temp_list} ${temp_list} ${vnf_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.248.231 ] ${temp_list} Verifies that the given item is not empty. Length is 1 @{temp_list} @{ns_ip_list} = [ 172.21.248.231 ] @{temp_list} ${temp_list} ${ns_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.248.231 ] 7c33d90b-d945-405e-9652-209a2b43cc99 ${ns_id} Logs the given message with the given level. 7c33d90b-d945-405e-9652-209a2b43cc99 @{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 7c33d90b-d945-405e-9652-209a2b43cc99 | grep 7c33d90b-d945-405e-9652-209a2b43cc99 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 32d487e4-e71c-4618-b65d-e97a42ff3dfc ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 32d487e4-e71c-4618-b65d-e97a42ff3dfc ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 32d487e4-e71c-4618-b65d-e97a42ff3dfc @{vnf_list} @{vnf_id_list} = [ 32d487e4-e71c-4618-b65d-e97a42ff3dfc ] @{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} 32d487e4-e71c-4618-b65d-e97a42ff3dfc ${vnf_id} Logs the given message with the given level. 32d487e4-e71c-4618-b65d-e97a42ff3dfc @{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=32d487e4-e71c-4618-b65d-e97a42ff3dfc | 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.95 ] ${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.95 ] ${vnf_ip_list} Logs the given messages as separate entries using the INFO level. ['172.21.248.95'] ${vnf_ip_list} Verifies that the given item is not empty. Length is 1 @{vnf_ip_list} @{vnf_ip_list} = [ 172.21.248.95 ] @{temp_list} ${temp_list} ${vnf_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.248.95 ] ${temp_list} Verifies that the given item is not empty. Length is 1 @{temp_list} @{ns_ip_list} = [ 172.21.248.95 ] @{temp_list} ${temp_list} ${ns_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.248.231 | 172.21.248.95 ] ${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.231 1: 172.21.248.95 ${SLICE_VNFS_IPS} ${temp_list} Makes a variable available everywhere within the scope of the current suite. ${SLICE_VNFS_IPS} = ['172.21.248.231', '172.21.248.95'] 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.249.109 ${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.109 2>&1'. ${rc} = 0 ${stdout} = PING 172.21.249.109 (172.21.249.109) 56(84) bytes of data. 64 bytes from 172.21.249.109: icmp_seq=1 ttl=63 time=2.92 ms 64 bytes from 172.21.249.109: icmp_seq=2 ttl=63 time=0.861 ms --- 172.21.249.10... ${stdout} Logs the given message with the given level. PING 172.21.249.109 (172.21.249.109) 56(84) bytes of data. 64 bytes from 172.21.249.109: icmp_seq=1 ttl=63 time=2.92 ms 64 bytes from 172.21.249.109: icmp_seq=2 ttl=63 time=0.861 ms --- 172.21.249.109 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 0.861/1.888/2.915/1.027 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.249.109: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 14 03:44:03 UTC 2024 System load: 0.06 Users logged in: 0 Usage of /: 11.5% of 9.52GB IP address for ens3: 172.21.249.109 Memory usage: 12% IP address for ens4: 192.168.199.155 Swap usage: 0% IP address for ens5: 192.168.118.222 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_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.249.109: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 14 03:44:05 UTC 2024 System load: 0.06 Users logged in: 0 Usage of /: 11.8% of 9.52GB IP address for ens3: 172.21.249.109 Memory usage: 12% IP address for ens4: 192.168.199.155 Swap usage: 0% IP address for ens5: 192.168.118.222 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 14 03:44:04 2024 from 172.21.249.4 To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@slicebasic:~$ ${ip} @{ip_list} 172.21.248.231 ${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.231 > /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.95 ${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.95 > /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 aea4fb91-d717-4c6a-a676-c94da74a488a ${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} = aea4fb91-d717-4c6a-a676-c94da74a488a ${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 f3e15ba9-0fb6-43c6-8fee-6d1fb19c5c11 ${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} = f3e15ba9-0fb6-43c6-8fee-6d1fb19c5c11 ${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 70cac288-5515-4494-ab45-768791aaad3a ${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} = 70cac288-5515-4494-ab45-768791aaad3a ${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 dac89eee-06ba-49af-94df-54e779667e3d ${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} = dac89eee-06ba-49af-94df-54e779667e3d ${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} = c9879f4e-9cb9-413c-b52a-219aabb92caa ${stdout} Logs the given message with the given level. c9879f4e-9cb9-413c-b52a-219aabb92caa ${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} = 2dcbe681-2f11-4620-869c-c93d70649c0e ${stdout} Logs the given message with the given level. 2dcbe681-2f11-4620-869c-c93d70649c0e ${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} = d0a3ecf3-dd7b-451c-8eeb-c80cb80453b2 ${rc},${stdout} Logs the given message with the given level. 0,d0a3ecf3-dd7b-451c-8eeb-c80cb80453b2 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${nsi_id} = d0a3ecf3-dd7b-451c-8eeb-c80cb80453b2 ${nsi_id} Logs the given message with the given level. d0a3ecf3-dd7b-451c-8eeb-c80cb80453b2 ${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 | d0a3ecf3-dd7b-451c-8eeb-c80cb80453b2 | 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 | d0a3ecf3-dd7b-451c-8eeb-c80cb80453b2 | 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 | d0a3ecf3-dd7b-451c-8eeb-c80cb80453b2 | 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 | d0a3ecf3-dd7b-451c-8eeb-c80cb80453b2 | 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 | d0a3ecf3-dd7b-451c-8eeb-c80cb80453b2 | 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 | d0a3ecf3-dd7b-451c-8eeb-c80cb80453b2 | 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 | d0a3ecf3-dd7b-451c-8eeb-c80cb80453b2 | 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 | d0a3ecf3-dd7b-451c-8eeb-c80cb80453b2 | 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} = d0a3ecf3-dd7b-451c-8eeb-c80cb80453b2 ${NSI_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NSI_ID} = d0a3ecf3-dd7b-451c-8eeb-c80cb80453b2 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} = 242a636c-1a36-4c6a-a602-643143b206ce ${rc},${stdout} Logs the given message with the given level. 0,242a636c-1a36-4c6a-a602-643143b206ce ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${nsi_id} = 242a636c-1a36-4c6a-a602-643143b206ce ${nsi_id} Logs the given message with the given level. 242a636c-1a36-4c6a-a602-643143b206ce ${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 | 242a636c-1a36-4c6a-a602-643143b206ce | 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 | 242a636c-1a36-4c6a-a602-643143b206ce | 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 | 242a636c-1a36-4c6a-a602-643143b206ce | 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 | 242a636c-1a36-4c6a-a602-643143b206ce | 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 | 242a636c-1a36-4c6a-a602-643143b206ce | 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 | 242a636c-1a36-4c6a-a602-643143b206ce | 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} = 242a636c-1a36-4c6a-a602-643143b206ce ${NSI2_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NSI2_ID} = 242a636c-1a36-4c6a-a602-643143b206ce 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, 'c2c08827-120d-45d3-a169-541d9d19b6c9') ${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 c2c08827-120d-45d3-a169-541d9d19b6c9 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.42 ${stdout} Logs the given message with the given level. 172.21.248.42 ${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.42 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.42 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 | 6fcf51b6-8ef4-496f-855b-ddd38c2af493 c2c08827-120d-45d3-a169-541d9d19b6c9 ecf4b47e-8abc-49f5-bff3-15d0f0a644ea ] @{ns_list} ${ns_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{ns_list} = [ 6fcf51b6-8ef4-496f-855b-ddd38c2af493 | c2c08827-120d-45d3-a169-541d9d19b6c9 | ecf4b47e-8abc-49f5-bff3-15d0f0a644ea ] ${ns_list} Logs the length and contents of the ``list`` using given ``level``. List length is 3 and it contains following items: 0: 6fcf51b6-8ef4-496f-855b-ddd38c2af493 1: c2c08827-120d-45d3-a169-541d9d19b6c9 2: ecf4b47e-8abc-49f5-bff3-15d0f0a644ea @{ns_list} @{slice_ns_list} = [ 6fcf51b6-8ef4-496f-855b-ddd38c2af493 | c2c08827-120d-45d3-a169-541d9d19b6c9 | ecf4b47e-8abc-49f5-bff3-15d0f0a644ea ] @{slice_ns_list} Logs the given messages as separate entries using the INFO level. 6fcf51b6-8ef4-496f-855b-ddd38c2af493 c2c08827-120d-45d3-a169-541d9d19b6c9 ecf4b47e-8abc-49f5-bff3-15d0f0a644ea @{temp_list} Returns a list containing given items. @{temp_list} = [ ] ${ns_id} @{slice_ns_list} 6fcf51b6-8ef4-496f-855b-ddd38c2af493 ${ns_id} Logs the given message with the given level. 6fcf51b6-8ef4-496f-855b-ddd38c2af493 @{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 6fcf51b6-8ef4-496f-855b-ddd38c2af493 | grep 6fcf51b6-8ef4-496f-855b-ddd38c2af493 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 4e6f8718-feb3-4547-85c6-f3e8080f6e2e ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 4e6f8718-feb3-4547-85c6-f3e8080f6e2e ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 4e6f8718-feb3-4547-85c6-f3e8080f6e2e @{vnf_list} @{vnf_id_list} = [ 4e6f8718-feb3-4547-85c6-f3e8080f6e2e ] @{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} 4e6f8718-feb3-4547-85c6-f3e8080f6e2e ${vnf_id} Logs the given message with the given level. 4e6f8718-feb3-4547-85c6-f3e8080f6e2e @{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=4e6f8718-feb3-4547-85c6-f3e8080f6e2e | 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.39 ] ${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.39 ] ${vnf_ip_list} Logs the given messages as separate entries using the INFO level. ['172.21.249.39'] ${vnf_ip_list} Verifies that the given item is not empty. Length is 1 @{vnf_ip_list} @{vnf_ip_list} = [ 172.21.249.39 ] @{temp_list} ${temp_list} ${vnf_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.249.39 ] ${temp_list} Verifies that the given item is not empty. Length is 1 @{temp_list} @{ns_ip_list} = [ 172.21.249.39 ] @{temp_list} ${temp_list} ${ns_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.249.39 ] c2c08827-120d-45d3-a169-541d9d19b6c9 ${ns_id} Logs the given message with the given level. c2c08827-120d-45d3-a169-541d9d19b6c9 @{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 c2c08827-120d-45d3-a169-541d9d19b6c9 | grep c2c08827-120d-45d3-a169-541d9d19b6c9 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 263e7fa3-3230-4b5b-af4c-1426a6762663 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 263e7fa3-3230-4b5b-af4c-1426a6762663 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 263e7fa3-3230-4b5b-af4c-1426a6762663 @{vnf_list} @{vnf_id_list} = [ 263e7fa3-3230-4b5b-af4c-1426a6762663 ] @{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} 263e7fa3-3230-4b5b-af4c-1426a6762663 ${vnf_id} Logs the given message with the given level. 263e7fa3-3230-4b5b-af4c-1426a6762663 @{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=263e7fa3-3230-4b5b-af4c-1426a6762663 | 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.42 ] ${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.42 ] ${vnf_ip_list} Logs the given messages as separate entries using the INFO level. ['172.21.248.42'] ${vnf_ip_list} Verifies that the given item is not empty. Length is 1 @{vnf_ip_list} @{vnf_ip_list} = [ 172.21.248.42 ] @{temp_list} ${temp_list} ${vnf_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.248.42 ] ${temp_list} Verifies that the given item is not empty. Length is 1 @{temp_list} @{ns_ip_list} = [ 172.21.248.42 ] @{temp_list} ${temp_list} ${ns_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.249.39 | 172.21.248.42 ] ecf4b47e-8abc-49f5-bff3-15d0f0a644ea ${ns_id} Logs the given message with the given level. ecf4b47e-8abc-49f5-bff3-15d0f0a644ea @{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 ecf4b47e-8abc-49f5-bff3-15d0f0a644ea | grep ecf4b47e-8abc-49f5-bff3-15d0f0a644ea | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | e760a2d4-0b4b-4e30-a0f5-203c4c1e1158 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ e760a2d4-0b4b-4e30-a0f5-203c4c1e1158 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: e760a2d4-0b4b-4e30-a0f5-203c4c1e1158 @{vnf_list} @{vnf_id_list} = [ e760a2d4-0b4b-4e30-a0f5-203c4c1e1158 ] @{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} e760a2d4-0b4b-4e30-a0f5-203c4c1e1158 ${vnf_id} Logs the given message with the given level. e760a2d4-0b4b-4e30-a0f5-203c4c1e1158 @{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=e760a2d4-0b4b-4e30-a0f5-203c4c1e1158 | 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.107 ] ${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.248.107 ] ${vnf_ip_list} Logs the given messages as separate entries using the INFO level. ['172.21.248.107'] ${vnf_ip_list} Verifies that the given item is not empty. Length is 1 @{vnf_ip_list} @{vnf_ip_list} = [ 172.21.248.107 ] @{temp_list} ${temp_list} ${vnf_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.248.107 ] ${temp_list} Verifies that the given item is not empty. Length is 1 @{temp_list} @{ns_ip_list} = [ 172.21.248.107 ] @{temp_list} ${temp_list} ${ns_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.249.39 | 172.21.248.42 | 172.21.248.107 ] ${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.39 1: 172.21.248.42 2: 172.21.248.107 @{temp_list} @{ip_list} = [ 172.21.249.39 | 172.21.248.42 | 172.21.248.107 ] ${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.39', '172.21.248.42', '172.21.248.107'] Obtains the list of IPs addresses in the first slice and sets the list as a suite variable (slice1_vnfs_ips) cluster_slices daily regression slice_02 60s Waiting for the network to be up Pauses the test executed for the given time. Slept 1 minute Waiting for the network to be up ${MGMT_VNF_IP} Ping a host several times during 30sec until it succeeds or raises a timeout. ${CONNECTIVITY_MAX_WAIT_TIME} ${CONNECTIVITY_POL_TIME} Test Ping Host ${host} Runs the specified keyword and retries if it fails. ${host} Run Ping Parameters: host: IP or name of the host Execution example: Ping Test ${host} ${rc} ${stdout} ping -c 2 -W 1 ${host} Runs the given command in the system and returns the RC and output. Running command 'ping -c 2 -W 1 172.21.248.42 2>&1'. ${rc} = 0 ${stdout} = PING 172.21.248.42 (172.21.248.42) 56(84) bytes of data. 64 bytes from 172.21.248.42: icmp_seq=1 ttl=63 time=3.00 ms 64 bytes from 172.21.248.42: icmp_seq=2 ttl=63 time=0.870 ms --- 172.21.248.42 pin... ${stdout} Logs the given message with the given level. PING 172.21.248.42 (172.21.248.42) 56(84) bytes of data. 64 bytes from 172.21.248.42: icmp_seq=1 ttl=63 time=3.00 ms 64 bytes from 172.21.248.42: icmp_seq=2 ttl=63 time=0.870 ms --- 172.21.248.42 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 0.870/1.937/3.004/1.067 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.248.42: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 14 03:50:02 UTC 2024 System load: 0.02 Users logged in: 0 Usage of /: 11.5% of 9.52GB IP address for ens3: 172.21.248.42 Memory usage: 12% IP address for ens4: 192.168.133.13 Swap usage: 0% IP address for ens5: 192.168.167.116 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_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.248.42: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 14 03:50:04 UTC 2024 System load: 0.02 Users logged in: 0 Usage of /: 11.8% of 9.52GB IP address for ens3: 172.21.248.42 Memory usage: 12% IP address for ens4: 192.168.133.13 Swap usage: 0% IP address for ens5: 192.168.167.116 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 14 03:50:03 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.39 ${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.39 > /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.42 ${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.42 > /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.107 ${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.107 > /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} = 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 | 24c60f15-49bd-44a2-b64e-f1fd1c305932 ] @{ns_list} ${ns_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{ns_list} = [ 24c60f15-49bd-44a2-b64e-f1fd1c305932 ] ${ns_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 24c60f15-49bd-44a2-b64e-f1fd1c305932 @{ns_list} @{slice_ns_list} = [ 24c60f15-49bd-44a2-b64e-f1fd1c305932 ] @{slice_ns_list} Logs the given messages as separate entries using the INFO level. 24c60f15-49bd-44a2-b64e-f1fd1c305932 @{temp_list} Returns a list containing given items. @{temp_list} = [ ] ${ns_id} @{slice_ns_list} 24c60f15-49bd-44a2-b64e-f1fd1c305932 ${ns_id} Logs the given message with the given level. 24c60f15-49bd-44a2-b64e-f1fd1c305932 @{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 24c60f15-49bd-44a2-b64e-f1fd1c305932 | grep 24c60f15-49bd-44a2-b64e-f1fd1c305932 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 9011c9a2-210e-42ec-b198-a91382f219cc ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 9011c9a2-210e-42ec-b198-a91382f219cc ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 9011c9a2-210e-42ec-b198-a91382f219cc @{vnf_list} @{vnf_id_list} = [ 9011c9a2-210e-42ec-b198-a91382f219cc ] @{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} 9011c9a2-210e-42ec-b198-a91382f219cc ${vnf_id} Logs the given message with the given level. 9011c9a2-210e-42ec-b198-a91382f219cc @{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=9011c9a2-210e-42ec-b198-a91382f219cc | 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.196 ] ${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.248.196 ] ${vnf_ip_list} Logs the given messages as separate entries using the INFO level. ['172.21.248.196'] ${vnf_ip_list} Verifies that the given item is not empty. Length is 1 @{vnf_ip_list} @{vnf_ip_list} = [ 172.21.248.196 ] @{temp_list} ${temp_list} ${vnf_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.248.196 ] ${temp_list} Verifies that the given item is not empty. Length is 1 @{temp_list} @{ns_ip_list} = [ 172.21.248.196 ] @{temp_list} ${temp_list} ${ns_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.248.196 ] ${temp_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 172.21.248.196 @{temp_list} @{ip_list} = [ 172.21.248.196 ] ${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.248.196'] Obtains the list of IPs addresses in the second slice and sets the list as a suite variable (slice2_vnfs_ips) cluster_slices daily regression slice_02 ${MGMT_VNF_IP} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} @{SLICE2_VNFS_IPS} Connect via SSH to a remote host and test ping to a list of IP addresses, passed as argument. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.248.42: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 14 03:51:00 UTC 2024 System load: 0.01 Users logged in: 0 Usage of /: 11.8% of 9.52GB IP address for ens3: 172.21.248.42 Memory usage: 12% IP address for ens4: 192.168.133.13 Swap usage: 0% IP address for ens5: 192.168.167.116 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 14 03:50:05 2024 from 172.21.249.4 To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@slicebasic:~$ ${ip} @{ip_list} 172.21.248.196 ${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.196 > /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 72da05ce-d5bf-424f-8999-ac4b99949b4e ${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} = 72da05ce-d5bf-424f-8999-ac4b99949b4e ${id} ${id} = 72da05ce-d5bf-424f-8999-ac4b99949b4e ${id} Logs the given message with the given level. 72da05ce-d5bf-424f-8999-ac4b99949b4e ${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} = c20f510d-aeb3-434a-a238-18ec3c4eeedc ${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} = c20f510d-aeb3-434a-a238-18ec3c4eeedc ${CREATED_VIM_ACCOUNT_ID} Makes a variable available everywhere within the scope of the current suite. ${CREATED_VIM_ACCOUNT_ID} = c20f510d-aeb3-434a-a238-18ec3c4eeedc 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.248.26 ${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.248.26' 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.248.26: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.248.26: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.248.26: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.248.26:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 14 Apr 2024 03:52:19 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/cpdfnfkZOf8s4RCDsP2ReX18KWcyorGk', 'Content-Length': '652', 'Set-Cookie': 'session_id=6233086ff4d228166a5ce8059e6c825b89f380dc; expires=Sun, 14 Apr 2024 04:52:19 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1713066739.645627, "expires": 1713070339.645627, "_id": "cpdfnfkZOf8s4RCDsP2ReX18KWcyorGk", "id": "cpdfnfkZOf8s4RCDsP2ReX18KWcyorGk", "project_id": "631aecb9-5952-4e8c-b924-78254cf6fa87", "project_name": "admin", "username": "admin", "user_id": "f1fd7061-d926-4146-b6c2-8622147522a7", "admin": true, "roles": [ { "name": "system_admin", "id": "89562f83-b8b5-4112-8b19-e8f9a14cbea1" } ], "login_count": 0, "last_login": 1713066739.45877, "admin_show": true, "user_show": false, "remote_port": 59915, "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} = ['cpdfnfkZOf8s4RCDsP2ReX18KWcyorGk', '89562f83-b8b5-4112-8b19-e8f9a14cbea1'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = cpdfnfkZOf8s4RCDsP2ReX18KWcyorGk ${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': 'c20f510d-aeb3-434a-a238-18ec3c4eeedc', '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': 'c20f510d-aeb3-434a-a238-18ec3c4eeedc', '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': 'c20f510d-aeb3-434a-a238-18ec3c4eeedc', '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': 'c20f510d-aeb3-434a-a238-18ec3c4eeedc', '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': 'c20f510d-aeb3-434a-a238-18ec3c4eeedc', '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': 'c20f510d-aeb3-434a-a238-18ec3c4eeedc', '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': 'c20f510d-aeb3-434a-a238-18ec3c4eeedc', '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.248.26: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 cpdfnfkZOf8s4RCDsP2ReX18KWcyorGk } ${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.248.26: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 cpdfnfkZOf8s4RCDsP2ReX18KWcyorGk', 'Content-Length': '355'} body=b'{"vnfdId": "hackfest_basic_metrics-vnf", "vnfInstanceName": "sol003-instance", "vnfInstanceDescription": "Test vnfm instance description", "vimAccountId": "c20f510d-aeb3-434a-a238-18ec3c4eeedc", "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.248.26: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, 14 Apr 2024 03:52:22 GMT', 'Location': '/osm/vnflcm/v1/vnf_instances/2de3cfef-b572-4460-9edc-bbc6f2513362', 'Content-Length': '53', 'Set-Cookie': 'session_id=4be0f543fa76404b177a8fdd7e7156959fcf023a; expires=Sun, 14 Apr 2024 04:52:22 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "id": "2de3cfef-b572-4460-9edc-bbc6f2513362" } ${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} = ['2de3cfef-b572-4460-9edc-bbc6f2513362'] ${CREATEID} ${id[0]} Makes a variable available everywhere within the scope of the current suite. ${CREATEID} = 2de3cfef-b572-4460-9edc-bbc6f2513362 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 | 72da05ce-d5bf-424f-8999-ac4b99949b4e | 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 | 0fa3b7e5-2c7d-45d7-8040-e37758f61831 | 2024-04-14T03:52:23 | 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 | +--------------------------------------+------+--------------------------------------+------------------+----------------------------+----------------+------------+ | 2de3cfef-b572-4460-9edc-bbc6f2513362 | - | 0fa3b7e5-2c7d-45d7-8040-e37758f61831 | 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.248.26 ${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.248.26' 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.248.26: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.248.26: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.248.26: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.248.26:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 14 Apr 2024 03:52:27 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/9klS3N2G5fzudXCX14BP0qyDxr8hwkYC', 'Content-Length': '653', 'Set-Cookie': 'session_id=ec413cfa696d1113c2241090b3cc8746de92c189; expires=Sun, 14 Apr 2024 04:52:27 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1713066747.068575, "expires": 1713070347.068575, "_id": "9klS3N2G5fzudXCX14BP0qyDxr8hwkYC", "id": "9klS3N2G5fzudXCX14BP0qyDxr8hwkYC", "project_id": "631aecb9-5952-4e8c-b924-78254cf6fa87", "project_name": "admin", "username": "admin", "user_id": "f1fd7061-d926-4146-b6c2-8622147522a7", "admin": true, "roles": [ { "name": "system_admin", "id": "89562f83-b8b5-4112-8b19-e8f9a14cbea1" } ], "login_count": 0, "last_login": 1713066745.839556, "admin_show": true, "user_show": false, "remote_port": 29193, "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} = ['9klS3N2G5fzudXCX14BP0qyDxr8hwkYC', '89562f83-b8b5-4112-8b19-e8f9a14cbea1'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = 9klS3N2G5fzudXCX14BP0qyDxr8hwkYC ${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': 'c20f510d-aeb3-434a-a238-18ec3c4eeedc'} ${UPDATED_JSON_OBJ} ${UPDATED_JSON_OBJ} $..vnfId ${CREATEID} Update value to JSON using JSONPath ${UPDATED_JSON_OBJ} = {'vnfName': 'sol003-instance', 'vnfDescription': 'vnf package', 'vnfId': '2de3cfef-b572-4460-9edc-bbc6f2513362', 'vimAccountId': 'c20f510d-aeb3-434a-a238-18ec3c4eeedc'} ${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': '2de3cfef-b572-4460-9edc-bbc6f2513362', 'vimAccountId': 'c20f510d-aeb3-434a-a238-18ec3c4eeedc'} ${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.248.26: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 9klS3N2G5fzudXCX14BP0qyDxr8hwkYC } ${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.248.26:9999/osm/vnflcm/v1/vnf_instances/2de3cfef-b572-4460-9edc-bbc6f2513362/instantiate path_url=/osm/vnflcm/v1/vnf_instances/2de3cfef-b572-4460-9edc-bbc6f2513362/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 9klS3N2G5fzudXCX14BP0qyDxr8hwkYC', 'Content-Length': '168'} body=b'{"vnfName": "sol003-instance", "vnfDescription": "vnf package", "vnfId": "2de3cfef-b572-4460-9edc-bbc6f2513362", "vimAccountId": "c20f510d-aeb3-434a-a238-18ec3c4eeedc"}' POST Response : url=https://172.21.248.26:9999/osm/vnflcm/v1/vnf_instances/2de3cfef-b572-4460-9edc-bbc6f2513362/instantiate status=202, reason=Accepted headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 14 Apr 2024 03:52:30 GMT', 'Location': '/osm/vnflcm/v1/vnf_lcm_op_occs/02604b10-bd96-468c-b7b6-65c18003500b', 'Content-Length': '53', 'Set-Cookie': 'session_id=03c15c53ae991b5644a484960d78a2b4029bf184; expires=Sun, 14 Apr 2024 04:52:30 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "id": "02604b10-bd96-468c-b7b6-65c18003500b" } ${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} = ['02604b10-bd96-468c-b7b6-65c18003500b'] ${INSTANTIATEID} ${id[0]} Makes a variable available everywhere within the scope of the current suite. ${INSTANTIATEID} = 02604b10-bd96-468c-b7b6-65c18003500b 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 | 0fa3b7e5-2c7d-45d7-8040-e37758f61831 | 2024-04-14T03:52:23 | BUILDING | INSTANTIATING (02604b10-bd96-468c-b7b6-65c18003500b) | N/A | +--------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show 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 | +--------------------------------------+------+--------------------------------------+------------------+----------------------------+--------------------------------------+------------+ | 2de3cfef-b572-4460-9edc-bbc6f2513362 | - | 0fa3b7e5-2c7d-45d7-8040-e37758f61831 | 1 | hackfest_basic_metrics-vnf | c20f510d-aeb3-434a-a238-18ec3c4eeedc | 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.248.26 ${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.248.26' 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.248.26: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.248.26: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.248.26: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.248.26:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 14 Apr 2024 03:52:44 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/etPUHBsDPRGX8YFuayMRwfXGZ39X24EL', 'Content-Length': '653', 'Set-Cookie': 'session_id=99dd54689d8724795e3102ba7ee2f2bbf649edcd; expires=Sun, 14 Apr 2024 04:52:44 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1713066764.624775, "expires": 1713070364.624775, "_id": "etPUHBsDPRGX8YFuayMRwfXGZ39X24EL", "id": "etPUHBsDPRGX8YFuayMRwfXGZ39X24EL", "project_id": "631aecb9-5952-4e8c-b924-78254cf6fa87", "project_name": "admin", "username": "admin", "user_id": "f1fd7061-d926-4146-b6c2-8622147522a7", "admin": true, "roles": [ { "name": "system_admin", "id": "89562f83-b8b5-4112-8b19-e8f9a14cbea1" } ], "login_count": 0, "last_login": 1713066763.4187512, "admin_show": true, "user_show": false, "remote_port": 2281, "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} = ['etPUHBsDPRGX8YFuayMRwfXGZ39X24EL', '89562f83-b8b5-4112-8b19-e8f9a14cbea1'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = etPUHBsDPRGX8YFuayMRwfXGZ39X24EL ${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.248.26: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 etPUHBsDPRGX8YFuayMRwfXGZ39X24EL } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.26: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 etPUHBsDPRGX8YFuayMRwfXGZ39X24EL'} body=None GET Response : url=https://172.21.248.26: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, 14 Apr 2024 03:52:47 GMT', 'Content-Length': '4519', 'Set-Cookie': 'session_id=3c1498bb307e06fcd92d23c3bb2dcc4a836220ce; expires=Sun, 14 Apr 2024 04:52:47 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body=[ { "_id": "2de3cfef-b572-4460-9edc-bbc6f2513362", "id": "2de3cfef-b572-4460-9edc-bbc6f2513362", "nsr-id-ref": "0fa3b7e5-2c7d-45d7-8040-e37758f61831", "member-vnf-index-ref": "1", "additionalParamsForVnf": null, "created-time": 1713066743.0889268, "vnfd-ref": "hackfest_basic_metrics-vnf", "vnfd-id": "72da05ce-d5bf-424f-8999-ac4b99949b4e", "vim-account-id": "c20f510d-aeb3-434a-a238-18ec3c4eeedc", "vca-id": null, "vdur": [ { "_id": "958e5eee-8960-4a31-8b9b-9ffea1c58aa0", "additionalParams": { "OSM": { "count_index": 0, "member_vnf_index": "1", "ns_id": "0fa3b7e5-2c7d-45d7-8040-e37758f61831", "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": "c20f510d-aeb3-434a-a238-18ec3c4eeedc", "vnf_id": "2de3cfef-b572-4460-9edc-bbc6f2513362", "vnfd_id": "72da05ce-d5bf-424f-8999-ac4b99949b4e", "vnfd_ref": "hackfest_basic_metrics-vnf" } }, "affinity-or-anti-affinity-group-id": [], "alt-image-ids": [ "1", "2", "3" ], "cloud-init": "72da05ce-d5bf-424f-8999-ac4b99949b4e:file:cloud-config", "count-index": 0, "id": "958e5eee-8960-4a31-8b9b-9ffea1c58aa0", "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:c20f510d-aeb3-434a-a238-18ec3c4eeedc": { "interfaces": [], "interfaces_backup": [], "vim_details": null, "vim_id": "35567294-a770-425e-ab05-15a6c50b6a4f", "vim_message": null, "vim_status": "BUILD" } }, "virtual-storages": [ { "id": "hackfest_basic_metrics-VM-storage", "size-of-storage": "10" } ], "status": "BUILD", "vim-id": "35567294-a770-425e-ab05-15a6c50b6a4f" } ], "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": 1713066743.0890477, "modified": 1713066743.0890477, "projects_read": [ "631aecb9-5952-4e8c-b924-78254cf6fa87" ], "projects_write": [ "631aecb9-5952-4e8c-b924-78254cf6fa87" ], "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} = ['2de3cfef-b572-4460-9edc-bbc6f2513362', '958e5eee-8960-4a31-8b9b-9ffea1c58aa0'] ${QUERYID} ${id[0]} Makes a variable available everywhere within the scope of the current suite. ${QUERYID} = 2de3cfef-b572-4460-9edc-bbc6f2513362 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.248.26 ${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.248.26' 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.248.26: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.248.26: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.248.26: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.248.26:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 14 Apr 2024 03:52:47 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/7O74IOH9WvNiFexOG7qvrO5Bl646ncga', 'Content-Length': '655', 'Set-Cookie': 'session_id=e1328bb7c7dd925de2a8c371b53a6d97e130ab14; expires=Sun, 14 Apr 2024 04:52:47 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1713066767.8371265, "expires": 1713070367.8371265, "_id": "7O74IOH9WvNiFexOG7qvrO5Bl646ncga", "id": "7O74IOH9WvNiFexOG7qvrO5Bl646ncga", "project_id": "631aecb9-5952-4e8c-b924-78254cf6fa87", "project_name": "admin", "username": "admin", "user_id": "f1fd7061-d926-4146-b6c2-8622147522a7", "admin": true, "roles": [ { "name": "system_admin", "id": "89562f83-b8b5-4112-8b19-e8f9a14cbea1" } ], "login_count": 0, "last_login": 1713066764.624775, "admin_show": true, "user_show": false, "remote_port": 41750, "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} = ['7O74IOH9WvNiFexOG7qvrO5Bl646ncga', '89562f83-b8b5-4112-8b19-e8f9a14cbea1'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = 7O74IOH9WvNiFexOG7qvrO5Bl646ncga ${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.248.26: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 7O74IOH9WvNiFexOG7qvrO5Bl646ncga } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.26:9999/osm/vnflcm/v1/vnf_instances/2de3cfef-b572-4460-9edc-bbc6f2513362 path_url=/osm/vnflcm/v1/vnf_instances/2de3cfef-b572-4460-9edc-bbc6f2513362 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer 7O74IOH9WvNiFexOG7qvrO5Bl646ncga'} body=None GET Response : url=https://172.21.248.26:9999/osm/vnflcm/v1/vnf_instances/2de3cfef-b572-4460-9edc-bbc6f2513362 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 14 Apr 2024 03:52:49 GMT', 'Content-Length': '4071', 'Set-Cookie': 'session_id=d8d9c34caa7fdf11093133dd423e9bc0bb6dfc88; expires=Sun, 14 Apr 2024 04:52:49 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "2de3cfef-b572-4460-9edc-bbc6f2513362", "id": "2de3cfef-b572-4460-9edc-bbc6f2513362", "nsr-id-ref": "0fa3b7e5-2c7d-45d7-8040-e37758f61831", "member-vnf-index-ref": "1", "additionalParamsForVnf": null, "created-time": 1713066743.0889268, "vnfd-ref": "hackfest_basic_metrics-vnf", "vnfd-id": "72da05ce-d5bf-424f-8999-ac4b99949b4e", "vim-account-id": "c20f510d-aeb3-434a-a238-18ec3c4eeedc", "vca-id": null, "vdur": [ { "_id": "958e5eee-8960-4a31-8b9b-9ffea1c58aa0", "additionalParams": { "OSM": { "count_index": 0, "member_vnf_index": "1", "ns_id": "0fa3b7e5-2c7d-45d7-8040-e37758f61831", "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": "c20f510d-aeb3-434a-a238-18ec3c4eeedc", "vnf_id": "2de3cfef-b572-4460-9edc-bbc6f2513362", "vnfd_id": "72da05ce-d5bf-424f-8999-ac4b99949b4e", "vnfd_ref": "hackfest_basic_metrics-vnf" } }, "affinity-or-anti-affinity-group-id": [], "alt-image-ids": [ "1", "2", "3" ], "cloud-init": "72da05ce-d5bf-424f-8999-ac4b99949b4e:file:cloud-config", "count-index": 0, "id": "958e5eee-8960-4a31-8b9b-9ffea1c58aa0", "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:c20f510d-aeb3-434a-a238-18ec3c4eeedc": { "interfaces": [], "interfaces_backup": [], "vim_details": null, "vim_id": "35567294-a770-425e-ab05-15a6c50b6a4f", "vim_message": null, "vim_status": "BUILD" } }, "virtual-storages": [ { "id": "hackfest_basic_metrics-VM-storage", "size-of-storage": "10" } ], "status": "BUILD", "vim-id": "35567294-a770-425e-ab05-15a6c50b6a4f" } ], "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": 1713066743.0890477, "modified": 1713066743.0890477, "projects_read": [ "631aecb9-5952-4e8c-b924-78254cf6fa87" ], "projects_write": [ "631aecb9-5952-4e8c-b924-78254cf6fa87" ], "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} = ['2de3cfef-b572-4460-9edc-bbc6f2513362', '958e5eee-8960-4a31-8b9b-9ffea1c58aa0'] ${INSTANCEID} ${id[0]} Makes a variable available everywhere within the scope of the current suite. ${INSTANCEID} = 2de3cfef-b572-4460-9edc-bbc6f2513362 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.248.26 ${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.248.26' 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.248.26: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.248.26: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.248.26: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.248.26:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 14 Apr 2024 03:52:50 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/m7wUpdgqBzKsYa4vgI8d9El9BqeBV7Cu', 'Content-Length': '656', 'Set-Cookie': 'session_id=b964f731124e00a91d9c9439260383a598b217fb; expires=Sun, 14 Apr 2024 04:52:50 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1713066770.0861707, "expires": 1713070370.0861707, "_id": "m7wUpdgqBzKsYa4vgI8d9El9BqeBV7Cu", "id": "m7wUpdgqBzKsYa4vgI8d9El9BqeBV7Cu", "project_id": "631aecb9-5952-4e8c-b924-78254cf6fa87", "project_name": "admin", "username": "admin", "user_id": "f1fd7061-d926-4146-b6c2-8622147522a7", "admin": true, "roles": [ { "name": "system_admin", "id": "89562f83-b8b5-4112-8b19-e8f9a14cbea1" } ], "login_count": 0, "last_login": 1713066767.8371265, "admin_show": true, "user_show": false, "remote_port": 19485, "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} = ['m7wUpdgqBzKsYa4vgI8d9El9BqeBV7Cu', '89562f83-b8b5-4112-8b19-e8f9a14cbea1'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = m7wUpdgqBzKsYa4vgI8d9El9BqeBV7Cu ${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.248.26: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 m7wUpdgqBzKsYa4vgI8d9El9BqeBV7Cu } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.26: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 m7wUpdgqBzKsYa4vgI8d9El9BqeBV7Cu'} body=None GET Response : url=https://172.21.248.26: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, 14 Apr 2024 03:52:52 GMT', 'Content-Length': '1302', 'Set-Cookie': 'session_id=6e91a40da1b2719c33f4178a50ddfbfffc972e23; expires=Sun, 14 Apr 2024 04:52:52 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body=[ { "_id": "02604b10-bd96-468c-b7b6-65c18003500b", "id": "02604b10-bd96-468c-b7b6-65c18003500b", "operationState": "PROCESSING", "queuePosition": 0, "stage": "Stage 2/5: deployment of KDUs, VMs and execution environments.", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1713066750.2788305, "lcmOperationType": "instantiate", "startTime": 1713066750.2788305, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1713066750.2788706, "modified": 1713066765.7215393, "projects_read": [ "631aecb9-5952-4e8c-b924-78254cf6fa87" ], "projects_write": [ "631aecb9-5952-4e8c-b924-78254cf6fa87" ], "worker": "1f0b07f20d14" }, "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/02604b10-bd96-468c-b7b6-65c18003500b", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/2de3cfef-b572-4460-9edc-bbc6f2513362" }, "vnfInstanceId": "2de3cfef-b572-4460-9edc-bbc6f2513362" } ] ${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} = ['02604b10-bd96-468c-b7b6-65c18003500b'] ${LCMOPS} ${id1[0]} Makes a variable available everywhere within the scope of the current suite. ${LCMOPS} = 02604b10-bd96-468c-b7b6-65c18003500b ${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.248.26: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 m7wUpdgqBzKsYa4vgI8d9El9BqeBV7Cu } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.26: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 m7wUpdgqBzKsYa4vgI8d9El9BqeBV7Cu'} body=None GET Response : url=https://172.21.248.26: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, 14 Apr 2024 03:52:52 GMT', 'Content-Length': '1302', 'Set-Cookie': 'session_id=f3aa2055e832c342f5975d0553523c3f31465db3; expires=Sun, 14 Apr 2024 04:52:52 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body=[ { "_id": "02604b10-bd96-468c-b7b6-65c18003500b", "id": "02604b10-bd96-468c-b7b6-65c18003500b", "operationState": "PROCESSING", "queuePosition": 0, "stage": "Stage 2/5: deployment of KDUs, VMs and execution environments.", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1713066750.2788305, "lcmOperationType": "instantiate", "startTime": 1713066750.2788305, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1713066750.2788706, "modified": 1713066765.7215393, "projects_read": [ "631aecb9-5952-4e8c-b924-78254cf6fa87" ], "projects_write": [ "631aecb9-5952-4e8c-b924-78254cf6fa87" ], "worker": "1f0b07f20d14" }, "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/02604b10-bd96-468c-b7b6-65c18003500b", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/2de3cfef-b572-4460-9edc-bbc6f2513362" }, "vnfInstanceId": "2de3cfef-b572-4460-9edc-bbc6f2513362" } ] ${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.248.26: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 m7wUpdgqBzKsYa4vgI8d9El9BqeBV7Cu } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.26: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 m7wUpdgqBzKsYa4vgI8d9El9BqeBV7Cu'} body=None GET Response : url=https://172.21.248.26: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, 14 Apr 2024 03:53:02 GMT', 'Content-Length': '1155', 'Set-Cookie': 'session_id=376462fc551e62ad7cea71d774d9c467f1c7ce96; expires=Sun, 14 Apr 2024 04:53:02 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body=[ { "_id": "02604b10-bd96-468c-b7b6-65c18003500b", "id": "02604b10-bd96-468c-b7b6-65c18003500b", "operationState": "COMPLETED", "queuePosition": 0, "stage": "", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1713066780.861807, "lcmOperationType": "instantiate", "startTime": 1713066750.2788305, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1713066750.2788706, "modified": 1713066780.8618095, "projects_read": [ "631aecb9-5952-4e8c-b924-78254cf6fa87" ], "projects_write": [ "631aecb9-5952-4e8c-b924-78254cf6fa87" ], "worker": "1f0b07f20d14" }, "detailed-status": "Done", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/02604b10-bd96-468c-b7b6-65c18003500b", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/2de3cfef-b572-4460-9edc-bbc6f2513362" }, "vnfInstanceId": "2de3cfef-b572-4460-9edc-bbc6f2513362" } ] ${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.248.26 ${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.248.26' 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.248.26: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.248.26: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.248.26: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.248.26:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 14 Apr 2024 03:53:02 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/9qmXT392Dx1Gz6yaaC6EuETG56cucO3V', 'Content-Length': '656', 'Set-Cookie': 'session_id=14563b9207149ece47c866b351dacce588874763; expires=Sun, 14 Apr 2024 04:53:02 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1713066782.4499128, "expires": 1713070382.4499128, "_id": "9qmXT392Dx1Gz6yaaC6EuETG56cucO3V", "id": "9qmXT392Dx1Gz6yaaC6EuETG56cucO3V", "project_id": "631aecb9-5952-4e8c-b924-78254cf6fa87", "project_name": "admin", "username": "admin", "user_id": "f1fd7061-d926-4146-b6c2-8622147522a7", "admin": true, "roles": [ { "name": "system_admin", "id": "89562f83-b8b5-4112-8b19-e8f9a14cbea1" } ], "login_count": 0, "last_login": 1713066770.0861707, "admin_show": true, "user_show": false, "remote_port": 29194, "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} = ['9qmXT392Dx1Gz6yaaC6EuETG56cucO3V', '89562f83-b8b5-4112-8b19-e8f9a14cbea1'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = 9qmXT392Dx1Gz6yaaC6EuETG56cucO3V ${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.248.26: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 9qmXT392Dx1Gz6yaaC6EuETG56cucO3V } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.26:9999/osm/vnflcm/v1/vnf_lcm_op_occs/02604b10-bd96-468c-b7b6-65c18003500b path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/02604b10-bd96-468c-b7b6-65c18003500b headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer 9qmXT392Dx1Gz6yaaC6EuETG56cucO3V'} body=None GET Response : url=https://172.21.248.26:9999/osm/vnflcm/v1/vnf_lcm_op_occs/02604b10-bd96-468c-b7b6-65c18003500b status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 14 Apr 2024 03:53:04 GMT', 'Content-Length': '1027', 'Set-Cookie': 'session_id=73113ff485007910eaf453ef7a1ebf978f4c12b4; expires=Sun, 14 Apr 2024 04:53:04 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "02604b10-bd96-468c-b7b6-65c18003500b", "id": "02604b10-bd96-468c-b7b6-65c18003500b", "operationState": "COMPLETED", "queuePosition": 0, "stage": "", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1713066780.861807, "lcmOperationType": "instantiate", "startTime": 1713066750.2788305, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1713066750.2788706, "modified": 1713066780.8618095, "projects_read": [ "631aecb9-5952-4e8c-b924-78254cf6fa87" ], "projects_write": [ "631aecb9-5952-4e8c-b924-78254cf6fa87" ], "worker": "1f0b07f20d14" }, "detailed-status": "Done", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/02604b10-bd96-468c-b7b6-65c18003500b", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/2de3cfef-b572-4460-9edc-bbc6f2513362" }, "vnfInstanceId": "2de3cfef-b572-4460-9edc-bbc6f2513362" } ${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} = ['02604b10-bd96-468c-b7b6-65c18003500b'] ${LCMOPSID} ${id1[0]} Makes a variable available everywhere within the scope of the current suite. ${LCMOPSID} = 02604b10-bd96-468c-b7b6-65c18003500b ${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.248.26: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 9qmXT392Dx1Gz6yaaC6EuETG56cucO3V } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.26:9999/osm/vnflcm/v1/vnf_lcm_op_occs/02604b10-bd96-468c-b7b6-65c18003500b path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/02604b10-bd96-468c-b7b6-65c18003500b headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer 9qmXT392Dx1Gz6yaaC6EuETG56cucO3V'} body=None GET Response : url=https://172.21.248.26:9999/osm/vnflcm/v1/vnf_lcm_op_occs/02604b10-bd96-468c-b7b6-65c18003500b status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 14 Apr 2024 03:53:04 GMT', 'Content-Length': '1027', 'Set-Cookie': 'session_id=ddf13ac76f978960f9b5195d9b16fe3443500da4; expires=Sun, 14 Apr 2024 04:53:04 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "02604b10-bd96-468c-b7b6-65c18003500b", "id": "02604b10-bd96-468c-b7b6-65c18003500b", "operationState": "COMPLETED", "queuePosition": 0, "stage": "", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1713066780.861807, "lcmOperationType": "instantiate", "startTime": 1713066750.2788305, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1713066750.2788706, "modified": 1713066780.8618095, "projects_read": [ "631aecb9-5952-4e8c-b924-78254cf6fa87" ], "projects_write": [ "631aecb9-5952-4e8c-b924-78254cf6fa87" ], "worker": "1f0b07f20d14" }, "detailed-status": "Done", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/02604b10-bd96-468c-b7b6-65c18003500b", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/2de3cfef-b572-4460-9edc-bbc6f2513362" }, "vnfInstanceId": "2de3cfef-b572-4460-9edc-bbc6f2513362" } ${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.248.26 ${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.248.26' 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.248.26: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.248.26: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.248.26: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.248.26:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 14 Apr 2024 03:53:04 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/xrWkoOwVbG1xHkPpC6yH7cCBd9XZy9Jk', 'Content-Length': '656', 'Set-Cookie': 'session_id=1bb240bf72fb64de0b7791e65784003375e84a7e; expires=Sun, 14 Apr 2024 04:53:04 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1713066784.7368417, "expires": 1713070384.7368417, "_id": "xrWkoOwVbG1xHkPpC6yH7cCBd9XZy9Jk", "id": "xrWkoOwVbG1xHkPpC6yH7cCBd9XZy9Jk", "project_id": "631aecb9-5952-4e8c-b924-78254cf6fa87", "project_name": "admin", "username": "admin", "user_id": "f1fd7061-d926-4146-b6c2-8622147522a7", "admin": true, "roles": [ { "name": "system_admin", "id": "89562f83-b8b5-4112-8b19-e8f9a14cbea1" } ], "login_count": 0, "last_login": 1713066782.4499128, "admin_show": true, "user_show": false, "remote_port": 58004, "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} = ['xrWkoOwVbG1xHkPpC6yH7cCBd9XZy9Jk', '89562f83-b8b5-4112-8b19-e8f9a14cbea1'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = xrWkoOwVbG1xHkPpC6yH7cCBd9XZy9Jk ${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.248.26: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 xrWkoOwVbG1xHkPpC6yH7cCBd9XZy9Jk } ${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.248.26:9999/osm/vnflcm/v1/vnf_instances/2de3cfef-b572-4460-9edc-bbc6f2513362/scale path_url=/osm/vnflcm/v1/vnf_instances/2de3cfef-b572-4460-9edc-bbc6f2513362/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 xrWkoOwVbG1xHkPpC6yH7cCBd9XZy9Jk', 'Content-Length': '119'} body=b'{"type": "SCALE_OUT", "aspectId": "vdu_autoscale", "numberOfSteps": "1", "additionalParams": {"member-vnf-index": "1"}}' POST Response : url=https://172.21.248.26:9999/osm/vnflcm/v1/vnf_instances/2de3cfef-b572-4460-9edc-bbc6f2513362/scale status=202, reason=Accepted headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 14 Apr 2024 03:53:06 GMT', 'Location': '/osm/vnflcm/v1/vnf_lcm_op_occs/a1988e8d-8f9d-49a6-ba33-8a12e962a746', 'Content-Length': '53', 'Set-Cookie': 'session_id=f98d62cb0052d3bc8450bcac8b4c1c0649f7ca31; expires=Sun, 14 Apr 2024 04:53:06 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "id": "a1988e8d-8f9d-49a6-ba33-8a12e962a746" } ${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} = ['a1988e8d-8f9d-49a6-ba33-8a12e962a746'] ${id[0]} ${value} = a1988e8d-8f9d-49a6-ba33-8a12e962a746 ${id1} ${request_response.json()} $..id Get Value From JSON using JSONPath ${id1} = ['a1988e8d-8f9d-49a6-ba33-8a12e962a746'] ${SCALEOUTID} ${id1[0]} Makes a variable available everywhere within the scope of the current suite. ${SCALEOUTID} = a1988e8d-8f9d-49a6-ba33-8a12e962a746 ${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.248.26: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 xrWkoOwVbG1xHkPpC6yH7cCBd9XZy9Jk } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.26:9999/osm/vnflcm/v1/vnf_lcm_op_occs/a1988e8d-8f9d-49a6-ba33-8a12e962a746 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/a1988e8d-8f9d-49a6-ba33-8a12e962a746 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer xrWkoOwVbG1xHkPpC6yH7cCBd9XZy9Jk'} body=None GET Response : url=https://172.21.248.26:9999/osm/vnflcm/v1/vnf_lcm_op_occs/a1988e8d-8f9d-49a6-ba33-8a12e962a746 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 14 Apr 2024 03:53:07 GMT', 'Content-Length': '995', 'Set-Cookie': 'session_id=93203872e2aa05ec2baf56e45a8666bf66a7deb5; expires=Sun, 14 Apr 2024 04:53:07 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "a1988e8d-8f9d-49a6-ba33-8a12e962a746", "id": "a1988e8d-8f9d-49a6-ba33-8a12e962a746", "operationState": "PROCESSING", "queuePosition": null, "stage": null, "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1713066786.858947, "lcmOperationType": "scale", "startTime": 1713066786.858947, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1713066786.8589835, "modified": 1713066786.8589835, "projects_read": [ "631aecb9-5952-4e8c-b924-78254cf6fa87" ], "projects_write": [ "631aecb9-5952-4e8c-b924-78254cf6fa87" ], "worker": "1f0b07f20d14" }, "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/a1988e8d-8f9d-49a6-ba33-8a12e962a746", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/2de3cfef-b572-4460-9edc-bbc6f2513362" }, "vnfInstanceId": "2de3cfef-b572-4460-9edc-bbc6f2513362" } ${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} = ['a1988e8d-8f9d-49a6-ba33-8a12e962a746'] ${LCMOPSSCALEID} ${LcmopsScale[0]} Makes a variable available everywhere within the scope of the current suite. ${LCMOPSSCALEID} = a1988e8d-8f9d-49a6-ba33-8a12e962a746 ${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.248.26: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 xrWkoOwVbG1xHkPpC6yH7cCBd9XZy9Jk } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.26:9999/osm/vnflcm/v1/vnf_lcm_op_occs/a1988e8d-8f9d-49a6-ba33-8a12e962a746 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/a1988e8d-8f9d-49a6-ba33-8a12e962a746 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer xrWkoOwVbG1xHkPpC6yH7cCBd9XZy9Jk'} body=None GET Response : url=https://172.21.248.26:9999/osm/vnflcm/v1/vnf_lcm_op_occs/a1988e8d-8f9d-49a6-ba33-8a12e962a746 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 14 Apr 2024 03:53:07 GMT', 'Content-Length': '995', 'Set-Cookie': 'session_id=d9b4efaa2251abce4779c326385507d6c1ae2364; expires=Sun, 14 Apr 2024 04:53:07 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "a1988e8d-8f9d-49a6-ba33-8a12e962a746", "id": "a1988e8d-8f9d-49a6-ba33-8a12e962a746", "operationState": "PROCESSING", "queuePosition": null, "stage": null, "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1713066786.858947, "lcmOperationType": "scale", "startTime": 1713066786.858947, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1713066786.8589835, "modified": 1713066786.8589835, "projects_read": [ "631aecb9-5952-4e8c-b924-78254cf6fa87" ], "projects_write": [ "631aecb9-5952-4e8c-b924-78254cf6fa87" ], "worker": "1f0b07f20d14" }, "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/a1988e8d-8f9d-49a6-ba33-8a12e962a746", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/2de3cfef-b572-4460-9edc-bbc6f2513362" }, "vnfInstanceId": "2de3cfef-b572-4460-9edc-bbc6f2513362" } ${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.248.26: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 xrWkoOwVbG1xHkPpC6yH7cCBd9XZy9Jk } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.26:9999/osm/vnflcm/v1/vnf_lcm_op_occs/a1988e8d-8f9d-49a6-ba33-8a12e962a746 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/a1988e8d-8f9d-49a6-ba33-8a12e962a746 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer xrWkoOwVbG1xHkPpC6yH7cCBd9XZy9Jk'} body=None GET Response : url=https://172.21.248.26:9999/osm/vnflcm/v1/vnf_lcm_op_occs/a1988e8d-8f9d-49a6-ba33-8a12e962a746 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 14 Apr 2024 03:53:17 GMT', 'Content-Length': '1038', 'Set-Cookie': 'session_id=afc707f4a07eb8fa6ac663040a96b75c27cec52f; expires=Sun, 14 Apr 2024 04:53:17 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "a1988e8d-8f9d-49a6-ba33-8a12e962a746", "id": "a1988e8d-8f9d-49a6-ba33-8a12e962a746", "operationState": "PROCESSING", "queuePosition": 0, "stage": "", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1713066786.858947, "lcmOperationType": "scale", "startTime": 1713066786.858947, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1713066786.8589835, "modified": 1713066787.1719205, "projects_read": [ "631aecb9-5952-4e8c-b924-78254cf6fa87" ], "projects_write": [ "631aecb9-5952-4e8c-b924-78254cf6fa87" ], "worker": "1f0b07f20d14" }, "detailed-status": " VIM: (progress 0/1)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/a1988e8d-8f9d-49a6-ba33-8a12e962a746", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/2de3cfef-b572-4460-9edc-bbc6f2513362" }, "vnfInstanceId": "2de3cfef-b572-4460-9edc-bbc6f2513362" } ${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.248.26: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 xrWkoOwVbG1xHkPpC6yH7cCBd9XZy9Jk } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.26:9999/osm/vnflcm/v1/vnf_lcm_op_occs/a1988e8d-8f9d-49a6-ba33-8a12e962a746 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/a1988e8d-8f9d-49a6-ba33-8a12e962a746 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer xrWkoOwVbG1xHkPpC6yH7cCBd9XZy9Jk'} body=None GET Response : url=https://172.21.248.26:9999/osm/vnflcm/v1/vnf_lcm_op_occs/a1988e8d-8f9d-49a6-ba33-8a12e962a746 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 14 Apr 2024 03:53:27 GMT', 'Content-Length': '1038', 'Set-Cookie': 'session_id=08f9a6ccd063d79ef44318702200d885182b2583; expires=Sun, 14 Apr 2024 04:53:27 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "a1988e8d-8f9d-49a6-ba33-8a12e962a746", "id": "a1988e8d-8f9d-49a6-ba33-8a12e962a746", "operationState": "PROCESSING", "queuePosition": 0, "stage": "", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1713066786.858947, "lcmOperationType": "scale", "startTime": 1713066786.858947, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1713066786.8589835, "modified": 1713066787.1719205, "projects_read": [ "631aecb9-5952-4e8c-b924-78254cf6fa87" ], "projects_write": [ "631aecb9-5952-4e8c-b924-78254cf6fa87" ], "worker": "1f0b07f20d14" }, "detailed-status": " VIM: (progress 0/1)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/a1988e8d-8f9d-49a6-ba33-8a12e962a746", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/2de3cfef-b572-4460-9edc-bbc6f2513362" }, "vnfInstanceId": "2de3cfef-b572-4460-9edc-bbc6f2513362" } ${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.248.26: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 xrWkoOwVbG1xHkPpC6yH7cCBd9XZy9Jk } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.26:9999/osm/vnflcm/v1/vnf_lcm_op_occs/a1988e8d-8f9d-49a6-ba33-8a12e962a746 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/a1988e8d-8f9d-49a6-ba33-8a12e962a746 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer xrWkoOwVbG1xHkPpC6yH7cCBd9XZy9Jk'} body=None GET Response : url=https://172.21.248.26:9999/osm/vnflcm/v1/vnf_lcm_op_occs/a1988e8d-8f9d-49a6-ba33-8a12e962a746 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 14 Apr 2024 03:53:37 GMT', 'Content-Length': '1021', 'Set-Cookie': 'session_id=ed49e98ec415c6cd9b251edd68a261141a92aa11; expires=Sun, 14 Apr 2024 04:53:37 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "a1988e8d-8f9d-49a6-ba33-8a12e962a746", "id": "a1988e8d-8f9d-49a6-ba33-8a12e962a746", "operationState": "COMPLETED", "queuePosition": 0, "stage": "", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1713066817.2516704, "lcmOperationType": "scale", "startTime": 1713066786.858947, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1713066786.8589835, "modified": 1713066817.2516713, "projects_read": [ "631aecb9-5952-4e8c-b924-78254cf6fa87" ], "projects_write": [ "631aecb9-5952-4e8c-b924-78254cf6fa87" ], "worker": "1f0b07f20d14" }, "detailed-status": "Done", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/a1988e8d-8f9d-49a6-ba33-8a12e962a746", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/2de3cfef-b572-4460-9edc-bbc6f2513362" }, "vnfInstanceId": "2de3cfef-b572-4460-9edc-bbc6f2513362" } ${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.248.26 ${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.248.26' 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.248.26: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.248.26: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.248.26: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.248.26:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 14 Apr 2024 03:53:37 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/m9OFjS2OZnpjnaR59CWizNbdeWBSPhGx', 'Content-Length': '656', 'Set-Cookie': 'session_id=f6863822d47eedbf63dba18f6b5af4c3c462111b; expires=Sun, 14 Apr 2024 04:53:37 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1713066817.4458392, "expires": 1713070417.4458392, "_id": "m9OFjS2OZnpjnaR59CWizNbdeWBSPhGx", "id": "m9OFjS2OZnpjnaR59CWizNbdeWBSPhGx", "project_id": "631aecb9-5952-4e8c-b924-78254cf6fa87", "project_name": "admin", "username": "admin", "user_id": "f1fd7061-d926-4146-b6c2-8622147522a7", "admin": true, "roles": [ { "name": "system_admin", "id": "89562f83-b8b5-4112-8b19-e8f9a14cbea1" } ], "login_count": 0, "last_login": 1713066784.7368417, "admin_show": true, "user_show": false, "remote_port": 47818, "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} = ['m9OFjS2OZnpjnaR59CWizNbdeWBSPhGx', '89562f83-b8b5-4112-8b19-e8f9a14cbea1'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = m9OFjS2OZnpjnaR59CWizNbdeWBSPhGx ${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.248.26: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 m9OFjS2OZnpjnaR59CWizNbdeWBSPhGx } ${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.248.26:9999/osm/vnflcm/v1/vnf_instances/2de3cfef-b572-4460-9edc-bbc6f2513362/terminate path_url=/osm/vnflcm/v1/vnf_instances/2de3cfef-b572-4460-9edc-bbc6f2513362/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 m9OFjS2OZnpjnaR59CWizNbdeWBSPhGx', 'Content-Length': '66'} body=b'{"terminationType": "GRACEFUL", "gracefulTerminationTimeout": "5"}' POST Response : url=https://172.21.248.26:9999/osm/vnflcm/v1/vnf_instances/2de3cfef-b572-4460-9edc-bbc6f2513362/terminate status=202, reason=Accepted headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 14 Apr 2024 03:53:39 GMT', 'Location': '/osm/vnflcm/v1/vnf_lcm_op_occs/9c33cbc9-e9b6-44d3-a0d3-c2e82f2d09d8', 'Content-Length': '53', 'Set-Cookie': 'session_id=62068b6a102db06cfa42a7388542995fda8a7679; expires=Sun, 14 Apr 2024 04:53:39 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "id": "9c33cbc9-e9b6-44d3-a0d3-c2e82f2d09d8" } ${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} = ['9c33cbc9-e9b6-44d3-a0d3-c2e82f2d09d8'] ${TERMINATEID} ${id[0]} Makes a variable available everywhere within the scope of the current suite. ${TERMINATEID} = 9c33cbc9-e9b6-44d3-a0d3-c2e82f2d09d8 ${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.248.26: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 m9OFjS2OZnpjnaR59CWizNbdeWBSPhGx } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.26:9999/osm/vnflcm/v1/vnf_lcm_op_occs/9c33cbc9-e9b6-44d3-a0d3-c2e82f2d09d8 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/9c33cbc9-e9b6-44d3-a0d3-c2e82f2d09d8 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer m9OFjS2OZnpjnaR59CWizNbdeWBSPhGx'} body=None GET Response : url=https://172.21.248.26:9999/osm/vnflcm/v1/vnf_lcm_op_occs/9c33cbc9-e9b6-44d3-a0d3-c2e82f2d09d8 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 14 Apr 2024 03:53:39 GMT', 'Content-Length': '1071', 'Set-Cookie': 'session_id=758a44f23ca2653652ad0e57ee7f35ce986f0cf0; expires=Sun, 14 Apr 2024 04:53:39 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "9c33cbc9-e9b6-44d3-a0d3-c2e82f2d09d8", "id": "9c33cbc9-e9b6-44d3-a0d3-c2e82f2d09d8", "operationState": "PROCESSING", "queuePosition": 0, "stage": "Stage 3/3 delete all.", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1713066819.5722325, "lcmOperationType": "terminate", "startTime": 1713066819.5722325, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1713066819.5722756, "modified": 1713066819.6497774, "projects_read": [ "631aecb9-5952-4e8c-b924-78254cf6fa87" ], "projects_write": [ "631aecb9-5952-4e8c-b924-78254cf6fa87" ], "worker": "1f0b07f20d14" }, "detailed-status": "Stage 3/3 delete all. 0/1. ", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/9c33cbc9-e9b6-44d3-a0d3-c2e82f2d09d8", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/2de3cfef-b572-4460-9edc-bbc6f2513362" }, "vnfInstanceId": "2de3cfef-b572-4460-9edc-bbc6f2513362" } ${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} = ['9c33cbc9-e9b6-44d3-a0d3-c2e82f2d09d8'] ${LCMOPSSCALEID} ${LcmopsTerminate[0]} Makes a variable available everywhere within the scope of the current suite. ${LCMOPSSCALEID} = 9c33cbc9-e9b6-44d3-a0d3-c2e82f2d09d8 ${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.248.26: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 m9OFjS2OZnpjnaR59CWizNbdeWBSPhGx } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.26:9999/osm/vnflcm/v1/vnf_lcm_op_occs/9c33cbc9-e9b6-44d3-a0d3-c2e82f2d09d8 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/9c33cbc9-e9b6-44d3-a0d3-c2e82f2d09d8 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer m9OFjS2OZnpjnaR59CWizNbdeWBSPhGx'} body=None GET Response : url=https://172.21.248.26:9999/osm/vnflcm/v1/vnf_lcm_op_occs/9c33cbc9-e9b6-44d3-a0d3-c2e82f2d09d8 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 14 Apr 2024 03:53:39 GMT', 'Content-Length': '1071', 'Set-Cookie': 'session_id=bccc80e05fbe9508f7a813c9fd3fc62b3dbe1403; expires=Sun, 14 Apr 2024 04:53:39 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "9c33cbc9-e9b6-44d3-a0d3-c2e82f2d09d8", "id": "9c33cbc9-e9b6-44d3-a0d3-c2e82f2d09d8", "operationState": "PROCESSING", "queuePosition": 0, "stage": "Stage 3/3 delete all.", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1713066819.5722325, "lcmOperationType": "terminate", "startTime": 1713066819.5722325, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1713066819.5722756, "modified": 1713066819.6497774, "projects_read": [ "631aecb9-5952-4e8c-b924-78254cf6fa87" ], "projects_write": [ "631aecb9-5952-4e8c-b924-78254cf6fa87" ], "worker": "1f0b07f20d14" }, "detailed-status": "Stage 3/3 delete all. 0/1. ", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/9c33cbc9-e9b6-44d3-a0d3-c2e82f2d09d8", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/2de3cfef-b572-4460-9edc-bbc6f2513362" }, "vnfInstanceId": "2de3cfef-b572-4460-9edc-bbc6f2513362" } ${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.248.26: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 m9OFjS2OZnpjnaR59CWizNbdeWBSPhGx } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.26:9999/osm/vnflcm/v1/vnf_lcm_op_occs/9c33cbc9-e9b6-44d3-a0d3-c2e82f2d09d8 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/9c33cbc9-e9b6-44d3-a0d3-c2e82f2d09d8 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer m9OFjS2OZnpjnaR59CWizNbdeWBSPhGx'} body=None GET Response : url=https://172.21.248.26:9999/osm/vnflcm/v1/vnf_lcm_op_occs/9c33cbc9-e9b6-44d3-a0d3-c2e82f2d09d8 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 14 Apr 2024 03:53:49 GMT', 'Content-Length': '1089', 'Set-Cookie': 'session_id=478ac201e4aadeef6b0102e1dad0553d7c732291; expires=Sun, 14 Apr 2024 04:53:49 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "9c33cbc9-e9b6-44d3-a0d3-c2e82f2d09d8", "id": "9c33cbc9-e9b6-44d3-a0d3-c2e82f2d09d8", "operationState": "PROCESSING", "queuePosition": 0, "stage": "Stage 3/3 delete all.", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1713066819.5722325, "lcmOperationType": "terminate", "startTime": 1713066819.5722325, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1713066819.5722756, "modified": 1713066819.770078, "projects_read": [ "631aecb9-5952-4e8c-b924-78254cf6fa87" ], "projects_write": [ "631aecb9-5952-4e8c-b924-78254cf6fa87" ], "worker": "1f0b07f20d14" }, "detailed-status": "Stage 3/3 delete all. 0/1. VIM: (progress 0/5)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/9c33cbc9-e9b6-44d3-a0d3-c2e82f2d09d8", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/2de3cfef-b572-4460-9edc-bbc6f2513362" }, "vnfInstanceId": "2de3cfef-b572-4460-9edc-bbc6f2513362" } ${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.248.26: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 m9OFjS2OZnpjnaR59CWizNbdeWBSPhGx } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.26:9999/osm/vnflcm/v1/vnf_lcm_op_occs/9c33cbc9-e9b6-44d3-a0d3-c2e82f2d09d8 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/9c33cbc9-e9b6-44d3-a0d3-c2e82f2d09d8 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer m9OFjS2OZnpjnaR59CWizNbdeWBSPhGx'} body=None GET Response : url=https://172.21.248.26:9999/osm/vnflcm/v1/vnf_lcm_op_occs/9c33cbc9-e9b6-44d3-a0d3-c2e82f2d09d8 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 14 Apr 2024 03:53:59 GMT', 'Content-Length': '1026', 'Set-Cookie': 'session_id=deeee5219178b36246aaf9975973f0b4159ffd4b; expires=Sun, 14 Apr 2024 04:53:59 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "9c33cbc9-e9b6-44d3-a0d3-c2e82f2d09d8", "id": "9c33cbc9-e9b6-44d3-a0d3-c2e82f2d09d8", "operationState": "COMPLETED", "queuePosition": 0, "stage": "", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1713066834.9416335, "lcmOperationType": "terminate", "startTime": 1713066819.5722325, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1713066819.5722756, "modified": 1713066834.9416354, "projects_read": [ "631aecb9-5952-4e8c-b924-78254cf6fa87" ], "projects_write": [ "631aecb9-5952-4e8c-b924-78254cf6fa87" ], "worker": "1f0b07f20d14" }, "detailed-status": "Done", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/9c33cbc9-e9b6-44d3-a0d3-c2e82f2d09d8", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/2de3cfef-b572-4460-9edc-bbc6f2513362" }, "vnfInstanceId": "2de3cfef-b572-4460-9edc-bbc6f2513362" } ${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.248.26 ${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.248.26' 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.248.26: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.248.26: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.248.26: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.248.26:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 14 Apr 2024 03:54:00 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/bju72nn4ijbzQdN4loYMxCpIdxWOsj4R', 'Content-Length': '654', 'Set-Cookie': 'session_id=fdde3d03fce87d3d2864d85f950e05036c6ba781; expires=Sun, 14 Apr 2024 04:54:00 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1713066840.051438, "expires": 1713070440.051438, "_id": "bju72nn4ijbzQdN4loYMxCpIdxWOsj4R", "id": "bju72nn4ijbzQdN4loYMxCpIdxWOsj4R", "project_id": "631aecb9-5952-4e8c-b924-78254cf6fa87", "project_name": "admin", "username": "admin", "user_id": "f1fd7061-d926-4146-b6c2-8622147522a7", "admin": true, "roles": [ { "name": "system_admin", "id": "89562f83-b8b5-4112-8b19-e8f9a14cbea1" } ], "login_count": 0, "last_login": 1713066817.4458392, "admin_show": true, "user_show": false, "remote_port": 16380, "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} = ['bju72nn4ijbzQdN4loYMxCpIdxWOsj4R', '89562f83-b8b5-4112-8b19-e8f9a14cbea1'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = bju72nn4ijbzQdN4loYMxCpIdxWOsj4R ${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.248.26: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 bju72nn4ijbzQdN4loYMxCpIdxWOsj4R } ${resp} APISession ${VNF_INSTANCE_URI}/${CREATEID} headers=${Headers} Sends a DELETE request on a previously created HTTP Session. DELETE Request : url=https://172.21.248.26:9999/osm/vnflcm/v1/vnf_instances/2de3cfef-b572-4460-9edc-bbc6f2513362 path_url=/osm/vnflcm/v1/vnf_instances/2de3cfef-b572-4460-9edc-bbc6f2513362 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer bju72nn4ijbzQdN4loYMxCpIdxWOsj4R', 'Content-Length': '0'} body=None DELETE Response : url=https://172.21.248.26:9999/osm/vnflcm/v1/vnf_instances/2de3cfef-b572-4460-9edc-bbc6f2513362 status=204, reason=No Content headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 14 Apr 2024 03:54:02 GMT', 'Set-Cookie': 'session_id=920eed0a87881837fc7b7488888965b61f72ad60; expires=Sun, 14 Apr 2024 04:54:02 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 ceee2fe9-c460-44cc-9a5f-20560d1da346 ${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} = ceee2fe9-c460-44cc-9a5f-20560d1da346 ${id} ${VNFD_ID} = ceee2fe9-c460-44cc-9a5f-20560d1da346 ${VNFD_ID} Makes a variable available everywhere within the scope of the current suite. ${VNFD_ID} = ceee2fe9-c460-44cc-9a5f-20560d1da346 ${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} = c20f510d-aeb3-434a-a238-18ec3c4eeedc ${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} = c20f510d-aeb3-434a-a238-18ec3c4eeedc ${CREATED_VIM_ACCOUNT_ID} Makes a variable available everywhere within the scope of the current suite. ${CREATED_VIM_ACCOUNT_ID} = c20f510d-aeb3-434a-a238-18ec3c4eeedc 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.248.26 ${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.248.26' 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.248.26: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.248.26: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.248.26: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.248.26:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 14 Apr 2024 03:54:07 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/L4yATv5zmGVL5y21hq1GoDPZgO5PIJ1L', 'Content-Length': '656', 'Set-Cookie': 'session_id=38d2e7921c4eb1b36d95c4453af5e5956d206933; expires=Sun, 14 Apr 2024 04:54:07 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1713066847.9267895, "expires": 1713070447.9267895, "_id": "L4yATv5zmGVL5y21hq1GoDPZgO5PIJ1L", "id": "L4yATv5zmGVL5y21hq1GoDPZgO5PIJ1L", "project_id": "631aecb9-5952-4e8c-b924-78254cf6fa87", "project_name": "admin", "username": "admin", "user_id": "f1fd7061-d926-4146-b6c2-8622147522a7", "admin": true, "roles": [ { "name": "system_admin", "id": "89562f83-b8b5-4112-8b19-e8f9a14cbea1" } ], "login_count": 0, "last_login": 1713066847.6838055, "admin_show": true, "user_show": false, "remote_port": 55830, "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} = ['L4yATv5zmGVL5y21hq1GoDPZgO5PIJ1L', '89562f83-b8b5-4112-8b19-e8f9a14cbea1'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = L4yATv5zmGVL5y21hq1GoDPZgO5PIJ1L ${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': 'c20f510d-aeb3-434a-a238-18ec3c4eeedc', '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': 'c20f510d-aeb3-434a-a238-18ec3c4eeedc', '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': 'c20f510d-aeb3-434a-a238-18ec3c4eeedc', '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': 'c20f510d-aeb3-434a-a238-18ec3c4eeedc', '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': 'c20f510d-aeb3-434a-a238-18ec3c4eeedc', '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': 'c20f510d-aeb3-434a-a238-18ec3c4eeedc', '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': 'c20f510d-aeb3-434a-a238-18ec3c4eeedc', '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.248.26: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 L4yATv5zmGVL5y21hq1GoDPZgO5PIJ1L } ${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.248.26: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 L4yATv5zmGVL5y21hq1GoDPZgO5PIJ1L', 'Content-Length': '423'} body=b'{"vnfdId": "hackfest_basic-vnf", "vnfInstanceName": "sol003-instance", "vnfInstanceDescription": "Test vnfm instance description", "vimAccountId": "c20f510d-aeb3-434a-a238-18ec3c4eeedc", "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.248.26: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, 14 Apr 2024 03:54:11 GMT', 'Location': '/osm/vnflcm/v1/vnf_instances/a5549f85-492b-45ff-aacb-6a8f445bae9f', 'Content-Length': '53', 'Set-Cookie': 'session_id=d1f47b7b110d57bc2ae39b8bee7c802980c746c9; expires=Sun, 14 Apr 2024 04:54:11 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "id": "a5549f85-492b-45ff-aacb-6a8f445bae9f" } ${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} = ['a5549f85-492b-45ff-aacb-6a8f445bae9f'] ${CREATEID} ${id[0]} Makes a variable available everywhere within the scope of the current suite. ${CREATEID} = a5549f85-492b-45ff-aacb-6a8f445bae9f 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 | ceee2fe9-c460-44cc-9a5f-20560d1da346 | 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 | 29d8640e-ccd7-41ac-a09f-8887703b1acb | 2024-04-14T03:54:11 | 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 | +--------------------------------------+------+--------------------------------------+------------------+--------------------+----------------+------------+ | a5549f85-492b-45ff-aacb-6a8f445bae9f | - | 29d8640e-ccd7-41ac-a09f-8887703b1acb | 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.248.26 ${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.248.26' 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.248.26: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.248.26: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.248.26: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.248.26:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 14 Apr 2024 03:54:15 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/D9taA82WBNIKYbF6o71nod6OVG4VCJTg', 'Content-Length': '656', 'Set-Cookie': 'session_id=70ad24546eb515782b8d69accb6f7b6ae684ebb3; expires=Sun, 14 Apr 2024 04:54:15 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1713066855.3187265, "expires": 1713070455.3187265, "_id": "D9taA82WBNIKYbF6o71nod6OVG4VCJTg", "id": "D9taA82WBNIKYbF6o71nod6OVG4VCJTg", "project_id": "631aecb9-5952-4e8c-b924-78254cf6fa87", "project_name": "admin", "username": "admin", "user_id": "f1fd7061-d926-4146-b6c2-8622147522a7", "admin": true, "roles": [ { "name": "system_admin", "id": "89562f83-b8b5-4112-8b19-e8f9a14cbea1" } ], "login_count": 0, "last_login": 1713066854.1231937, "admin_show": true, "user_show": false, "remote_port": 52204, "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} = ['D9taA82WBNIKYbF6o71nod6OVG4VCJTg', '89562f83-b8b5-4112-8b19-e8f9a14cbea1'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = D9taA82WBNIKYbF6o71nod6OVG4VCJTg ${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': 'c20f510d-aeb3-434a-a238-18ec3c4eeedc'} ${UPDATED_JSON_OBJ} ${UPDATED_JSON_OBJ} $..vnfId ${CREATEID} Update value to JSON using JSONPath ${UPDATED_JSON_OBJ} = {'vnfName': 'sol003-instance', 'vnfDescription': 'vnf package', 'vnfId': 'a5549f85-492b-45ff-aacb-6a8f445bae9f', 'vimAccountId': 'c20f510d-aeb3-434a-a238-18ec3c4eeedc'} ${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': 'a5549f85-492b-45ff-aacb-6a8f445bae9f', 'vimAccountId': 'c20f510d-aeb3-434a-a238-18ec3c4eeedc'} ${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.248.26: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 D9taA82WBNIKYbF6o71nod6OVG4VCJTg } ${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.248.26:9999/osm/vnflcm/v1/vnf_instances/a5549f85-492b-45ff-aacb-6a8f445bae9f/instantiate path_url=/osm/vnflcm/v1/vnf_instances/a5549f85-492b-45ff-aacb-6a8f445bae9f/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 D9taA82WBNIKYbF6o71nod6OVG4VCJTg', 'Content-Length': '168'} body=b'{"vnfName": "sol003-instance", "vnfDescription": "vnf package", "vnfId": "a5549f85-492b-45ff-aacb-6a8f445bae9f", "vimAccountId": "c20f510d-aeb3-434a-a238-18ec3c4eeedc"}' POST Response : url=https://172.21.248.26:9999/osm/vnflcm/v1/vnf_instances/a5549f85-492b-45ff-aacb-6a8f445bae9f/instantiate status=202, reason=Accepted headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 14 Apr 2024 03:54:18 GMT', 'Location': '/osm/vnflcm/v1/vnf_lcm_op_occs/a518bc31-a78d-403d-a861-f103dcb42d13', 'Content-Length': '53', 'Set-Cookie': 'session_id=4679a26a954c5a250b8541e5117de08ffec29db2; expires=Sun, 14 Apr 2024 04:54:18 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "id": "a518bc31-a78d-403d-a861-f103dcb42d13" } ${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} = ['a518bc31-a78d-403d-a861-f103dcb42d13'] ${VNF_INSTANCE_ID} ${id[0]} Makes a variable available everywhere within the scope of the current suite. ${VNF_INSTANCE_ID} = a518bc31-a78d-403d-a861-f103dcb42d13 12s Pauses the test executed for the given time. Slept 12 seconds ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-------------------------------+--------+------------------------+-------------+----------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-------------------------------+--------+------------------------+-------------+----------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-------------------------------+--------+------------------------+-------------+----------------------+ | 6b310d12-da92-4e62-b218-77af24c331d3 | multivdu_multiat-vnf-dataVM-0 | ACTIVE | osm-ext=172.21.248.27 | ubuntu22.04 | mgmtVM-vnf-1-flv | | b086e1bc-3c94-4727-89c3-a5d107dc903b | multivdu_multiat-vnf-mgmtVM-0 | ACTIVE | osm-ext=172.21.248.187 | ubuntu22.04 | mgmtVM-vnf-1-flv | | 6fd09770-36b1-4017-b42e-c03956d025fa | osm-v150-merge-119 | ACTIVE | osm-ext=172.21.248.219 | ubuntu22.04 | osm.sanity | | c2f4fe12-a4f8-4c75-959b-4026c148a0a9 | osm-master-merge-2954 | ACTIVE | osm-ext=172.21.248.26 | ubuntu22.04 | osm.sanity | | c1eed874-fd38-4d96-8789-9d2aa06c7f51 | osm-v120-merge-713 | ACTIVE | osm-ext=172.21.248.93 | 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 | 29d8640e-ccd7-41ac-a09f-8887703b1acb | 2024-04-14T03:54:11 | BROKEN | IDLE (None) | Operation: INSTANTIATING.a518bc31-a78d- | | | | | | | 403d-a861-f103dcb42d13, 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-c477a01e-142a-4345-8319-7fbc94e793c0'] | +--------------------+--------------------------------------+---------------------+----------+-------------------+------------------------------------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show 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 | +--------------------------------------+------+--------------------------------------+------------------+--------------------+--------------------------------------+------------+ | a5549f85-492b-45ff-aacb-6a8f445bae9f | - | 29d8640e-ccd7-41ac-a09f-8887703b1acb | 1 | hackfest_basic-vnf | c20f510d-aeb3-434a-a238-18ec3c4eeedc | 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} = 29d8640e-ccd7-41ac-a09f-8887703b1acb ${stdout} Logs the given message with the given level. 29d8640e-ccd7-41ac-a09f-8887703b1acb ${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} = 29d8640e-ccd7-41ac-a09f-8887703b1acb ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 29d8640e-ccd7-41ac-a09f-8887703b1acb 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 29d8640e-ccd7-41ac-a09f-8887703b1acb --literal | grep nsd-id | awk '{print $2}' 2>&1'. ${stdout} = b194edbd-b570-4bed-84f8-c60be02f1920 ${stdout} Logs the given message with the given level. b194edbd-b570-4bed-84f8-c60be02f1920 ${stdout} ${id} = b194edbd-b570-4bed-84f8-c60be02f1920 ${NSD_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NSD_ID} = b194edbd-b570-4bed-84f8-c60be02f1920 ${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 b194edbd-b570-4bed-84f8-c60be02f1920 --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 29d8640e-ccd7-41ac-a09f-8887703b1acb --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.248.26 ${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.248.26' 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.248.26: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.248.26: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.248.26: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.248.26:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 14 Apr 2024 03:54:43 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/sn4RvLfhHHY8idOKaPJy02x0nj26ZR7w', 'Content-Length': '656', 'Set-Cookie': 'session_id=65b51c9b8721c16d0793343e2723af38dd640e9e; expires=Sun, 14 Apr 2024 04:54:43 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1713066883.5559585, "expires": 1713070483.5559585, "_id": "sn4RvLfhHHY8idOKaPJy02x0nj26ZR7w", "id": "sn4RvLfhHHY8idOKaPJy02x0nj26ZR7w", "project_id": "631aecb9-5952-4e8c-b924-78254cf6fa87", "project_name": "admin", "username": "admin", "user_id": "f1fd7061-d926-4146-b6c2-8622147522a7", "admin": true, "roles": [ { "name": "system_admin", "id": "89562f83-b8b5-4112-8b19-e8f9a14cbea1" } ], "login_count": 0, "last_login": 1713066882.3238747, "admin_show": true, "user_show": false, "remote_port": 63739, "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} = ['sn4RvLfhHHY8idOKaPJy02x0nj26ZR7w', '89562f83-b8b5-4112-8b19-e8f9a14cbea1'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = sn4RvLfhHHY8idOKaPJy02x0nj26ZR7w ${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.248.26: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 sn4RvLfhHHY8idOKaPJy02x0nj26ZR7w } ${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.248.26:9999/osm/vnflcm/v1/vnf_instances/a5549f85-492b-45ff-aacb-6a8f445bae9f/terminate path_url=/osm/vnflcm/v1/vnf_instances/a5549f85-492b-45ff-aacb-6a8f445bae9f/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 sn4RvLfhHHY8idOKaPJy02x0nj26ZR7w', 'Content-Length': '66'} body=b'{"terminationType": "GRACEFUL", "gracefulTerminationTimeout": "5"}' POST Response : url=https://172.21.248.26:9999/osm/vnflcm/v1/vnf_instances/a5549f85-492b-45ff-aacb-6a8f445bae9f/terminate status=202, reason=Accepted headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 14 Apr 2024 03:54:46 GMT', 'Location': '/osm/vnflcm/v1/vnf_lcm_op_occs/c126b646-1261-48ef-a165-11c858f458f5', 'Content-Length': '53', 'Set-Cookie': 'session_id=03992cdd828ee761425bfec4fcae6ab8f9b308d0; expires=Sun, 14 Apr 2024 04:54:46 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "id": "c126b646-1261-48ef-a165-11c858f458f5" } ${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} = ['c126b646-1261-48ef-a165-11c858f458f5'] ${terminateid} ${id[0]} Returns the given values which can then be assigned to a variables. ${terminateid} = c126b646-1261-48ef-a165-11c858f458f5 ${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.248.26: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 sn4RvLfhHHY8idOKaPJy02x0nj26ZR7w } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.26:9999/osm/vnflcm/v1/vnf_lcm_op_occs/c126b646-1261-48ef-a165-11c858f458f5 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/c126b646-1261-48ef-a165-11c858f458f5 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer sn4RvLfhHHY8idOKaPJy02x0nj26ZR7w'} body=None GET Response : url=https://172.21.248.26:9999/osm/vnflcm/v1/vnf_lcm_op_occs/c126b646-1261-48ef-a165-11c858f458f5 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 14 Apr 2024 03:54:46 GMT', 'Content-Length': '1071', 'Set-Cookie': 'session_id=c49dbef57e2bd22d5bcfbb97d813a51779615e9d; expires=Sun, 14 Apr 2024 04:54:46 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "c126b646-1261-48ef-a165-11c858f458f5", "id": "c126b646-1261-48ef-a165-11c858f458f5", "operationState": "PROCESSING", "queuePosition": 0, "stage": "Stage 3/3 delete all.", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1713066886.6901114, "lcmOperationType": "terminate", "startTime": 1713066886.6901114, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1713066886.6901574, "modified": 1713066886.7866225, "projects_read": [ "631aecb9-5952-4e8c-b924-78254cf6fa87" ], "projects_write": [ "631aecb9-5952-4e8c-b924-78254cf6fa87" ], "worker": "1f0b07f20d14" }, "detailed-status": "Stage 3/3 delete all. 0/1. ", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/c126b646-1261-48ef-a165-11c858f458f5", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/a5549f85-492b-45ff-aacb-6a8f445bae9f" }, "vnfInstanceId": "a5549f85-492b-45ff-aacb-6a8f445bae9f" } ${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} = ['c126b646-1261-48ef-a165-11c858f458f5'] ${LcmopsTerminate[0]} Logs the given message with the given level. c126b646-1261-48ef-a165-11c858f458f5 ${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.248.26: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 sn4RvLfhHHY8idOKaPJy02x0nj26ZR7w } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.26:9999/osm/vnflcm/v1/vnf_lcm_op_occs/c126b646-1261-48ef-a165-11c858f458f5 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/c126b646-1261-48ef-a165-11c858f458f5 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer sn4RvLfhHHY8idOKaPJy02x0nj26ZR7w'} body=None GET Response : url=https://172.21.248.26:9999/osm/vnflcm/v1/vnf_lcm_op_occs/c126b646-1261-48ef-a165-11c858f458f5 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 14 Apr 2024 03:54:46 GMT', 'Content-Length': '1071', 'Set-Cookie': 'session_id=0fe400ac702e4fa8699dfe94f1a1e5008674fe2b; expires=Sun, 14 Apr 2024 04:54:46 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "c126b646-1261-48ef-a165-11c858f458f5", "id": "c126b646-1261-48ef-a165-11c858f458f5", "operationState": "PROCESSING", "queuePosition": 0, "stage": "Stage 3/3 delete all.", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1713066886.6901114, "lcmOperationType": "terminate", "startTime": 1713066886.6901114, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1713066886.6901574, "modified": 1713066886.7866225, "projects_read": [ "631aecb9-5952-4e8c-b924-78254cf6fa87" ], "projects_write": [ "631aecb9-5952-4e8c-b924-78254cf6fa87" ], "worker": "1f0b07f20d14" }, "detailed-status": "Stage 3/3 delete all. 0/1. ", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/c126b646-1261-48ef-a165-11c858f458f5", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/a5549f85-492b-45ff-aacb-6a8f445bae9f" }, "vnfInstanceId": "a5549f85-492b-45ff-aacb-6a8f445bae9f" } ${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.248.26: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 sn4RvLfhHHY8idOKaPJy02x0nj26ZR7w } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.26:9999/osm/vnflcm/v1/vnf_lcm_op_occs/c126b646-1261-48ef-a165-11c858f458f5 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/c126b646-1261-48ef-a165-11c858f458f5 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer sn4RvLfhHHY8idOKaPJy02x0nj26ZR7w'} body=None GET Response : url=https://172.21.248.26:9999/osm/vnflcm/v1/vnf_lcm_op_occs/c126b646-1261-48ef-a165-11c858f458f5 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 14 Apr 2024 03:54:56 GMT', 'Content-Length': '1090', 'Set-Cookie': 'session_id=9b8e96597479b29e4a2556e4302786bc56be2e19; expires=Sun, 14 Apr 2024 04:54:56 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "c126b646-1261-48ef-a165-11c858f458f5", "id": "c126b646-1261-48ef-a165-11c858f458f5", "operationState": "PROCESSING", "queuePosition": 0, "stage": "Stage 3/3 delete all.", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1713066886.6901114, "lcmOperationType": "terminate", "startTime": 1713066886.6901114, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1713066886.6901574, "modified": 1713066886.9059575, "projects_read": [ "631aecb9-5952-4e8c-b924-78254cf6fa87" ], "projects_write": [ "631aecb9-5952-4e8c-b924-78254cf6fa87" ], "worker": "1f0b07f20d14" }, "detailed-status": "Stage 3/3 delete all. 0/1. VIM: (progress 0/4)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/c126b646-1261-48ef-a165-11c858f458f5", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/a5549f85-492b-45ff-aacb-6a8f445bae9f" }, "vnfInstanceId": "a5549f85-492b-45ff-aacb-6a8f445bae9f" } ${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.248.26: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 sn4RvLfhHHY8idOKaPJy02x0nj26ZR7w } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.26:9999/osm/vnflcm/v1/vnf_lcm_op_occs/c126b646-1261-48ef-a165-11c858f458f5 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/c126b646-1261-48ef-a165-11c858f458f5 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer sn4RvLfhHHY8idOKaPJy02x0nj26ZR7w'} body=None GET Response : url=https://172.21.248.26:9999/osm/vnflcm/v1/vnf_lcm_op_occs/c126b646-1261-48ef-a165-11c858f458f5 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 14 Apr 2024 03:55:07 GMT', 'Content-Length': '1025', 'Set-Cookie': 'session_id=e2134069a061c56882e6ebc432023631cd955da7; expires=Sun, 14 Apr 2024 04:55:07 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "c126b646-1261-48ef-a165-11c858f458f5", "id": "c126b646-1261-48ef-a165-11c858f458f5", "operationState": "COMPLETED", "queuePosition": 0, "stage": "", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1713066902.081025, "lcmOperationType": "terminate", "startTime": 1713066886.6901114, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1713066886.6901574, "modified": 1713066902.0810266, "projects_read": [ "631aecb9-5952-4e8c-b924-78254cf6fa87" ], "projects_write": [ "631aecb9-5952-4e8c-b924-78254cf6fa87" ], "worker": "1f0b07f20d14" }, "detailed-status": "Done", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/c126b646-1261-48ef-a165-11c858f458f5", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/a5549f85-492b-45ff-aacb-6a8f445bae9f" }, "vnfInstanceId": "a5549f85-492b-45ff-aacb-6a8f445bae9f" } ${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.248.26 ${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.248.26' 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.248.26: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.248.26: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.248.26: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.248.26:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 14 Apr 2024 03:55:07 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/jHi7MpNsn9xuAHrs2RnWoePg3ZIwTgGP', 'Content-Length': '656', 'Set-Cookie': 'session_id=1a7dc7be320e75ede0c08cf194acd9bb7c78b8de; expires=Sun, 14 Apr 2024 04:55:07 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1713066907.1498246, "expires": 1713070507.1498246, "_id": "jHi7MpNsn9xuAHrs2RnWoePg3ZIwTgGP", "id": "jHi7MpNsn9xuAHrs2RnWoePg3ZIwTgGP", "project_id": "631aecb9-5952-4e8c-b924-78254cf6fa87", "project_name": "admin", "username": "admin", "user_id": "f1fd7061-d926-4146-b6c2-8622147522a7", "admin": true, "roles": [ { "name": "system_admin", "id": "89562f83-b8b5-4112-8b19-e8f9a14cbea1" } ], "login_count": 0, "last_login": 1713066883.5559585, "admin_show": true, "user_show": false, "remote_port": 18964, "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} = ['jHi7MpNsn9xuAHrs2RnWoePg3ZIwTgGP', '89562f83-b8b5-4112-8b19-e8f9a14cbea1'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = jHi7MpNsn9xuAHrs2RnWoePg3ZIwTgGP ${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.248.26: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 jHi7MpNsn9xuAHrs2RnWoePg3ZIwTgGP } ${resp} APISession ${VNF_INSTANCE_URI}/${CREATEID} headers=${Headers} Sends a DELETE request on a previously created HTTP Session. DELETE Request : url=https://172.21.248.26:9999/osm/vnflcm/v1/vnf_instances/a5549f85-492b-45ff-aacb-6a8f445bae9f path_url=/osm/vnflcm/v1/vnf_instances/a5549f85-492b-45ff-aacb-6a8f445bae9f headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer jHi7MpNsn9xuAHrs2RnWoePg3ZIwTgGP', 'Content-Length': '0'} body=None DELETE Response : url=https://172.21.248.26:9999/osm/vnflcm/v1/vnf_instances/a5549f85-492b-45ff-aacb-6a8f445bae9f status=204, reason=No Content headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Sun, 14 Apr 2024 03:55:09 GMT', 'Set-Cookie': 'session_id=893a6063243bf15e3988ed773c496569041f3596; expires=Sun, 14 Apr 2024 04:55:09 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