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.136 == '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} = 258205 ${VIM_NAME} SEPARATOR=_ ${vim_name_prefix} ${rand} Catenates the given items together and returns the resulted string. ${VIM_NAME} = basic01_258205 ${VIM_NAME} Makes a variable available everywhere within the scope of the current suite. ${VIM_NAME} = basic01_258205 ${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_258205 --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_258205 --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_258205 --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} = 5af9ecc6-b0f9-4b4c-af84-697f61824f4c ${stdout} Logs the given message with the given level. 5af9ecc6-b0f9-4b4c-af84-697f61824f4c ${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} = 5af9ecc6-b0f9-4b4c-af84-697f61824f4c ${CREATED_VIM_ACCOUNT_ID} Makes a variable available everywhere within the scope of the current suite. ${CREATED_VIM_ACCOUNT_ID} = 5af9ecc6-b0f9-4b4c-af84-697f61824f4c ${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_258205 " | 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_258205 " | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = 5af9ecc6-b0f9-4b4c-af84-697f61824f4c ${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} = 5af9ecc6-b0f9-4b4c-af84-697f61824f4c ${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=5af9ecc6-b0f9-4b4c-af84-697f61824f4c ${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=5af9ecc6-b0f9-4b4c-af84-697f61824f4c ${param_name} = vim_account_id ${param_value} = 5af9ecc6-b0f9-4b4c-af84-697f61824f4c ${match},${param_name},${param_value} Logs the given message with the given level. vim_account_id=5af9ecc6-b0f9-4b4c-af84-697f61824f4c,vim_account_id,5af9ecc6-b0f9-4b4c-af84-697f61824f4c ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = vim_account_id="5af9ecc6-b0f9-4b4c-af84-697f61824f4c", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4dd9d5a0>, 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.136:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%225af9ecc6-b0f9-4b4c-af84-697f61824f4c%22,%7D path_url=/api/v1/query?query=osm_vim_status%7Bvim_account_id=%225af9ecc6-b0f9-4b4c-af84-697f61824f4c%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.136:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%225af9ecc6-b0f9-4b4c-af84-697f61824f4c%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 01:33:51 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=5af9ecc6-b0f9-4b4c-af84-697f61824f4c ${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=5af9ecc6-b0f9-4b4c-af84-697f61824f4c ${param_name} = vim_account_id ${param_value} = 5af9ecc6-b0f9-4b4c-af84-697f61824f4c ${match},${param_name},${param_value} Logs the given message with the given level. vim_account_id=5af9ecc6-b0f9-4b4c-af84-697f61824f4c,vim_account_id,5af9ecc6-b0f9-4b4c-af84-697f61824f4c ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = vim_account_id="5af9ecc6-b0f9-4b4c-af84-697f61824f4c", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4dd9c880>, 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.136:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%225af9ecc6-b0f9-4b4c-af84-697f61824f4c%22,%7D path_url=/api/v1/query?query=osm_vim_status%7Bvim_account_id=%225af9ecc6-b0f9-4b4c-af84-697f61824f4c%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.136:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%225af9ecc6-b0f9-4b4c-af84-697f61824f4c%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 01:34:06 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=5af9ecc6-b0f9-4b4c-af84-697f61824f4c ${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=5af9ecc6-b0f9-4b4c-af84-697f61824f4c ${param_name} = vim_account_id ${param_value} = 5af9ecc6-b0f9-4b4c-af84-697f61824f4c ${match},${param_name},${param_value} Logs the given message with the given level. vim_account_id=5af9ecc6-b0f9-4b4c-af84-697f61824f4c,vim_account_id,5af9ecc6-b0f9-4b4c-af84-697f61824f4c ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = vim_account_id="5af9ecc6-b0f9-4b4c-af84-697f61824f4c", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4dd9e770>, 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.136:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%225af9ecc6-b0f9-4b4c-af84-697f61824f4c%22,%7D path_url=/api/v1/query?query=osm_vim_status%7Bvim_account_id=%225af9ecc6-b0f9-4b4c-af84-697f61824f4c%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.136:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%225af9ecc6-b0f9-4b4c-af84-697f61824f4c%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 01:34:21 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=5af9ecc6-b0f9-4b4c-af84-697f61824f4c ${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=5af9ecc6-b0f9-4b4c-af84-697f61824f4c ${param_name} = vim_account_id ${param_value} = 5af9ecc6-b0f9-4b4c-af84-697f61824f4c ${match},${param_name},${param_value} Logs the given message with the given level. vim_account_id=5af9ecc6-b0f9-4b4c-af84-697f61824f4c,vim_account_id,5af9ecc6-b0f9-4b4c-af84-697f61824f4c ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = vim_account_id="5af9ecc6-b0f9-4b4c-af84-697f61824f4c", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4ddea5f0>, 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.136:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%225af9ecc6-b0f9-4b4c-af84-697f61824f4c%22,%7D path_url=/api/v1/query?query=osm_vim_status%7Bvim_account_id=%225af9ecc6-b0f9-4b4c-af84-697f61824f4c%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.136:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%225af9ecc6-b0f9-4b4c-af84-697f61824f4c%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 01:34:36 GMT', 'Content-Length': '195'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_vim_status","job":"airflow_osm_vim_status_5af9ecc6-b0f9-4b4c-af84-697f61824f4c","vim_account_id":"5af9ecc6-b0f9-4b4c-af84-697f61824f4c"},"value":[1712108076.808,"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_5af9ecc6-b0f9-4b4c-af84-697f61824f4c', 'vim_account_id': '5af... ${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_5af9ecc6-b0f9-4b4c-af84-697f61824f4c', 'vim_account_id': '5af9ecc6-b0f9-4b4c-af84-697f61824f4c'}, 'value': [1712108076.808, '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_258205 " | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = 5af9ecc6-b0f9-4b4c-af84-697f61824f4c ${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} = 5af9ecc6-b0f9-4b4c-af84-697f61824f4c ${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 5af9ecc6-b0f9-4b4c-af84-697f61824f4c 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 5af9ecc6-b0f9-4b4c-af84-697f61824f4c 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 fff24d0a-dea4-44c3-bf46-cf91a5ef3be7 ${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} = fff24d0a-dea4-44c3-bf46-cf91a5ef3be7 ${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 e38e3b48-aa99-41f7-a865-a2a6ec70789b ${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} = e38e3b48-aa99-41f7-a865-a2a6ec70789b ${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} = 1b4ba209-513d-4321-b64c-295dba6ae6fd ${stdout} Logs the given message with the given level. 1b4ba209-513d-4321-b64c-295dba6ae6fd ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 1b4ba209-513d-4321-b64c-295dba6ae6fd ${ns_id} Logs the given message with the given level. 1b4ba209-513d-4321-b64c-295dba6ae6fd ${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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 1b4ba209-513d-4321-b64c-295dba6ae6fd | 2024-04-03T01:34:46 | BUILDING | INSTANTIATING (d6892b45-2532-4da7-ac63-83aef70c363d) | N/A | +------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | 1b4ba209-513d-4321-b64c-295dba6ae6fd | 2024-04-03T01:34:46 | BUILDING | INSTANTIATING (d6892b45-2532-4da7-ac63-83aef70c363d) | N/A | +------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-----------------------------------+ | cd222b86-6eca-4fab-80b3-9fffc0dfdde9 | basic_05_instant-vnf-ubuntu_cloudinit-vnf-VM-0 | ACTIVE | osm-ext=172.21.248.93 | ubuntu18.04 | ubuntu_cloudinit-vnf-VM-vnf-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 1b4ba209-513d-4321-b64c-295dba6ae6fd | 2024-04-03T01:34:46 | BUILDING | INSTANTIATING (d6892b45-2532-4da7-ac63-83aef70c363d) | N/A | +------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | 1b4ba209-513d-4321-b64c-295dba6ae6fd | 2024-04-03T01:34:46 | BUILDING | INSTANTIATING (d6892b45-2532-4da7-ac63-83aef70c363d) | N/A | +------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-----------------------------------+ | e74eb86b-1d51-4d64-8802-0fccea58ba4a | basic_24-affinity-basic-1-affinity_basic-VM-2-0 | ACTIVE | osm-ext=172.21.248.88 | ubuntu20.04 | simple_requires-1-1-flv | | 4e261d0c-4719-417f-b18a-613750af04ed | basic_24-affinity-basic-1-affinity_basic-VM-1-0 | ACTIVE | osm-ext=172.21.249.107 | ubuntu20.04 | simple_requires-1-1-flv | | cd222b86-6eca-4fab-80b3-9fffc0dfdde9 | basic_05_instant-vnf-ubuntu_cloudinit-vnf-VM-0 | ACTIVE | osm-ext=172.21.248.93 | ubuntu18.04 | ubuntu_cloudinit-vnf-VM-vnf-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 1b4ba209-513d-4321-b64c-295dba6ae6fd | 2024-04-03T01:34:46 | 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 | +--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-----------------------------------+ | e74eb86b-1d51-4d64-8802-0fccea58ba4a | basic_24-affinity-basic-1-affinity_basic-VM-2-0 | ACTIVE | osm-ext=172.21.248.88 | ubuntu20.04 | simple_requires-1-1-flv | | 4e261d0c-4719-417f-b18a-613750af04ed | basic_24-affinity-basic-1-affinity_basic-VM-1-0 | ACTIVE | osm-ext=172.21.249.107 | ubuntu20.04 | simple_requires-1-1-flv | | cd222b86-6eca-4fab-80b3-9fffc0dfdde9 | basic_05_instant-vnf-ubuntu_cloudinit-vnf-VM-0 | ACTIVE | osm-ext=172.21.248.93 | ubuntu18.04 | ubuntu_cloudinit-vnf-VM-vnf-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 1b4ba209-513d-4321-b64c-295dba6ae6fd | 2024-04-03T01:34:46 | 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} = 1b4ba209-513d-4321-b64c-295dba6ae6fd ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 1b4ba209-513d-4321-b64c-295dba6ae6fd 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 1b4ba209-513d-4321-b64c-295dba6ae6fd | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.93 ${stdout} Logs the given message with the given level. 172.21.248.93 ${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.93 ${ip_addr} Logs the given message with the given level. 172.21.248.93 ${VNF_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. ${VNF_IP_ADDR} = 172.21.248.93 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.93: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 Wed Apr 3 01:36:29 UTC 2024 System load: 0.33 Processes: 95 Usage of /: 11.5% of 9.52GB Users logged in: 0 Memory usage: 6% IP address for ens3: 172.21.248.93 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 | +--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-----------------------------------+ | e74eb86b-1d51-4d64-8802-0fccea58ba4a | basic_24-affinity-basic-1-affinity_basic-VM-2-0 | ACTIVE | osm-ext=172.21.248.88 | ubuntu20.04 | simple_requires-1-1-flv | | 4e261d0c-4719-417f-b18a-613750af04ed | basic_24-affinity-basic-1-affinity_basic-VM-1-0 | ACTIVE | osm-ext=172.21.249.107 | ubuntu20.04 | simple_requires-1-1-flv | | cd222b86-6eca-4fab-80b3-9fffc0dfdde9 | basic_05_instant-vnf-ubuntu_cloudinit-vnf-VM-0 | ACTIVE | osm-ext=172.21.248.93 | ubuntu18.04 | ubuntu_cloudinit-vnf-VM-vnf-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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.136 == '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} = c141e420-fb9e-461e-aff0-9b8604830218 ${stdout} Logs the given message with the given level. c141e420-fb9e-461e-aff0-9b8604830218 ${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} = c141e420-fb9e-461e-aff0-9b8604830218 ${created_vim_account_id} Logs the given message with the given level. c141e420-fb9e-461e-aff0-9b8604830218 ${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} = c141e420-fb9e-461e-aff0-9b8604830218 ${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} = c141e420-fb9e-461e-aff0-9b8604830218 ${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=c141e420-fb9e-461e-aff0-9b8604830218 ${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=c141e420-fb9e-461e-aff0-9b8604830218 ${param_name} = vim_account_id ${param_value} = c141e420-fb9e-461e-aff0-9b8604830218 ${match},${param_name},${param_value} Logs the given message with the given level. vim_account_id=c141e420-fb9e-461e-aff0-9b8604830218,vim_account_id,c141e420-fb9e-461e-aff0-9b8604830218 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = vim_account_id="c141e420-fb9e-461e-aff0-9b8604830218", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4ce68c40>, 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.136:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%22c141e420-fb9e-461e-aff0-9b8604830218%22,%7D path_url=/api/v1/query?query=osm_vim_status%7Bvim_account_id=%22c141e420-fb9e-461e-aff0-9b8604830218%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.136:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%22c141e420-fb9e-461e-aff0-9b8604830218%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 01:37:04 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=c141e420-fb9e-461e-aff0-9b8604830218 ${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=c141e420-fb9e-461e-aff0-9b8604830218 ${param_name} = vim_account_id ${param_value} = c141e420-fb9e-461e-aff0-9b8604830218 ${match},${param_name},${param_value} Logs the given message with the given level. vim_account_id=c141e420-fb9e-461e-aff0-9b8604830218,vim_account_id,c141e420-fb9e-461e-aff0-9b8604830218 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = vim_account_id="c141e420-fb9e-461e-aff0-9b8604830218", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4ce3ec80>, 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.136:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%22c141e420-fb9e-461e-aff0-9b8604830218%22,%7D path_url=/api/v1/query?query=osm_vim_status%7Bvim_account_id=%22c141e420-fb9e-461e-aff0-9b8604830218%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.136:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%22c141e420-fb9e-461e-aff0-9b8604830218%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 01:37:19 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=c141e420-fb9e-461e-aff0-9b8604830218 ${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=c141e420-fb9e-461e-aff0-9b8604830218 ${param_name} = vim_account_id ${param_value} = c141e420-fb9e-461e-aff0-9b8604830218 ${match},${param_name},${param_value} Logs the given message with the given level. vim_account_id=c141e420-fb9e-461e-aff0-9b8604830218,vim_account_id,c141e420-fb9e-461e-aff0-9b8604830218 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = vim_account_id="c141e420-fb9e-461e-aff0-9b8604830218", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4ce98460>, 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.136:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%22c141e420-fb9e-461e-aff0-9b8604830218%22,%7D path_url=/api/v1/query?query=osm_vim_status%7Bvim_account_id=%22c141e420-fb9e-461e-aff0-9b8604830218%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.136:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%22c141e420-fb9e-461e-aff0-9b8604830218%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 01:37:34 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=c141e420-fb9e-461e-aff0-9b8604830218 ${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=c141e420-fb9e-461e-aff0-9b8604830218 ${param_name} = vim_account_id ${param_value} = c141e420-fb9e-461e-aff0-9b8604830218 ${match},${param_name},${param_value} Logs the given message with the given level. vim_account_id=c141e420-fb9e-461e-aff0-9b8604830218,vim_account_id,c141e420-fb9e-461e-aff0-9b8604830218 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = vim_account_id="c141e420-fb9e-461e-aff0-9b8604830218", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4ce2b7f0>, 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.136:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%22c141e420-fb9e-461e-aff0-9b8604830218%22,%7D path_url=/api/v1/query?query=osm_vim_status%7Bvim_account_id=%22c141e420-fb9e-461e-aff0-9b8604830218%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.136:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%22c141e420-fb9e-461e-aff0-9b8604830218%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 01:37:49 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=c141e420-fb9e-461e-aff0-9b8604830218 ${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=c141e420-fb9e-461e-aff0-9b8604830218 ${param_name} = vim_account_id ${param_value} = c141e420-fb9e-461e-aff0-9b8604830218 ${match},${param_name},${param_value} Logs the given message with the given level. vim_account_id=c141e420-fb9e-461e-aff0-9b8604830218,vim_account_id,c141e420-fb9e-461e-aff0-9b8604830218 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = vim_account_id="c141e420-fb9e-461e-aff0-9b8604830218", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4ce9ae30>, 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.136:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%22c141e420-fb9e-461e-aff0-9b8604830218%22,%7D path_url=/api/v1/query?query=osm_vim_status%7Bvim_account_id=%22c141e420-fb9e-461e-aff0-9b8604830218%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.136:9091/api/v1/query?query=osm_vim_status%7Bvim_account_id=%22c141e420-fb9e-461e-aff0-9b8604830218%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 01:38:04 GMT', 'Content-Length': '195'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_vim_status","job":"airflow_osm_vim_status_c141e420-fb9e-461e-aff0-9b8604830218","vim_account_id":"c141e420-fb9e-461e-aff0-9b8604830218"},"value":[1712108284.217,"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_c141e420-fb9e-461e-aff0-9b8604830218', 'vim_account_id': 'c14... ${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_c141e420-fb9e-461e-aff0-9b8604830218', 'vim_account_id': 'c141e420-fb9e-461e-aff0-9b8604830218'}, 'value': [1712108284.217, '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 1708cdb4-41ae-4e40-a4ca-0be3d4221f12 ${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} = 1708cdb4-41ae-4e40-a4ca-0be3d4221f12 ${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 80f4827b-6871-44ce-8819-ad7db8f09ce6 ${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} = 80f4827b-6871-44ce-8819-ad7db8f09ce6 ${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} = 28872776-4a08-4f6f-94e1-8418f1d5b946 ${stdout} Logs the given message with the given level. 28872776-4a08-4f6f-94e1-8418f1d5b946 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 28872776-4a08-4f6f-94e1-8418f1d5b946 ${ns_id} Logs the given message with the given level. 28872776-4a08-4f6f-94e1-8418f1d5b946 ${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 | +--------------------------------------+--------------------------------+--------+---------------------------------------------------------------+-------------+-------------------------+ | 30b0c3e7-a40e-4ea0-97b9-718e7ace94af | basic_25_charm_u-vnf2-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.3.134; osm-ext=172.21.248.5 | ubuntu18.04 | simple_requires-1-1-flv | | 52b1440a-7049-44a7-a5fc-e650421644f4 | basic_25_charm_u-vnf1-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.3.112; osm-ext=172.21.249.85 | ubuntu18.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 28872776-4a08-4f6f-94e1-8418f1d5b946 | 2024-04-03T01:38:08 | BUILDING | INSTANTIATING (c594ca40-1939-4021-9fb8-a998be4a7316) | N/A | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | 28872776-4a08-4f6f-94e1-8418f1d5b946 | 2024-04-03T01:38:08 | BUILDING | INSTANTIATING (c594ca40-1939-4021-9fb8-a998be4a7316) | N/A | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+--------------------------------+--------+-----------------------------------------------------------------+-------------+-------------------------+ | 5d11c44b-b155-4edb-8709-9c363fd62bfd | basic_08_disable-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 1fe3532e-e0ed-4e53-9e8d-2f0ceab2be6d | basic_08_disable-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 4e4e36fd-31aa-4a82-bacb-c76a15464172 | basic_08_disable-vnf1-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.182.63; osm-ext=172.21.249.99 | ubuntu20.04 | simple_requires-1-1-flv | | 30b0c3e7-a40e-4ea0-97b9-718e7ace94af | basic_25_charm_u-vnf2-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.3.134; osm-ext=172.21.248.5 | ubuntu18.04 | simple_requires-1-1-flv | | 52b1440a-7049-44a7-a5fc-e650421644f4 | basic_25_charm_u-vnf1-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.3.112; osm-ext=172.21.249.85 | ubuntu18.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 28872776-4a08-4f6f-94e1-8418f1d5b946 | 2024-04-03T01:38:08 | BUILDING | INSTANTIATING (c594ca40-1939-4021-9fb8-a998be4a7316) | N/A | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | 28872776-4a08-4f6f-94e1-8418f1d5b946 | 2024-04-03T01:38:08 | BUILDING | INSTANTIATING (c594ca40-1939-4021-9fb8-a998be4a7316) | N/A | +---------------------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+--------------------------------+--------+-----------------------------------------------------------------------------------+-------------+-------------------------+ | 5961071a-dbaa-40d6-8ed9-1d88b0fa703e | basic_08_disable-vnf2-dataVM-0 | ACTIVE | basic_08_disable-datanet=192.168.206.3; basic_08_disable-internal=192.168.142.231 | ubuntu20.04 | simple_requires-1-1-flv | | 5d11c44b-b155-4edb-8709-9c363fd62bfd | basic_08_disable-vnf2-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.142.30; osm-ext=172.21.249.204 | ubuntu20.04 | simple_requires-1-1-flv | | 1fe3532e-e0ed-4e53-9e8d-2f0ceab2be6d | basic_08_disable-vnf1-dataVM-0 | ACTIVE | basic_08_disable-datanet=192.168.206.33; basic_08_disable-internal=192.168.182.58 | ubuntu20.04 | simple_requires-1-1-flv | | 4e4e36fd-31aa-4a82-bacb-c76a15464172 | basic_08_disable-vnf1-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.182.63; osm-ext=172.21.249.99 | ubuntu20.04 | simple_requires-1-1-flv | | 30b0c3e7-a40e-4ea0-97b9-718e7ace94af | basic_25_charm_u-vnf2-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.3.134; osm-ext=172.21.248.5 | ubuntu18.04 | simple_requires-1-1-flv | | 52b1440a-7049-44a7-a5fc-e650421644f4 | basic_25_charm_u-vnf1-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.3.112; osm-ext=172.21.249.85 | ubuntu18.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 28872776-4a08-4f6f-94e1-8418f1d5b946 | 2024-04-03T01:38:08 | READY | IDLE (None) | N/A | +---------------------------------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------+--------+-----------------------------------------------------------------------------------+-------------+--------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------+--------+-----------------------------------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------+--------+-----------------------------------------------------------------------------------+-------------+-------------------------+ | 5961071a-dbaa-40d6-8ed9-1d88b0fa703e | basic_08_disable-vnf2-dataVM-0 | ACTIVE | basic_08_disable-datanet=192.168.206.3; basic_08_disable-internal=192.168.142.231 | ubuntu20.04 | simple_requires-1-1-flv | | 5d11c44b-b155-4edb-8709-9c363fd62bfd | basic_08_disable-vnf2-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.142.30; osm-ext=172.21.249.204 | ubuntu20.04 | simple_requires-1-1-flv | | 1fe3532e-e0ed-4e53-9e8d-2f0ceab2be6d | basic_08_disable-vnf1-dataVM-0 | ACTIVE | basic_08_disable-datanet=192.168.206.33; basic_08_disable-internal=192.168.182.58 | ubuntu20.04 | simple_requires-1-1-flv | | 4e4e36fd-31aa-4a82-bacb-c76a15464172 | basic_08_disable-vnf1-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.182.63; osm-ext=172.21.249.99 | ubuntu20.04 | simple_requires-1-1-flv | | 30b0c3e7-a40e-4ea0-97b9-718e7ace94af | basic_25_charm_u-vnf2-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.3.134; osm-ext=172.21.248.5 | ubuntu18.04 | simple_requires-1-1-flv | | 52b1440a-7049-44a7-a5fc-e650421644f4 | basic_25_charm_u-vnf1-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.3.112; osm-ext=172.21.249.85 | ubuntu18.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 28872776-4a08-4f6f-94e1-8418f1d5b946 | 2024-04-03T01:38: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} = 28872776-4a08-4f6f-94e1-8418f1d5b946 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 28872776-4a08-4f6f-94e1-8418f1d5b946 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 | +--------------------------------------+--------------------------------+--------+-----------------------------------------------------------------------------------+-------------+-------------------------+ | 5961071a-dbaa-40d6-8ed9-1d88b0fa703e | basic_08_disable-vnf2-dataVM-0 | ACTIVE | basic_08_disable-datanet=192.168.206.3; basic_08_disable-internal=192.168.142.231 | ubuntu20.04 | simple_requires-1-1-flv | | 5d11c44b-b155-4edb-8709-9c363fd62bfd | basic_08_disable-vnf2-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.142.30; osm-ext=172.21.249.204 | ubuntu20.04 | simple_requires-1-1-flv | | 1fe3532e-e0ed-4e53-9e8d-2f0ceab2be6d | basic_08_disable-vnf1-dataVM-0 | ACTIVE | basic_08_disable-datanet=192.168.206.33; basic_08_disable-internal=192.168.182.58 | ubuntu20.04 | simple_requires-1-1-flv | | 4e4e36fd-31aa-4a82-bacb-c76a15464172 | basic_08_disable-vnf1-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.182.63; osm-ext=172.21.249.99 | ubuntu20.04 | simple_requires-1-1-flv | | 30b0c3e7-a40e-4ea0-97b9-718e7ace94af | basic_25_charm_u-vnf2-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.3.134; osm-ext=172.21.248.5 | ubuntu18.04 | simple_requires-1-1-flv | | 52b1440a-7049-44a7-a5fc-e650421644f4 | basic_25_charm_u-vnf1-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.3.112; osm-ext=172.21.249.85 | ubuntu18.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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 | +--------------------------------------+--------------------------------+--------+------------------------------------------------------------------+-------------+-------------------------+ | 5961071a-dbaa-40d6-8ed9-1d88b0fa703e | basic_08_disable-vnf2-dataVM-0 | ACTIVE | basic_08_disable-internal=192.168.142.231 | ubuntu20.04 | simple_requires-1-1-flv | | 5d11c44b-b155-4edb-8709-9c363fd62bfd | basic_08_disable-vnf2-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.142.30; osm-ext=172.21.249.204 | ubuntu20.04 | simple_requires-1-1-flv | | 1fe3532e-e0ed-4e53-9e8d-2f0ceab2be6d | basic_08_disable-vnf1-dataVM-0 | ACTIVE | | ubuntu20.04 | simple_requires-1-1-flv | | 4e4e36fd-31aa-4a82-bacb-c76a15464172 | basic_08_disable-vnf1-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.99 | ubuntu20.04 | simple_requires-1-1-flv | | 30b0c3e7-a40e-4ea0-97b9-718e7ace94af | basic_25_charm_u-vnf2-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.3.134; osm-ext=172.21.248.5 | ubuntu18.04 | simple_requires-1-1-flv | | 52b1440a-7049-44a7-a5fc-e650421644f4 | basic_25_charm_u-vnf1-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.3.112; osm-ext=172.21.249.85 | ubuntu18.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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 | +--------------------------------------+--------------------------------+--------+---------------------------------------------------------------+-------------+-------------------------+ | 30b0c3e7-a40e-4ea0-97b9-718e7ace94af | basic_25_charm_u-vnf2-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.3.134; osm-ext=172.21.248.5 | ubuntu18.04 | simple_requires-1-1-flv | | 52b1440a-7049-44a7-a5fc-e650421644f4 | basic_25_charm_u-vnf1-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.3.112; osm-ext=172.21.249.85 | ubuntu18.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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 ea737c7a-23c2-41d6-990e-62595e2c5a8e ${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} = ea737c7a-23c2-41d6-990e-62595e2c5a8e ${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 64bb21b1-e9d3-4a26-bf46-b6638b19e12e ${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} = 64bb21b1-e9d3-4a26-bf46-b6638b19e12e ${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} = 7b042bbb-5b96-4afb-babf-9a82e5f31bdc ${stdout} Logs the given message with the given level. 7b042bbb-5b96-4afb-babf-9a82e5f31bdc ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 7b042bbb-5b96-4afb-babf-9a82e5f31bdc ${ns_id} Logs the given message with the given level. 7b042bbb-5b96-4afb-babf-9a82e5f31bdc ${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 | +--------------------------------------+--------------------------------+--------+---------------------------------------------------------------+-------------+-------------------------+ | 30b0c3e7-a40e-4ea0-97b9-718e7ace94af | basic_25_charm_u-vnf2-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.3.134; osm-ext=172.21.248.5 | ubuntu18.04 | simple_requires-1-1-flv | | 52b1440a-7049-44a7-a5fc-e650421644f4 | basic_25_charm_u-vnf1-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.3.112; osm-ext=172.21.249.85 | ubuntu18.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 7b042bbb-5b96-4afb-babf-9a82e5f31bdc | 2024-04-03T01:40:16 | BUILDING | INSTANTIATING (e77fe0dd-ac58-4ab9-be1d-71a1fd72887f) | N/A | +------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | 7b042bbb-5b96-4afb-babf-9a82e5f31bdc | 2024-04-03T01:40:16 | BUILDING | INSTANTIATING (e77fe0dd-ac58-4ab9-be1d-71a1fd72887f) | N/A | +------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+--------------------------------------------------+--------+---------------------------------------------------------------+-------------+-------------------------+ | 003148c5-0032-4ab9-af61-eea8d254868b | basic_09_manual_-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.235 | ubuntu20.04 | simple_requires-1-1-flv | | 30b0c3e7-a40e-4ea0-97b9-718e7ace94af | basic_25_charm_u-vnf2-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.3.134; osm-ext=172.21.248.5 | ubuntu18.04 | simple_requires-1-1-flv | | 52b1440a-7049-44a7-a5fc-e650421644f4 | basic_25_charm_u-vnf1-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.3.112; osm-ext=172.21.249.85 | ubuntu18.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 7b042bbb-5b96-4afb-babf-9a82e5f31bdc | 2024-04-03T01:40:16 | 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 | +--------------------------------------+--------------------------------------------------+--------+---------------------------------------------------------------+-------------+-------------------------+ | 003148c5-0032-4ab9-af61-eea8d254868b | basic_09_manual_-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.235 | ubuntu20.04 | simple_requires-1-1-flv | | 30b0c3e7-a40e-4ea0-97b9-718e7ace94af | basic_25_charm_u-vnf2-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.3.134; osm-ext=172.21.248.5 | ubuntu18.04 | simple_requires-1-1-flv | | 52b1440a-7049-44a7-a5fc-e650421644f4 | basic_25_charm_u-vnf1-mgmtVM-0 | ACTIVE | basic_25_charm_u-datanet=192.168.3.112; osm-ext=172.21.249.85 | ubuntu18.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 7b042bbb-5b96-4afb-babf-9a82e5f31bdc | 2024-04-03T01:40:16 | 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} = 7b042bbb-5b96-4afb-babf-9a82e5f31bdc ${id} Logs the given message with the given level. 7b042bbb-5b96-4afb-babf-9a82e5f31bdc 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} = 7b042bbb-5b96-4afb-babf-9a82e5f31bdc ${stdout} Logs the given message with the given level. 7b042bbb-5b96-4afb-babf-9a82e5f31bdc ${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} = 7b042bbb-5b96-4afb-babf-9a82e5f31bdc ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 7b042bbb-5b96-4afb-babf-9a82e5f31bdc 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 7b042bbb-5b96-4afb-babf-9a82e5f31bdc | grep 7b042bbb-5b96-4afb-babf-9a82e5f31bdc | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = 8abe259f-b3e6-4c4c-9f5f-2dbc77aad8cc ${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} = [ 8abe259f-b3e6-4c4c-9f5f-2dbc77aad8cc ] @{vdur} @{vnfr_list} = [ 8abe259f-b3e6-4c4c-9f5f-2dbc77aad8cc ] ${vnfr_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 8abe259f-b3e6-4c4c-9f5f-2dbc77aad8cc ${VNF_ID} ${vnfr_list}[0] Makes a variable available everywhere within the scope of the current suite. ${VNF_ID} = 8abe259f-b3e6-4c4c-9f5f-2dbc77aad8cc 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 8abe259f-b3e6-4c4c-9f5f-2dbc77aad8cc --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} = bf4f0e20-dcf6-48dd-9fcb-bd4ab98e38be ${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 bf4f0e20-dcf6-48dd-9fcb-bd4ab98e38be --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 bf4f0e20-dcf6-48dd-9fcb-bd4ab98e38be ${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 bf4f0e20-dcf6-48dd-9fcb-bd4ab98e38be --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 bf4f0e20-dcf6-48dd-9fcb-bd4ab98e38be ${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 bf4f0e20-dcf6-48dd-9fcb-bd4ab98e38be --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 bf4f0e20-dcf6-48dd-9fcb-bd4ab98e38be --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} = bf4f0e20-dcf6-48dd-9fcb-bd4ab98e38be ${ns_op_id} Logs the given message with the given level. bf4f0e20-dcf6-48dd-9fcb-bd4ab98e38be 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 8abe259f-b3e6-4c4c-9f5f-2dbc77aad8cc --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} = d8d03dee-f353-43e6-b9d1-c4a5da780167 ${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 d8d03dee-f353-43e6-b9d1-c4a5da780167 --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 d8d03dee-f353-43e6-b9d1-c4a5da780167 ${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 d8d03dee-f353-43e6-b9d1-c4a5da780167 --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 d8d03dee-f353-43e6-b9d1-c4a5da780167 --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} = d8d03dee-f353-43e6-b9d1-c4a5da780167 ${ns_op_id} Logs the given message with the given level. d8d03dee-f353-43e6-b9d1-c4a5da780167 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 8abe259f-b3e6-4c4c-9f5f-2dbc77aad8cc --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 | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 003148c5-0032-4ab9-af61-eea8d254868b | basic_09_manual_-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.248.235 | ubuntu20.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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} = +--------------------------------------+------------------------------------------+--------+------------------------------------------------------------------+-------------+---------------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------------------------------------------------+-------------+-----------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------------------------------------------------+-------------+-----------------------------+ | 079a39d1-ed54-4bba-b14c-e4a99ea217b6 | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | ACTIVE | epa_01-epa_sriov-sriov_vld=192.168.94.52; osm-ext=172.21.249.178 | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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} = f9d567f0-7951-4d64-b808-20e56cbb885c ${stdout} Logs the given message with the given level. f9d567f0-7951-4d64-b808-20e56cbb885c ${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} = 1e0b89af-56a6-4f6e-99a6-f6f6418f275e ${stdout} Logs the given message with the given level. 1e0b89af-56a6-4f6e-99a6-f6f6418f275e ${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} = 9580b9bb-ed71-4d46-8bbc-5e8d265e5dda ${stdout} Logs the given message with the given level. 9580b9bb-ed71-4d46-8bbc-5e8d265e5dda ${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 162ef4e2-3cbd-4f36-8b77-b10f3ed3008b ${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} = 162ef4e2-3cbd-4f36-8b77-b10f3ed3008b ${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 39fcee14-fa2c-4d25-a64f-75ad9dab238e ${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} = 39fcee14-fa2c-4d25-a64f-75ad9dab238e ${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} = ee015990-40b5-47d0-8498-7d636cd95ffd ${stdout} Logs the given message with the given level. ee015990-40b5-47d0-8498-7d636cd95ffd ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = ee015990-40b5-47d0-8498-7d636cd95ffd ${ns_id} Logs the given message with the given level. ee015990-40b5-47d0-8498-7d636cd95ffd ${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 | +--------------------------------------+------------------------------------------+--------+------------------------------------------------------------------+-------------+-----------------------------+ | 079a39d1-ed54-4bba-b14c-e4a99ea217b6 | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | ACTIVE | epa_01-epa_sriov-sriov_vld=192.168.94.52; osm-ext=172.21.249.178 | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | ee015990-40b5-47d0-8498-7d636cd95ffd | 2024-04-03T01:42:57 | BUILDING | INSTANTIATING (adbc740c-5727-4f2d-bc1d-0328aa9c438d) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | ee015990-40b5-47d0-8498-7d636cd95ffd | 2024-04-03T01:42:57 | BUILDING | INSTANTIATING (adbc740c-5727-4f2d-bc1d-0328aa9c438d) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+------------------------------------------+--------+------------------------------------------------------------------+-------------+-----------------------------+ | d64c0b08-1787-49f2-bf9a-6909b48cbc70 | basic_16-vnf-hackfest_basic_metrics-VM-2 | ACTIVE | osm-ext=172.21.249.38 | ubuntu20.04 | simple_requires-1-1-flv | | 92b4cd85-5c8d-48ad-89a8-5820b15a22e2 | basic_16-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.249.25 | ubuntu20.04 | simple_requires-1-1-flv | | f109172a-f8e0-4c27-9864-dc5007ee7254 | basic_16-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.48 | ubuntu20.04 | simple_requires-1-1-flv | | 079a39d1-ed54-4bba-b14c-e4a99ea217b6 | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | ACTIVE | epa_01-epa_sriov-sriov_vld=192.168.94.52; osm-ext=172.21.249.178 | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | ee015990-40b5-47d0-8498-7d636cd95ffd | 2024-04-03T01:42:57 | BUILDING | INSTANTIATING (adbc740c-5727-4f2d-bc1d-0328aa9c438d) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | ee015990-40b5-47d0-8498-7d636cd95ffd | 2024-04-03T01:42:57 | BUILDING | INSTANTIATING (adbc740c-5727-4f2d-bc1d-0328aa9c438d) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | d64c0b08-1787-49f2-bf9a-6909b48cbc70 | basic_16-vnf-hackfest_basic_metrics-VM-2 | ACTIVE | osm-ext=172.21.249.38 | ubuntu20.04 | simple_requires-1-1-flv | | 92b4cd85-5c8d-48ad-89a8-5820b15a22e2 | basic_16-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.249.25 | ubuntu20.04 | simple_requires-1-1-flv | | f109172a-f8e0-4c27-9864-dc5007ee7254 | basic_16-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.48 | ubuntu20.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | ee015990-40b5-47d0-8498-7d636cd95ffd | 2024-04-03T01:42:57 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | N... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | d64c0b08-1787-49f2-bf9a-6909b48cbc70 | basic_16-vnf-hackfest_basic_metrics-VM-2 | ACTIVE | osm-ext=172.21.249.38 | ubuntu20.04 | simple_requires-1-1-flv | | 92b4cd85-5c8d-48ad-89a8-5820b15a22e2 | basic_16-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.249.25 | ubuntu20.04 | simple_requires-1-1-flv | | f109172a-f8e0-4c27-9864-dc5007ee7254 | basic_16-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.48 | ubuntu20.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | ee015990-40b5-47d0-8498-7d636cd95ffd | 2024-04-03T01:42: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} = ee015990-40b5-47d0-8498-7d636cd95ffd ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = ee015990-40b5-47d0-8498-7d636cd95ffd 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 ee015990-40b5-47d0-8498-7d636cd95ffd | grep ee015990-40b5-47d0-8498-7d636cd95ffd | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = 22e99940-8b6e-4744-a0bc-9a0d7ca6dca0 ${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} = [ 22e99940-8b6e-4744-a0bc-9a0d7ca6dca0 ] @{vdur} @{vnfr_list} = [ 22e99940-8b6e-4744-a0bc-9a0d7ca6dca0 ] ${vnfr_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 22e99940-8b6e-4744-a0bc-9a0d7ca6dca0 ${VNF_ID} ${vnfr_list}[0] Makes a variable available everywhere within the scope of the current suite. ${VNF_ID} = 22e99940-8b6e-4744-a0bc-9a0d7ca6dca0 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 22e99940-8b6e-4744-a0bc-9a0d7ca6dca0 --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} = 2209a589-f998-4eb8-acb0-4e6d03d6f92e ${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 2209a589-f998-4eb8-acb0-4e6d03d6f92e --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 2209a589-f998-4eb8-acb0-4e6d03d6f92e ${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 2209a589-f998-4eb8-acb0-4e6d03d6f92e --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 2209a589-f998-4eb8-acb0-4e6d03d6f92e ${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 2209a589-f998-4eb8-acb0-4e6d03d6f92e --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 2209a589-f998-4eb8-acb0-4e6d03d6f92e --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} = 2209a589-f998-4eb8-acb0-4e6d03d6f92e ${ns_op_id} Logs the given message with the given level. 2209a589-f998-4eb8-acb0-4e6d03d6f92e 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 22e99940-8b6e-4744-a0bc-9a0d7ca6dca0 --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} = 0f5e17f5-3e94-4f02-8150-74510ae30b4b ${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 0f5e17f5-3e94-4f02-8150-74510ae30b4b --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 0f5e17f5-3e94-4f02-8150-74510ae30b4b ${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 0f5e17f5-3e94-4f02-8150-74510ae30b4b --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 0f5e17f5-3e94-4f02-8150-74510ae30b4b --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} = 0f5e17f5-3e94-4f02-8150-74510ae30b4b ${ns_op_id} Logs the given message with the given level. 0f5e17f5-3e94-4f02-8150-74510ae30b4b 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 22e99940-8b6e-4744-a0bc-9a0d7ca6dca0 --literal | yq -r .vdur[].name 2>&1'. ${rc} = 0 ${stdout} = basic_16-vnf-hackfest_basic_metrics-VM-0 basic_16-vnf-hackfest_basic_metrics-VM-1 basic_16-vnf-hackfest_basic_metrics-VM-2 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> @{vdur} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{vdur} = [ basic_16-vnf-hackfest_basic_metrics-VM-0 | basic_16-vnf-hackfest_basic_metrics-VM-1 | basic_16-vnf-hackfest_basic_metrics-VM-2 ] @{vdur} @{vdur_list} = [ basic_16-vnf-hackfest_basic_metrics-VM-0 | basic_16-vnf-hackfest_basic_metrics-VM-1 | basic_16-vnf-hackfest_basic_metrics-VM-2 ] ${vdur_list} Logs the length and contents of the ``list`` using given ``level``. List length is 3 and it contains following items: 0: basic_16-vnf-hackfest_basic_metrics-VM-0 1: basic_16-vnf-hackfest_basic_metrics-VM-1 2: basic_16-vnf-hackfest_basic_metrics-VM-2 ${vdurs} ${vdur_list} Returns and logs the length of the given item as an integer. Length is 3 ${vdurs} = 3 msg=There is the same number of VDU records in the VNF after Scale In Fails the test with the given message and optionally alters its tags. Check whether there is one less VDU after scaling in. azure basic_16 cluster_main daily regression ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete basic_16 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | N... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------+--------+------------------------+-------------+-------------------------+ | d64c0b08-1787-49f2-bf9a-6909b48cbc70 | basic_16-vnf-hackfest_basic_metrics-VM-2 | ACTIVE | osm-ext=172.21.249.38 | ubuntu20.04 | simple_requires-1-1-flv | | 92b4cd85-5c8d-48ad-89a8-5820b15a22e2 | basic_16-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.249.25 | ubuntu20.04 | simple_requires-1-1-flv | | f109172a-f8e0-4c27-9864-dc5007ee7254 | basic_16-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.48 | ubuntu20.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 basic_16 2>&1'. ${rc} = 0 ${stdout} = basic_16 ${rc},${stdout} Logs the given message with the given level. 0,basic_16 ${stdout} ${ns} Fails if objects are equal after converting them to strings. basic_16 == basic_16 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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 8d3f6f25-7f99-4a28-873b-c656f6a35293 ${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} = 8d3f6f25-7f99-4a28-873b-c656f6a35293 ${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 bd524a66-7032-49be-a0a8-89fce56ab14c ${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} = bd524a66-7032-49be-a0a8-89fce56ab14c ${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 b6b5e58b-e973-4b3a-aea9-fd6e104ac003 ${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} = b6b5e58b-e973-4b3a-aea9-fd6e104ac003 ${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 06bac7f2-b5f2-4290-8ee5-b19040a8663e ${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} = 06bac7f2-b5f2-4290-8ee5-b19040a8663e ${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} = 6e486a7c-51b7-42a4-8a9a-ea556eb5fa25 ${stdout} Logs the given message with the given level. 6e486a7c-51b7-42a4-8a9a-ea556eb5fa25 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 6e486a7c-51b7-42a4-8a9a-ea556eb5fa25 ${ns_id} Logs the given message with the given level. 6e486a7c-51b7-42a4-8a9a-ea556eb5fa25 ${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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 6e486a7c-51b7-42a4-8a9a-ea556eb5fa25 | 2024-04-03T01:46:01 | BUILDING | INSTANTIATING (5e5a33b7-a1d1-45f7-a586-9a23b1d55943) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | 6e486a7c-51b7-42a4-8a9a-ea556eb5fa25 | 2024-04-03T01:46:01 | BUILDING | INSTANTIATING (5e5a33b7-a1d1-45f7-a586-9a23b1d55943) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 62cde0d9-e740-44c6-bf9e-4ac78b2d9912 | basic_18-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 299e935a-79ce-4289-bc7c-4e40ce00b361 | basic_18-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 6e486a7c-51b7-42a4-8a9a-ea556eb5fa25 | 2024-04-03T01:46:01 | BUILDING | INSTANTIATING (5e5a33b7-a1d1-45f7-a586-9a23b1d55943) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | 6e486a7c-51b7-42a4-8a9a-ea556eb5fa25 | 2024-04-03T01:46:01 | BUILDING | INSTANTIATING (5e5a33b7-a1d1-45f7-a586-9a23b1d55943) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+--------------------------+--------+---------------------------------------------------------------------------------------------------------------------------+-------------+----------------------+ | b8401bb3-ed7c-4141-a49e-252373679b0a | epa_04-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf2-1-flv-2 | | f40a9817-15d9-4e91-a1c7-fc43211e6cab | epa_04-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf1-1-flv-2 | | 62cde0d9-e740-44c6-bf9e-4ac78b2d9912 | basic_18-vnf2-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.65; basic_18-datanet2=192.168.20.149; basic_18-datanet3=192.168.30.12; osm-ext=172.21.248.18 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 299e935a-79ce-4289-bc7c-4e40ce00b361 | basic_18-vnf1-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.45; basic_18-datanet2=192.168.20.83; basic_18-datanet3=192.168.30.73; osm-ext=172.21.249.121 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 6e486a7c-51b7-42a4-8a9a-ea556eb5fa25 | 2024-04-03T01:46:01 | BUILDING | INSTANTIATING (5e5a33b7-a1d1-45f7-a586-9a23b1d55943) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | 6e486a7c-51b7-42a4-8a9a-ea556eb5fa25 | 2024-04-03T01:46:01 | BUILDING | INSTANTIATING (5e5a33b7-a1d1-45f7-a586-9a23b1d55943) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+--------------------------+--------+---------------------------------------------------------------------------------------------------------------------------+-------------+----------------------+ | b8401bb3-ed7c-4141-a49e-252373679b0a | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.249.214 | ubuntu20.04 | dataVM-vnf2-1-flv-2 | | f40a9817-15d9-4e91-a1c7-fc43211e6cab | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.249.127 | ubuntu20.04 | dataVM-vnf1-1-flv-2 | | 62cde0d9-e740-44c6-bf9e-4ac78b2d9912 | basic_18-vnf2-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.65; basic_18-datanet2=192.168.20.149; basic_18-datanet3=192.168.30.12; osm-ext=172.21.248.18 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 299e935a-79ce-4289-bc7c-4e40ce00b361 | basic_18-vnf1-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.45; basic_18-datanet2=192.168.20.83; basic_18-datanet3=192.168.30.73; osm-ext=172.21.249.121 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 6e486a7c-51b7-42a4-8a9a-ea556eb5fa25 | 2024-04-03T01:46:01 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------+--------+---------------------------------------------------------------------------------------------------------------------------+... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+---------------------------------------------------------------------------------------------------------------------------+-------------+----------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+---------------------------------------------------------------------------------------------------------------------------+-------------+----------------------+ | b8401bb3-ed7c-4141-a49e-252373679b0a | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.249.214 | ubuntu20.04 | dataVM-vnf2-1-flv-2 | | f40a9817-15d9-4e91-a1c7-fc43211e6cab | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.249.127 | ubuntu20.04 | dataVM-vnf1-1-flv-2 | | 62cde0d9-e740-44c6-bf9e-4ac78b2d9912 | basic_18-vnf2-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.65; basic_18-datanet2=192.168.20.149; basic_18-datanet3=192.168.30.12; osm-ext=172.21.248.18 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 299e935a-79ce-4289-bc7c-4e40ce00b361 | basic_18-vnf1-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.45; basic_18-datanet2=192.168.20.83; basic_18-datanet3=192.168.30.73; osm-ext=172.21.249.121 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 6e486a7c-51b7-42a4-8a9a-ea556eb5fa25 | 2024-04-03T01:46:01 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} BROKEN Fails if ``container`` contains ``item`` one or more times. ${ns_id} ${id} = 6e486a7c-51b7-42a4-8a9a-ea556eb5fa25 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 6e486a7c-51b7-42a4-8a9a-ea556eb5fa25 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 6e486a7c-51b7-42a4-8a9a-ea556eb5fa25 | grep 6e486a7c-51b7-42a4-8a9a-ea556eb5fa25 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = 4a4472bc-ee75-497d-9ba8-b53e0523ed10 7e0e35da-9666-4fbf-a449-ed271d895d90 ${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} = [ 4a4472bc-ee75-497d-9ba8-b53e0523ed10 | 7e0e35da-9666-4fbf-a449-ed271d895d90 ] @{vdur} @{vnfr_list} = [ 4a4472bc-ee75-497d-9ba8-b53e0523ed10 | 7e0e35da-9666-4fbf-a449-ed271d895d90 ] ${vnfr_list} Logs the length and contents of the ``list`` using given ``level``. List length is 2 and it contains following items: 0: 4a4472bc-ee75-497d-9ba8-b53e0523ed10 1: 7e0e35da-9666-4fbf-a449-ed271d895d90 ${VNF_ID1} ${vnfr_list}[0] Makes a variable available everywhere within the scope of the current suite. ${VNF_ID1} = 4a4472bc-ee75-497d-9ba8-b53e0523ed10 ${VNF_ID2} ${vnfr_list}[1] Makes a variable available everywhere within the scope of the current suite. ${VNF_ID2} = 7e0e35da-9666-4fbf-a449-ed271d895d90 ${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 6e486a7c-51b7-42a4-8a9a-ea556eb5fa25 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.121 ${stdout} Logs the given message with the given level. 172.21.249.121 ${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.121 ${VNF1_IPMGMT} ${ip} Makes a variable available everywhere within the scope of the current suite. ${VNF1_IPMGMT} = 172.21.249.121 ${VNF1_IPMGMT} Logs the given message with the given level. 172.21.249.121 ${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 6e486a7c-51b7-42a4-8a9a-ea556eb5fa25 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.18 ${stdout} Logs the given message with the given level. 172.21.248.18 ${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.18 ${VNF2_IPMGMT} ${ip} Makes a variable available everywhere within the scope of the current suite. ${VNF2_IPMGMT} = 172.21.248.18 ${VNF2_IPMGMT} Logs the given message with the given level. 172.21.248.18 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 4a4472bc-ee75-497d-9ba8-b53e0523ed10 --literal | yq '.vdur[0].interfaces[] | select(.name == "eth1")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 192.168.10.45 ${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.45 ${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 4a4472bc-ee75-497d-9ba8-b53e0523ed10 --literal | yq '.vdur[0].interfaces[] | select(.name == "eth2")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 192.168.20.83 ${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.83 ${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 4a4472bc-ee75-497d-9ba8-b53e0523ed10 --literal | yq '.vdur[0].interfaces[] | select(.name == "eth3")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 192.168.30.73 ${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.73 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 7e0e35da-9666-4fbf-a449-ed271d895d90 --literal | yq '.vdur[0].interfaces[] | select(.name == "eth1")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 192.168.10.65 ${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.65 ${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 7e0e35da-9666-4fbf-a449-ed271d895d90 --literal | yq '.vdur[0].interfaces[] | select(.name == "eth2")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 192.168.20.149 ${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.149 ${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 7e0e35da-9666-4fbf-a449-ed271d895d90 --literal | yq '.vdur[0].interfaces[] | select(.name == "eth3")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 192.168.30.12 ${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.12 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.121: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 Wed Apr 3 01:48:11 UTC 2024 System load: 0.59 Users logged in: 0 Usage of /: 14.0% of 9.52GB IPv4 address for ens3: 172.21.249.121 Memory usage: 10% IPv4 address for ens4: 192.168.10.45 Swap usage: 0% IPv4 address for ens5: 192.168.20.83 Processes: 110 IPv4 address for ens6: 192.168.30.73 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.121/22 192.168.10.45/24 192.168.20.83/24 192.168.30.73/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.121/22 192.168.10.45/24 192.168.20.83/24 192.168.30.73/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.121/22 192.168.10.45/24 192.168.20.83/24 192.168.30.73/24 ${stdout} Logs the given message with the given level. 172.21.249.121/22 192.168.10.45/24 192.168.20.83/24 192.168.30.73/24 @{ip} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{ip} = [ 172.21.249.121/22 | 192.168.10.45/24 | 192.168.20.83/24 | 192.168.30.73/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.18: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 Wed Apr 3 01:48:13 UTC 2024 System load: 0.18 Users logged in: 0 Usage of /: 14.0% of 9.52GB IPv4 address for ens3: 172.21.248.18 Memory usage: 10% IPv4 address for ens4: 192.168.10.65 Swap usage: 0% IPv4 address for ens5: 192.168.20.149 Processes: 107 IPv4 address for ens6: 192.168.30.12 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.18/22 192.168.10.65/24 192.168.20.149/24 192.168.30.12/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.18/22 192.168.10.65/24 192.168.20.149/24 192.168.30.12/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.18/22 192.168.10.65/24 192.168.20.149/24 192.168.30.12/24 ${stdout} Logs the given message with the given level. 172.21.248.18/22 192.168.10.65/24 192.168.20.149/24 192.168.30.12/24 @{ip} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{ip} = [ 172.21.248.18/22 | 192.168.10.65/24 | 192.168.20.149/24 | 192.168.30.12/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.121: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 Wed Apr 3 01:48:15 UTC 2024 System load: 0.54 Users logged in: 0 Usage of /: 14.2% of 9.52GB IPv4 address for ens3: 172.21.249.121 Memory usage: 10% IPv4 address for ens4: 192.168.10.45 Swap usage: 0% IPv4 address for ens5: 192.168.20.83 Processes: 110 IPv4 address for ens6: 192.168.30.73 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: Wed Apr 3 01:48:12 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.18'. 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:81:e8:01 brd ff:ff:ff:ff:ff:ff inet 172.21.249.121/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86315sec preferred_lft 86315sec inet6 fe80::f816:3eff:fe81:e801/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:e9:6b:d4 brd ff:ff:ff:ff:ff:ff inet 192.168.10.45/24 brd 192.168.10.255 scope global ens4 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fee9:6bd4/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:35:7f:7c brd ff:ff:ff:ff:ff:ff inet 192.168.20.83/24 brd 192.168.20.255 scope global ens5 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe35:7f7c/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:80:20:8e brd ff:ff:ff:ff:ff:ff inet 192.168.30.73/24 brd 192.168.30.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe80:208e/64 scope link valid_lft forever preferred_lft forever PING 172.21.248.18 (172.21.248.18) 56(84) bytes of data. 64 bytes from 172.21.248.18: icmp_seq=1 ttl=64 time=2.00 ms 64 bytes from 172.21.248.18: icmp_seq=2 ttl=64 time=0.505 ms 64 bytes from 172.21.248.18: icmp_seq=3 ttl=64 time=0.542 ms 64 bytes from 172.21.248.18: icmp_seq=4 ttl=64 time=0.580 ms 64 bytes from 172.21.248.18: icmp_seq=5 ttl=64 time=0.545 ms --- 172.21.248.18 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4063ms rtt min/avg/max/mdev = 0.505/0.835/2.003/0.584 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:81:e8:01 brd ff:ff:ff:ff:ff:ff inet 172.21.249.121/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86315sec preferred_lft 86315sec inet6 fe80::f816:3eff:fe81:e801/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:e9:6b:d4 brd ff:ff:ff:ff:ff:ff inet 192.168.10.45/24 brd 192.168.10.255 scope global ens4 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fee9:6bd4/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:35:7f:7c brd ff:ff:ff:ff:ff:ff inet 192.168.20.83/24 brd 192.168.20.255 scope global ens5 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe35:7f7c/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:80:20:8e brd ff:ff:ff:ff:ff:ff inet 192.168.30.73/24 brd 192.168.30.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe80:208e/64 scope link valid_lft forever preferred_lft forever PING 172.21.248.18 (172.21.248.18) 56(84) bytes of data. 64 bytes from 172.21.248.18: icmp_seq=1 ttl=64 time=2.00 ms 64 bytes from 172.21.248.18: icmp_seq=2 ttl=64 time=0.505 ms 64 bytes from 172.21.248.18: icmp_seq=3 ttl=64 time=0.542 ms 64 bytes from 172.21.248.18: icmp_seq=4 ttl=64 time=0.580 ms 64 bytes from 172.21.248.18: icmp_seq=5 ttl=64 time=0.545 ms --- 172.21.248.18 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4063ms rtt min/avg/max/mdev = 0.505/0.835/2.003/0.584 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.121: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 Wed Apr 3 01:48:21 UTC 2024 System load: 0.5 Users logged in: 0 Usage of /: 14.2% of 9.52GB IPv4 address for ens3: 172.21.249.121 Memory usage: 10% IPv4 address for ens4: 192.168.10.45 Swap usage: 0% IPv4 address for ens5: 192.168.20.83 Processes: 110 IPv4 address for ens6: 192.168.30.73 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: Wed Apr 3 01:48:16 2024 from 172.21.249.4 To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@basic-18-vnf1-datavm-0:~$ ${stdout} ${rc} ${command} return_rc=True return_stdout=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'ping -c 5 192.168.10.65'. Command exited with return code 0. ${stdout} = PING 192.168.10.65 (192.168.10.65) 56(84) bytes of data. 64 bytes from 192.168.10.65: icmp_seq=1 ttl=64 time=1.99 ms 64 bytes from 192.168.10.65: icmp_seq=2 ttl=64 time=0.788 ms 64 bytes from 192.168.... ${rc} = 0 ${rc} Logs the given message with the given level. 0 ${stdout} Logs the given message with the given level. PING 192.168.10.65 (192.168.10.65) 56(84) bytes of data. 64 bytes from 192.168.10.65: icmp_seq=1 ttl=64 time=1.99 ms 64 bytes from 192.168.10.65: icmp_seq=2 ttl=64 time=0.788 ms 64 bytes from 192.168.10.65: icmp_seq=3 ttl=64 time=0.590 ms 64 bytes from 192.168.10.65: icmp_seq=4 ttl=64 time=0.774 ms 64 bytes from 192.168.10.65: icmp_seq=5 ttl=64 time=0.667 ms --- 192.168.10.65 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4009ms rtt min/avg/max/mdev = 0.590/0.962/1.991/0.519 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.65 (192.168.10.65) 56(84) bytes of data. 64 bytes from 192.168.10.65: icmp_seq=1 ttl=64 time=1.99 ms 64 bytes from 192.168.10.65: icmp_seq=2 ttl=64 time=0.788 ms 64 bytes from 192.168.... ${stdout} Logs the given message with the given level. PING 192.168.10.65 (192.168.10.65) 56(84) bytes of data. 64 bytes from 192.168.10.65: icmp_seq=1 ttl=64 time=1.99 ms 64 bytes from 192.168.10.65: icmp_seq=2 ttl=64 time=0.788 ms 64 bytes from 192.168.10.65: icmp_seq=3 ttl=64 time=0.590 ms 64 bytes from 192.168.10.65: icmp_seq=4 ttl=64 time=0.774 ms 64 bytes from 192.168.10.65: icmp_seq=5 ttl=64 time=0.667 ms --- 192.168.10.65 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4009ms rtt min/avg/max/mdev = 0.590/0.962/1.991/0.519 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.121: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 Wed Apr 3 01:48:27 UTC 2024 System load: 0.46 Users logged in: 0 Usage of /: 14.2% of 9.52GB IPv4 address for ens3: 172.21.249.121 Memory usage: 10% IPv4 address for ens4: 192.168.10.45 Swap usage: 0% IPv4 address for ens5: 192.168.20.83 Processes: 110 IPv4 address for ens6: 192.168.30.73 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: Wed Apr 3 01:48:22 2024 from 172.21.249.4 To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@basic-18-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.149'. Command exited with return code 0. ${stdout} = PING 192.168.20.149 (192.168.20.149) 56(84) bytes of data. 64 bytes from 192.168.20.149: icmp_seq=1 ttl=64 time=2.05 ms 64 bytes from 192.168.20.149: icmp_seq=2 ttl=64 time=0.826 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.149 (192.168.20.149) 56(84) bytes of data. 64 bytes from 192.168.20.149: icmp_seq=1 ttl=64 time=2.05 ms 64 bytes from 192.168.20.149: icmp_seq=2 ttl=64 time=0.826 ms 64 bytes from 192.168.20.149: icmp_seq=3 ttl=64 time=0.576 ms 64 bytes from 192.168.20.149: icmp_seq=4 ttl=64 time=0.568 ms 64 bytes from 192.168.20.149: icmp_seq=5 ttl=64 time=0.703 ms --- 192.168.20.149 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4047ms rtt min/avg/max/mdev = 0.568/0.945/2.054/0.562 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.149 (192.168.20.149) 56(84) bytes of data. 64 bytes from 192.168.20.149: icmp_seq=1 ttl=64 time=2.05 ms 64 bytes from 192.168.20.149: icmp_seq=2 ttl=64 time=0.826 ms 64 bytes from 192.... ${stdout} Logs the given message with the given level. PING 192.168.20.149 (192.168.20.149) 56(84) bytes of data. 64 bytes from 192.168.20.149: icmp_seq=1 ttl=64 time=2.05 ms 64 bytes from 192.168.20.149: icmp_seq=2 ttl=64 time=0.826 ms 64 bytes from 192.168.20.149: icmp_seq=3 ttl=64 time=0.576 ms 64 bytes from 192.168.20.149: icmp_seq=4 ttl=64 time=0.568 ms 64 bytes from 192.168.20.149: icmp_seq=5 ttl=64 time=0.703 ms --- 192.168.20.149 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4047ms rtt min/avg/max/mdev = 0.568/0.945/2.054/0.562 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.121: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 Wed Apr 3 01:48:33 UTC 2024 System load: 0.42 Users logged in: 0 Usage of /: 14.2% of 9.52GB IPv4 address for ens3: 172.21.249.121 Memory usage: 10% IPv4 address for ens4: 192.168.10.45 Swap usage: 0% IPv4 address for ens5: 192.168.20.83 Processes: 110 IPv4 address for ens6: 192.168.30.73 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: Wed Apr 3 01:48:27 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.12'. Command exited with return code 0. ${stdout} = PING 192.168.30.12 (192.168.30.12) 56(84) bytes of data. 64 bytes from 192.168.30.12: icmp_seq=1 ttl=64 time=2.37 ms 64 bytes from 192.168.30.12: icmp_seq=2 ttl=64 time=0.696 ms 64 bytes from 192.168.... ${rc} = 0 ${rc} Logs the given message with the given level. 0 ${stdout} Logs the given message with the given level. PING 192.168.30.12 (192.168.30.12) 56(84) bytes of data. 64 bytes from 192.168.30.12: icmp_seq=1 ttl=64 time=2.37 ms 64 bytes from 192.168.30.12: icmp_seq=2 ttl=64 time=0.696 ms 64 bytes from 192.168.30.12: icmp_seq=3 ttl=64 time=0.552 ms 64 bytes from 192.168.30.12: icmp_seq=4 ttl=64 time=0.660 ms 64 bytes from 192.168.30.12: icmp_seq=5 ttl=64 time=0.600 ms --- 192.168.30.12 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4074ms rtt min/avg/max/mdev = 0.552/0.975/2.369/0.698 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.12 (192.168.30.12) 56(84) bytes of data. 64 bytes from 192.168.30.12: icmp_seq=1 ttl=64 time=2.37 ms 64 bytes from 192.168.30.12: icmp_seq=2 ttl=64 time=0.696 ms 64 bytes from 192.168.... ${stdout} Logs the given message with the given level. PING 192.168.30.12 (192.168.30.12) 56(84) bytes of data. 64 bytes from 192.168.30.12: icmp_seq=1 ttl=64 time=2.37 ms 64 bytes from 192.168.30.12: icmp_seq=2 ttl=64 time=0.696 ms 64 bytes from 192.168.30.12: icmp_seq=3 ttl=64 time=0.552 ms 64 bytes from 192.168.30.12: icmp_seq=4 ttl=64 time=0.660 ms 64 bytes from 192.168.30.12: icmp_seq=5 ttl=64 time=0.600 ms --- 192.168.30.12 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4074ms rtt min/avg/max/mdev = 0.552/0.975/2.369/0.698 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.18: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 Wed Apr 3 01:48:39 UTC 2024 System load: 0.11 Users logged in: 0 Usage of /: 14.2% of 9.52GB IPv4 address for ens3: 172.21.248.18 Memory usage: 10% IPv4 address for ens4: 192.168.10.65 Swap usage: 0% IPv4 address for ens5: 192.168.20.149 Processes: 107 IPv4 address for ens6: 192.168.30.12 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: Wed Apr 3 01:48: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 172.21.249.121'. 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:1a:83:1b brd ff:ff:ff:ff:ff:ff inet 172.21.248.18/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86300sec preferred_lft 86300sec inet6 fe80::f816:3eff:fe1a:831b/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:41:8e:76 brd ff:ff:ff:ff:ff:ff inet 192.168.10.65/24 brd 192.168.10.255 scope global ens4 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe41:8e76/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:c3:ab:c3 brd ff:ff:ff:ff:ff:ff inet 192.168.20.149/24 brd 192.168.20.255 scope global ens5 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fec3:abc3/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:19:03:db brd ff:ff:ff:ff:ff:ff inet 192.168.30.12/24 brd 192.168.30.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe19:3db/64 scope link valid_lft forever preferred_lft forever PING 172.21.249.121 (172.21.249.121) 56(84) bytes of data. 64 bytes from 172.21.249.121: icmp_seq=1 ttl=64 time=1.12 ms 64 bytes from 172.21.249.121: icmp_seq=2 ttl=64 time=0.701 ms 64 bytes from 172.21.249.121: icmp_seq=3 ttl=64 time=0.781 ms 64 bytes from 172.21.249.121: icmp_seq=4 ttl=64 time=0.528 ms 64 bytes from 172.21.249.121: icmp_seq=5 ttl=64 time=0.671 ms --- 172.21.249.121 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4056ms rtt min/avg/max/mdev = 0.528/0.760/1.120/0.197 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:1a:83:1b brd ff:ff:ff:ff:ff:ff inet 172.21.248.18/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86300sec preferred_lft 86300sec inet6 fe80::f816:3eff:fe1a:831b/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:41:8e:76 brd ff:ff:ff:ff:ff:ff inet 192.168.10.65/24 brd 192.168.10.255 scope global ens4 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe41:8e76/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:c3:ab:c3 brd ff:ff:ff:ff:ff:ff inet 192.168.20.149/24 brd 192.168.20.255 scope global ens5 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fec3:abc3/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:19:03:db brd ff:ff:ff:ff:ff:ff inet 192.168.30.12/24 brd 192.168.30.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe19:3db/64 scope link valid_lft forever preferred_lft forever PING 172.21.249.121 (172.21.249.121) 56(84) bytes of data. 64 bytes from 172.21.249.121: icmp_seq=1 ttl=64 time=1.12 ms 64 bytes from 172.21.249.121: icmp_seq=2 ttl=64 time=0.701 ms 64 bytes from 172.21.249.121: icmp_seq=3 ttl=64 time=0.781 ms 64 bytes from 172.21.249.121: icmp_seq=4 ttl=64 time=0.528 ms 64 bytes from 172.21.249.121: icmp_seq=5 ttl=64 time=0.671 ms --- 172.21.249.121 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4056ms rtt min/avg/max/mdev = 0.528/0.760/1.120/0.197 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.18: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 Wed Apr 3 01:48:45 UTC 2024 System load: 0.1 Users logged in: 0 Usage of /: 14.2% of 9.52GB IPv4 address for ens3: 172.21.248.18 Memory usage: 10% IPv4 address for ens4: 192.168.10.65 Swap usage: 0% IPv4 address for ens5: 192.168.20.149 Processes: 105 IPv4 address for ens6: 192.168.30.12 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: Wed Apr 3 01:48:39 2024 from 172.21.249.4 To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@basic-18-vnf2-datavm-0:~$ ${stdout} ${rc} ${command} return_rc=True return_stdout=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'ip addr ; ping -c 5 192.168.10.45'. 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:1a:83:1b brd ff:ff:ff:ff:ff:ff inet 172.21.248.18/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86294sec preferred_lft 86294sec inet6 fe80::f816:3eff:fe1a:831b/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:41:8e:76 brd ff:ff:ff:ff:ff:ff inet 192.168.10.65/24 brd 192.168.10.255 scope global ens4 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe41:8e76/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:c3:ab:c3 brd ff:ff:ff:ff:ff:ff inet 192.168.20.149/24 brd 192.168.20.255 scope global ens5 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fec3:abc3/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:19:03:db brd ff:ff:ff:ff:ff:ff inet 192.168.30.12/24 brd 192.168.30.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe19:3db/64 scope link valid_lft forever preferred_lft forever PING 192.168.10.45 (192.168.10.45) 56(84) bytes of data. 64 bytes from 192.168.10.45: icmp_seq=1 ttl=64 time=1.22 ms 64 bytes from 192.168.10.45: icmp_seq=2 ttl=64 time=0.846 ms 64 bytes from 192.168.10.45: icmp_seq=3 ttl=64 time=0.475 ms 64 bytes from 192.168.10.45: icmp_seq=4 ttl=64 time=0.517 ms 64 bytes from 192.168.10.45: icmp_seq=5 ttl=64 time=0.594 ms --- 192.168.10.45 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4047ms rtt min/avg/max/mdev = 0.475/0.729/1.216/0.275 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:1a:83:1b brd ff:ff:ff:ff:ff:ff inet 172.21.248.18/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86294sec preferred_lft 86294sec inet6 fe80::f816:3eff:fe1a:831b/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:41:8e:76 brd ff:ff:ff:ff:ff:ff inet 192.168.10.65/24 brd 192.168.10.255 scope global ens4 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe41:8e76/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:c3:ab:c3 brd ff:ff:ff:ff:ff:ff inet 192.168.20.149/24 brd 192.168.20.255 scope global ens5 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fec3:abc3/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:19:03:db brd ff:ff:ff:ff:ff:ff inet 192.168.30.12/24 brd 192.168.30.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe19:3db/64 scope link valid_lft forever preferred_lft forever PING 192.168.10.45 (192.168.10.45) 56(84) bytes of data. 64 bytes from 192.168.10.45: icmp_seq=1 ttl=64 time=1.22 ms 64 bytes from 192.168.10.45: icmp_seq=2 ttl=64 time=0.846 ms 64 bytes from 192.168.10.45: icmp_seq=3 ttl=64 time=0.475 ms 64 bytes from 192.168.10.45: icmp_seq=4 ttl=64 time=0.517 ms 64 bytes from 192.168.10.45: icmp_seq=5 ttl=64 time=0.594 ms --- 192.168.10.45 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4047ms rtt min/avg/max/mdev = 0.475/0.729/1.216/0.275 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.18: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 Wed Apr 3 01:48:50 UTC 2024 System load: 0.1 Users logged in: 0 Usage of /: 14.2% of 9.52GB IPv4 address for ens3: 172.21.248.18 Memory usage: 10% IPv4 address for ens4: 192.168.10.65 Swap usage: 0% IPv4 address for ens5: 192.168.20.149 Processes: 109 IPv4 address for ens6: 192.168.30.12 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: Wed Apr 3 01:48:45 2024 from 172.21.249.4 To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@basic-18-vnf2-datavm-0:~$ ${stdout} ${rc} ${command} return_rc=True return_stdout=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'ip addr ; ping -c 5 192.168.20.83'. Command exited with return code 0. ${stdout} = 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lf... ${rc} = 0 ${rc} Logs the given message with the given level. 0 ${stdout} Logs the given message with the given level. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether fa:16:3e:1a:83:1b brd ff:ff:ff:ff:ff:ff inet 172.21.248.18/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86288sec preferred_lft 86288sec inet6 fe80::f816:3eff:fe1a:831b/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:41:8e:76 brd ff:ff:ff:ff:ff:ff inet 192.168.10.65/24 brd 192.168.10.255 scope global ens4 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe41:8e76/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:c3:ab:c3 brd ff:ff:ff:ff:ff:ff inet 192.168.20.149/24 brd 192.168.20.255 scope global ens5 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fec3:abc3/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:19:03:db brd ff:ff:ff:ff:ff:ff inet 192.168.30.12/24 brd 192.168.30.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe19:3db/64 scope link valid_lft forever preferred_lft forever PING 192.168.20.83 (192.168.20.83) 56(84) bytes of data. 64 bytes from 192.168.20.83: icmp_seq=1 ttl=64 time=1.23 ms 64 bytes from 192.168.20.83: icmp_seq=2 ttl=64 time=0.601 ms 64 bytes from 192.168.20.83: icmp_seq=3 ttl=64 time=0.659 ms 64 bytes from 192.168.20.83: icmp_seq=4 ttl=64 time=0.764 ms 64 bytes from 192.168.20.83: icmp_seq=5 ttl=64 time=0.643 ms --- 192.168.20.83 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4053ms rtt min/avg/max/mdev = 0.601/0.778/1.225/0.229 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:1a:83:1b brd ff:ff:ff:ff:ff:ff inet 172.21.248.18/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86288sec preferred_lft 86288sec inet6 fe80::f816:3eff:fe1a:831b/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:41:8e:76 brd ff:ff:ff:ff:ff:ff inet 192.168.10.65/24 brd 192.168.10.255 scope global ens4 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe41:8e76/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:c3:ab:c3 brd ff:ff:ff:ff:ff:ff inet 192.168.20.149/24 brd 192.168.20.255 scope global ens5 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fec3:abc3/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:19:03:db brd ff:ff:ff:ff:ff:ff inet 192.168.30.12/24 brd 192.168.30.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe19:3db/64 scope link valid_lft forever preferred_lft forever PING 192.168.20.83 (192.168.20.83) 56(84) bytes of data. 64 bytes from 192.168.20.83: icmp_seq=1 ttl=64 time=1.23 ms 64 bytes from 192.168.20.83: icmp_seq=2 ttl=64 time=0.601 ms 64 bytes from 192.168.20.83: icmp_seq=3 ttl=64 time=0.659 ms 64 bytes from 192.168.20.83: icmp_seq=4 ttl=64 time=0.764 ms 64 bytes from 192.168.20.83: icmp_seq=5 ttl=64 time=0.643 ms --- 192.168.20.83 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4053ms rtt min/avg/max/mdev = 0.601/0.778/1.225/0.229 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.18: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 Wed Apr 3 01:48:56 UTC 2024 System load: 0.09 Users logged in: 0 Usage of /: 14.2% of 9.52GB IPv4 address for ens3: 172.21.248.18 Memory usage: 10% IPv4 address for ens4: 192.168.10.65 Swap usage: 0% IPv4 address for ens5: 192.168.20.149 Processes: 109 IPv4 address for ens6: 192.168.30.12 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: Wed Apr 3 01:48:51 2024 from 172.21.249.4 To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@basic-18-vnf2-datavm-0:~$ ${stdout} ${rc} ${command} return_rc=True return_stdout=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'ip addr ; ping -c 5 192.168.30.73'. 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:1a:83:1b brd ff:ff:ff:ff:ff:ff inet 172.21.248.18/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86282sec preferred_lft 86282sec inet6 fe80::f816:3eff:fe1a:831b/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:41:8e:76 brd ff:ff:ff:ff:ff:ff inet 192.168.10.65/24 brd 192.168.10.255 scope global ens4 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe41:8e76/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:c3:ab:c3 brd ff:ff:ff:ff:ff:ff inet 192.168.20.149/24 brd 192.168.20.255 scope global ens5 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fec3:abc3/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:19:03:db brd ff:ff:ff:ff:ff:ff inet 192.168.30.12/24 brd 192.168.30.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe19:3db/64 scope link valid_lft forever preferred_lft forever PING 192.168.30.73 (192.168.30.73) 56(84) bytes of data. 64 bytes from 192.168.30.73: icmp_seq=1 ttl=64 time=1.09 ms 64 bytes from 192.168.30.73: icmp_seq=2 ttl=64 time=0.748 ms 64 bytes from 192.168.30.73: icmp_seq=3 ttl=64 time=0.638 ms 64 bytes from 192.168.30.73: icmp_seq=4 ttl=64 time=0.828 ms 64 bytes from 192.168.30.73: icmp_seq=5 ttl=64 time=0.571 ms --- 192.168.30.73 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4046ms rtt min/avg/max/mdev = 0.571/0.774/1.087/0.179 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:1a:83:1b brd ff:ff:ff:ff:ff:ff inet 172.21.248.18/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86282sec preferred_lft 86282sec inet6 fe80::f816:3eff:fe1a:831b/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:41:8e:76 brd ff:ff:ff:ff:ff:ff inet 192.168.10.65/24 brd 192.168.10.255 scope global ens4 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe41:8e76/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:c3:ab:c3 brd ff:ff:ff:ff:ff:ff inet 192.168.20.149/24 brd 192.168.20.255 scope global ens5 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fec3:abc3/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:19:03:db brd ff:ff:ff:ff:ff:ff inet 192.168.30.12/24 brd 192.168.30.255 scope global ens6 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe19:3db/64 scope link valid_lft forever preferred_lft forever PING 192.168.30.73 (192.168.30.73) 56(84) bytes of data. 64 bytes from 192.168.30.73: icmp_seq=1 ttl=64 time=1.09 ms 64 bytes from 192.168.30.73: icmp_seq=2 ttl=64 time=0.748 ms 64 bytes from 192.168.30.73: icmp_seq=3 ttl=64 time=0.638 ms 64 bytes from 192.168.30.73: icmp_seq=4 ttl=64 time=0.828 ms 64 bytes from 192.168.30.73: icmp_seq=5 ttl=64 time=0.571 ms --- 192.168.30.73 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4046ms rtt min/avg/max/mdev = 0.571/0.774/1.087/0.179 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 | +--------------------------------------+--------------------------+--------+---------------------------------------------------------------------------------------------------------------------------+-------------+----------------------+ | b8401bb3-ed7c-4141-a49e-252373679b0a | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.249.214 | ubuntu20.04 | dataVM-vnf2-1-flv-2 | | f40a9817-15d9-4e91-a1c7-fc43211e6cab | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.249.127 | ubuntu20.04 | dataVM-vnf1-1-flv-2 | | 62cde0d9-e740-44c6-bf9e-4ac78b2d9912 | basic_18-vnf2-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.65; basic_18-datanet2=192.168.20.149; basic_18-datanet3=192.168.30.12; osm-ext=172.21.248.18 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 299e935a-79ce-4289-bc7c-4e40ce00b361 | basic_18-vnf1-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.45; basic_18-datanet2=192.168.20.83; basic_18-datanet3=192.168.30.73; osm-ext=172.21.249.121 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 basic_18 2>&1'. ${rc} = 0 ${stdout} = basic_18 ${rc},${stdout} Logs the given message with the given level. 0,basic_18 ${stdout} ${ns} Fails if objects are equal after converting them to strings. basic_18 == basic_18 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | b8401bb3-ed7c-4141-a49e-252373679b0a | epa_04-vnf2-dataVM-0 | ACTIVE | osm-ext=172.21.249.214 | ubuntu20.04 | dataVM-vnf2-1-flv-2 | | f40a9817-15d9-4e91-a1c7-fc43211e6cab | epa_04-vnf1-dataVM-0 | ACTIVE | osm-ext=172.21.249.127 | ubuntu20.04 | dataVM-vnf1-1-flv-2 | | 62cde0d9-e740-44c6-bf9e-4ac78b2d9912 | basic_18-vnf2-dataVM-0 | ACTIVE | | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 basic_18 2>&1'. ${rc} = 0 ${stdout} = basic_18 ${rc},${stdout} Logs the given message with the given level. 0,basic_18 ${stdout} ${ns} Fails if objects are equal after converting them to strings. basic_18 == basic_18 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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 90f32e31-fba4-44c6-addf-3e49a0ab6972 ${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} = 90f32e31-fba4-44c6-addf-3e49a0ab6972 ${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 fe7286fa-76af-43e8-9077-fc8c30740198 ${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} = fe7286fa-76af-43e8-9077-fc8c30740198 ${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} = beba70b0-0101-47bd-ac2b-c8b1f1dd11b3 ${stdout} Logs the given message with the given level. beba70b0-0101-47bd-ac2b-c8b1f1dd11b3 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = beba70b0-0101-47bd-ac2b-c8b1f1dd11b3 ${ns_id} Logs the given message with the given level. beba70b0-0101-47bd-ac2b-c8b1f1dd11b3 ${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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | beba70b0-0101-47bd-ac2b-c8b1f1dd11b3 | 2024-04-03T01:49:53 | BUILDING | INSTANTIATING (97cf1296-4446-4d0f-9f37-862fd0ad35ac) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | beba70b0-0101-47bd-ac2b-c8b1f1dd11b3 | 2024-04-03T01:49:53 | BUILDING | INSTANTIATING (97cf1296-4446-4d0f-9f37-862fd0ad35ac) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+---------------------------+--------+-------------------------------------------------------------+-------------+-------------------------+ | 3cc4e1ee-a7e9-4574-bebc-275fced8545b | basic_19-vnf-dataVM-0 | ACTIVE | basic_19-internal=192.168.200.156 | ubuntu20.04 | simple_requires-1-1-flv | | 327efac0-8ce8-45e7-b5a9-41f2903116b4 | basic_19-vnf-mgmtVM-0 | ACTIVE | basic_19-internal=192.168.200.70; osm-ext=172.21.248.89 | ubuntu20.04 | simple_requires-1-1-flv | | 330734cc-4295-4181-b480-891397e47311 | fail_01_5088-vnf-mgmtVM-0 | ACTIVE | fail_01_5088-internal=192.168.9.171; osm-ext=172.21.249.179 | ubuntu20.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | beba70b0-0101-47bd-ac2b-c8b1f1dd11b3 | 2024-04-03T01:49:53 | BUILDING | INSTANTIATING (97cf1296-4446-4d0f-9f37-862fd0ad35ac) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | beba70b0-0101-47bd-ac2b-c8b1f1dd11b3 | 2024-04-03T01:49:53 | BUILDING | INSTANTIATING (97cf1296-4446-4d0f-9f37-862fd0ad35ac) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+--------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | 3cc4e1ee-a7e9-4574-bebc-275fced8545b | basic_19-vnf-dataVM-0 | ACTIVE | basic_19-internal=192.168.200.156 | ubuntu20.04 | simple_requires-1-1-flv | | 327efac0-8ce8-45e7-b5a9-41f2903116b4 | basic_19-vnf-mgmtVM-0 | ACTIVE | basic_19-internal=192.168.200.70; osm-ext=172.21.248.89 | ubuntu20.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | beba70b0-0101-47bd-ac2b-c8b1f1dd11b3 | 2024-04-03T01:49: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 | +--------------------------------------+--------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | 3cc4e1ee-a7e9-4574-bebc-275fced8545b | basic_19-vnf-dataVM-0 | ACTIVE | basic_19-internal=192.168.200.156 | ubuntu20.04 | simple_requires-1-1-flv | | 327efac0-8ce8-45e7-b5a9-41f2903116b4 | basic_19-vnf-mgmtVM-0 | ACTIVE | basic_19-internal=192.168.200.70; osm-ext=172.21.248.89 | ubuntu20.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | beba70b0-0101-47bd-ac2b-c8b1f1dd11b3 | 2024-04-03T01:49: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} = beba70b0-0101-47bd-ac2b-c8b1f1dd11b3 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = beba70b0-0101-47bd-ac2b-c8b1f1dd11b3 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 beba70b0-0101-47bd-ac2b-c8b1f1dd11b3 | grep beba70b0-0101-47bd-ac2b-c8b1f1dd11b3 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = a325117c-74f5-4828-af65-45e81c1326be ${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} = [ a325117c-74f5-4828-af65-45e81c1326be ] @{vdur} @{vnfr_list} = [ a325117c-74f5-4828-af65-45e81c1326be ] ${vnfr_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: a325117c-74f5-4828-af65-45e81c1326be ${VNF_ID} ${vnfr_list}[0] Makes a variable available everywhere within the scope of the current suite. ${VNF_ID} = a325117c-74f5-4828-af65-45e81c1326be ${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 beba70b0-0101-47bd-ac2b-c8b1f1dd11b3 | 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} = 172.21.248.89 ${VNF_IPMGMT} ${ip} Makes a variable available everywhere within the scope of the current suite. ${VNF_IPMGMT} = 172.21.248.89 ${VNF_IPMGMT} Logs the given message with the given level. 172.21.248.89 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 a325117c-74f5-4828-af65-45e81c1326be --literal | yq '.vdur[0].interfaces[] | select(."vnf-vld-id" == "internal")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 192.168.200.70 ${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 a325117c-74f5-4828-af65-45e81c1326be --literal | yq '.vdur[1].interfaces[] | select(."vnf-vld-id" == "internal")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 192.168.200.156 ${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 | +--------------------------------------+---------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | 96e0f4a5-fd34-4c4a-b5f8-a60f3d1830a6 | hfbasic-vnf-hackfest_basic-VM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 3cc4e1ee-a7e9-4574-bebc-275fced8545b | basic_19-vnf-dataVM-0 | ACTIVE | basic_19-internal=192.168.200.156 | ubuntu20.04 | simple_requires-1-1-flv | | 327efac0-8ce8-45e7-b5a9-41f2903116b4 | basic_19-vnf-mgmtVM-0 | ACTIVE | basic_19-internal=192.168.200.70; osm-ext=172.21.248.89 | ubuntu20.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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 | +--------------------------------------+---------------------------------+--------+------------------------+-------------+-------------------------+ | 96e0f4a5-fd34-4c4a-b5f8-a60f3d1830a6 | hfbasic-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.61 | ubuntu20.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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 d2e665de-060b-4d0f-a3f2-214850d3dede ${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} = d2e665de-060b-4d0f-a3f2-214850d3dede ${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 9d904506-b0c6-4a4a-9f99-e948845b50a2 ${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} = 9d904506-b0c6-4a4a-9f99-e948845b50a2 ${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} = 46d3973a-d78a-4ebe-bfd2-d1089258f48f ${stdout} Logs the given message with the given level. 46d3973a-d78a-4ebe-bfd2-d1089258f48f ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 46d3973a-d78a-4ebe-bfd2-d1089258f48f ${ns_id} Logs the given message with the given level. 46d3973a-d78a-4ebe-bfd2-d1089258f48f ${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 | +--------------------------------------+---------------------------------+--------+------------------------+-------------+-------------------------+ | 96e0f4a5-fd34-4c4a-b5f8-a60f3d1830a6 | hfbasic-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.61 | ubuntu20.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 46d3973a-d78a-4ebe-bfd2-d1089258f48f | 2024-04-03T01:51:46 | BUILDING | INSTANTIATING (4a3adf72-fff7-4dd6-84b6-e7d1d30e0940) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | 46d3973a-d78a-4ebe-bfd2-d1089258f48f | 2024-04-03T01:51:46 | BUILDING | INSTANTIATING (4a3adf72-fff7-4dd6-84b6-e7d1d30e0940) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 302cde56-304a-46e0-9f93-977b5511a367 | basic_21-vnf-several-volu-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.115 | ubuntu20.04 | several_volumes-VM-flv | | 96e0f4a5-fd34-4c4a-b5f8-a60f3d1830a6 | hfbasic-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.61 | ubuntu20.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 46d3973a-d78a-4ebe-bfd2-d1089258f48f | 2024-04-03T01:51:46 | BUILDING | INSTANTIATING (4a3adf72-fff7-4dd6-84b6-e7d1d30e0940) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | 46d3973a-d78a-4ebe-bfd2-d1089258f48f | 2024-04-03T01:51:46 | BUILDING | INSTANTIATING (4a3adf72-fff7-4dd6-84b6-e7d1d30e0940) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+------------------------+ | 302cde56-304a-46e0-9f93-977b5511a367 | basic_21-vnf-several-volu-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.115 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 46d3973a-d78a-4ebe-bfd2-d1089258f48f | 2024-04-03T01:51:46 | 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 | +--------------------------------------+------------------------------------------------+--------+------------------------+-------------+------------------------+ | 302cde56-304a-46e0-9f93-977b5511a367 | basic_21-vnf-several-volu-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.115 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 46d3973a-d78a-4ebe-bfd2-d1089258f48f | 2024-04-03T01:51:46 | 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} = 46d3973a-d78a-4ebe-bfd2-d1089258f48f ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 46d3973a-d78a-4ebe-bfd2-d1089258f48f 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} = 46d3973a-d78a-4ebe-bfd2-d1089258f48f ${stdout} Logs the given message with the given level. 46d3973a-d78a-4ebe-bfd2-d1089258f48f ${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} = 46d3973a-d78a-4ebe-bfd2-d1089258f48f ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 46d3973a-d78a-4ebe-bfd2-d1089258f48f 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 46d3973a-d78a-4ebe-bfd2-d1089258f48f | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.115 ${stdout} Logs the given message with the given level. 172.21.249.115 ${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.115 ${ip_addr} Logs the given message with the given level. 172.21.249.115 ${VNF_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. ${VNF_IP_ADDR} = 172.21.249.115 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.115: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 Wed Apr 3 01:53:32 UTC 2024 System load: 0.27 Processes: 104 Usage of /: 14.0% of 9.52GB Users logged in: 0 Memory usage: 21% IPv4 address for ens3: 172.21.249.115 Swap usage: 0% 1 update can be applied immediately. To see these additional updates run: apt list --upgradable The list of available updates is more than a week old. To check for new updates run: sudo apt update The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@basic-21-vnf-several-volu-several-volumes-vm-0:~$ ${stdout} ${rc} ${command} return_rc=True return_stdout=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'sudo lsblk -l'. Command exited with return code 0. ${stdout} = NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 61.9M 1 loop /snap/core20/1405 loop1 7:1 0 67.8M 1 loop /snap/lxd/22753 loop2 7:2 0 43.6M 1 loop /snap/snapd/15177 vda 252:0 ... ${rc} = 0 ${rc} Logs the given message with the given level. 0 ${stdout} Logs the given message with the given level. NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 61.9M 1 loop /snap/core20/1405 loop1 7:1 0 67.8M 1 loop /snap/lxd/22753 loop2 7:2 0 43.6M 1 loop /snap/snapd/15177 vda 252:0 0 10G 0 disk vda1 252:1 0 9.9G 0 part / vda14 252:14 0 4M 0 part vda15 252:15 0 106M 0 part /boot/efi vdb 252:16 0 2G 0 disk /mnt vdc 252:32 0 1G 0 disk Closes all open connections. ${rc} 0 Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${stdout} = NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 61.9M 1 loop /snap/core20/1405 loop1 7:1 0 67.8M 1 loop /snap/lxd/22753 loop2 7:2 0 43.6M 1 loop /snap/snapd/15177 vda 252:0 ... ${stdout} Logs the given message with the given level. NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 61.9M 1 loop /snap/core20/1405 loop1 7:1 0 67.8M 1 loop /snap/lxd/22753 loop2 7:2 0 43.6M 1 loop /snap/snapd/15177 vda 252:0 0 10G 0 disk vda1 252:1 0 9.9G 0 part / vda14 252:14 0 4M 0 part vda15 252:15 0 106M 0 part /boot/efi vdb 252:16 0 2G 0 disk /mnt vdc 252:32 0 1G 0 disk ${lines} ${stdout} disk Returns lines of the given ``string`` that contain the ``pattern``. 3 out of 10 lines matched ${lines} = vda 252:0 0 10G 0 disk vdb 252:16 0 2G 0 disk /mnt vdc 252:32 0 1G 0 disk ${num_lines} ${lines} Returns and logs the number of lines in the given string. 3 lines ${num_lines} = 3 msg=Number of disks (${num_lines}) is less than specified in VDU (${VNF_NUM_VOLUMES}) Fails the test with the given message and optionally alters its tags. Check that the number of volumes is the expected one. basic_21 cluster_main daily regression verify ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete basic_21 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+------------------------------------------------+--------+--------------------------------------------------------------------------+-------------+-------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------------+--------+--------------------------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------------+--------+--------------------------------------------------------------------------+-------------+-------------------------+ | 24271afd-7687-434c-92f4-22ebd046a7ab | hfcloudinit-vnf2-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.70.155; hfcloudinit-internal=192.168.80.35 | ubuntu20.04 | simple_requires-1-1-flv | | 1e0d806b-2bcc-406b-9cae-22bdf8fdcee5 | hfcloudinit-vnf2-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.80.192; osm-ext=172.21.249.25 | ubuntu20.04 | simple_requires-1-1-flv | | 9e254c80-f866-43bf-9fca-90638ab6806d | hfcloudinit-vnf1-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.70.223; hfcloudinit-internal=192.168.199.201 | ubuntu20.04 | simple_requires-1-1-flv | | 855415b6-9f7a-459f-aef5-aa63afb4a512 | hfcloudinit-vnf1-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.199.127; osm-ext=172.21.249.130 | ubuntu20.04 | simple_requires-1-1-flv | | 302cde56-304a-46e0-9f93-977b5511a367 | basic_21-vnf-several-volu-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.115 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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 ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+---------------------------+--------+--------------------------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------+--------+--------------------------------------------------------------------------+-------------+-------------------------+ | 24271afd-7687-434c-92f4-22ebd046a7ab | hfcloudinit-vnf2-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.70.155; hfcloudinit-internal=192.168.80.35 | ubuntu20.04 | simple_requires-1-1-flv | | 1e0d806b-2bcc-406b-9cae-22bdf8fdcee5 | hfcloudinit-vnf2-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.80.192; osm-ext=172.21.249.25 | ubuntu20.04 | simple_requires-1-1-flv | | 9e254c80-f866-43bf-9fca-90638ab6806d | hfcloudinit-vnf1-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.70.223; hfcloudinit-internal=192.168.199.201 | ubuntu20.04 | simple_requires-1-1-flv | | 855415b6-9f7a-459f-aef5-aa63afb4a512 | hfcloudinit-vnf1-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.199.127; osm-ext=172.21.249.130 | ubuntu20.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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 941ac535-1738-4b16-a34b-d2f27f6fb672 ${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} = 941ac535-1738-4b16-a34b-d2f27f6fb672 ${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 490f37... ${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 490f37ae-f219-4216-9ab3-6eda270d1cbf ${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} = 490f37ae-f219-4216-9ab3-6eda270d1cbf ${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 c5ae5f2f-9dcb-492b-b408-476415243ffd ${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} = c5ae5f2f-9dcb-492b-b408-476415243ffd ${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 bfc89c01-e393-4b2a-a763-cea4b13a5b79 ${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} = bfc89c01-e393-4b2a-a763-cea4b13a5b79 ${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} = 8b4d720d-8801-4aa5-9ffd-efde5d52dfc3 ${stdout} Logs the given message with the given level. 8b4d720d-8801-4aa5-9ffd-efde5d52dfc3 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 8b4d720d-8801-4aa5-9ffd-efde5d52dfc3 ${ns_id} Logs the given message with the given level. 8b4d720d-8801-4aa5-9ffd-efde5d52dfc3 ${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 | +--------------------------------------+---------------------------+--------+--------------------------------------------------------------------------+-------------+-------------------------+ | 24271afd-7687-434c-92f4-22ebd046a7ab | hfcloudinit-vnf2-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.70.155; hfcloudinit-internal=192.168.80.35 | ubuntu20.04 | simple_requires-1-1-flv | | 1e0d806b-2bcc-406b-9cae-22bdf8fdcee5 | hfcloudinit-vnf2-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.80.192; osm-ext=172.21.249.25 | ubuntu20.04 | simple_requires-1-1-flv | | 9e254c80-f866-43bf-9fca-90638ab6806d | hfcloudinit-vnf1-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.70.223; hfcloudinit-internal=192.168.199.201 | ubuntu20.04 | simple_requires-1-1-flv | | 855415b6-9f7a-459f-aef5-aa63afb4a512 | hfcloudinit-vnf1-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.199.127; osm-ext=172.21.249.130 | ubuntu20.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 8b4d720d-8801-4aa5-9ffd-efde5d52dfc3 | 2024-04-03T01:54:22 | BUILDING | INSTANTIATING (b9383f8d-11a9-4790-8101-21308354a32b) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | 8b4d720d-8801-4aa5-9ffd-efde5d52dfc3 | 2024-04-03T01:54:22 | BUILDING | INSTANTIATING (b9383f8d-11a9-4790-8101-21308354a32b) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+-------------------------------------------------+--------+------------------------------------------------------------+-------------+-------------------------+ | d92f9647-a5ed-4242-b6e1-9f01adb2e696 | basic_24-affinity-basic-1-affinity_basic-VM-2-0 | ACTIVE | osm-ext=172.21.248.14 | ubuntu20.04 | simple_requires-1-1-flv | | 3162b1ff-f66a-4378-8efd-8ea54bcead32 | basic_24-affinity-basic-1-affinity_basic-VM-1-0 | ACTIVE | osm-ext=172.21.248.207 | ubuntu20.04 | simple_requires-1-1-flv | | 24271afd-7687-434c-92f4-22ebd046a7ab | hfcloudinit-vnf2-dataVM-0 | ACTIVE | hfcloudinit-internal=192.168.80.35 | ubuntu20.04 | simple_requires-1-1-flv | | 1e0d806b-2bcc-406b-9cae-22bdf8fdcee5 | hfcloudinit-vnf2-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.80.192; osm-ext=172.21.249.25 | ubuntu20.04 | simple_requires-1-1-flv | | 9e254c80-f866-43bf-9fca-90638ab6806d | hfcloudinit-vnf1-dataVM-0 | ACTIVE | | ubuntu20.04 | simple_requires-1-1-flv | | 855415b6-9f7a-459f-aef5-aa63afb4a512 | hfcloudinit-vnf1-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.130 | ubuntu20.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 8b4d720d-8801-4aa5-9ffd-efde5d52dfc3 | 2024-04-03T01:54:22 | BUILDING | INSTANTIATING (b9383f8d-11a9-4790-8101-21308354a32b) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | 8b4d720d-8801-4aa5-9ffd-efde5d52dfc3 | 2024-04-03T01:54:22 | BUILDING | INSTANTIATING (b9383f8d-11a9-4790-8101-21308354a32b) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-------------------------+ | d92f9647-a5ed-4242-b6e1-9f01adb2e696 | basic_24-affinity-basic-1-affinity_basic-VM-2-0 | ACTIVE | osm-ext=172.21.248.14 | ubuntu20.04 | simple_requires-1-1-flv | | 3162b1ff-f66a-4378-8efd-8ea54bcead32 | basic_24-affinity-basic-1-affinity_basic-VM-1-0 | ACTIVE | osm-ext=172.21.248.207 | ubuntu20.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 8b4d720d-8801-4aa5-9ffd-efde5d52dfc3 | 2024-04-03T01:54:22 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-------------------------+ | d92f9647-a5ed-4242-b6e1-9f01adb2e696 | basic_24-affinity-basic-1-affinity_basic-VM-2-0 | ACTIVE | osm-ext=172.21.248.14 | ubuntu20.04 | simple_requires-1-1-flv | | 3162b1ff-f66a-4378-8efd-8ea54bcead32 | basic_24-affinity-basic-1-affinity_basic-VM-1-0 | ACTIVE | osm-ext=172.21.248.207 | ubuntu20.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 8b4d720d-8801-4aa5-9ffd-efde5d52dfc3 | 2024-04-03T01:54:22 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} BROKEN Fails if ``container`` contains ``item`` one or more times. ${ns_id} ${id} = 8b4d720d-8801-4aa5-9ffd-efde5d52dfc3 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 8b4d720d-8801-4aa5-9ffd-efde5d52dfc3 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 8b4d720d-8801-4aa5-9ffd-efde5d52dfc3 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = d9f91c7e-57df-4d7f-8b34-4d158c7b68c8 ${stdout} Logs the given message with the given level. d9f91c7e-57df-4d7f-8b34-4d158c7b68c8 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${vnf_id} = d9f91c7e-57df-4d7f-8b34-4d158c7b68c8 @{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 d9f91c7e-57df-4d7f-8b34-4d158c7b68c8 --literal | yq '.vdur[].id' 2>&1'. ${rc} = 0 ${stdout} = "863272ec-411e-4565-a2e3-77edef14491d" "761a9c5a-cf90-4b2e-9133-856a2837af03" ${stdout} Logs the given message with the given level. "863272ec-411e-4565-a2e3-77edef14491d" "761a9c5a-cf90-4b2e-9133-856a2837af03" ${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} = [ "863272ec-411e-4565-a2e3-77edef14491d" | "761a9c5a-cf90-4b2e-9133-856a2837af03" ] @{vdur_ids} @{vdur_id_list} = [ "863272ec-411e-4565-a2e3-77edef14491d" | "761a9c5a-cf90-4b2e-9133-856a2837af03" ] ${vdur_id} @{vdur_id_list} "863272ec-411e-4565-a2e3-77edef14491d" ${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 d9f91c7e-57df-4d7f-8b34-4d158c7b68c8 --literal | yq '.vdur[] | select(.id == "'"863272ec-411e-4565-a2e3-77edef14491d"'")' | 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 d9f91c7e-57df-4d7f-8b34-4d158c7b68c8 --literal | yq '.vdur[] | select(.id == "'"863272ec-411e-4565-a2e3-77edef14491d"'")' | yq -r '."vim-id"' 2>&1'. ${rc} = 0 ${vm_vim_id} = 3162b1ff-f66a-4378-8efd-8ea54bcead32 ${vm_vim_id} Logs the given message with the given level. 3162b1ff-f66a-4378-8efd-8ea54bcead32 ${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} = 3162b1ff-f66a-4378-8efd-8ea54bcead32 ${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} = ['d92f9647-a5ed-4242-b6e1-9f01adb2e696', '3162b1ff-f66a-4378-8efd-8ea54bcead32'] ${stdout} Logs the given message with the given level. ['d92f9647-a5ed-4242-b6e1-9f01adb2e696', '3162b1ff-f66a-4378-8efd-8ea54bcead32'] ${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. "761a9c5a-cf90-4b2e-9133-856a2837af03" ${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 d9f91c7e-57df-4d7f-8b34-4d158c7b68c8 --literal | yq '.vdur[] | select(.id == "'"761a9c5a-cf90-4b2e-9133-856a2837af03"'")' | 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 d9f91c7e-57df-4d7f-8b34-4d158c7b68c8 --literal | yq '.vdur[] | select(.id == "'"761a9c5a-cf90-4b2e-9133-856a2837af03"'")' | yq -r '."vim-id"' 2>&1'. ${rc} = 0 ${vm_vim_id} = d92f9647-a5ed-4242-b6e1-9f01adb2e696 ${vm_vim_id} Logs the given message with the given level. d92f9647-a5ed-4242-b6e1-9f01adb2e696 ${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} = d92f9647-a5ed-4242-b6e1-9f01adb2e696 ${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} = ['d92f9647-a5ed-4242-b6e1-9f01adb2e696', '3162b1ff-f66a-4378-8efd-8ea54bcead32'] ${stdout} Logs the given message with the given level. ['d92f9647-a5ed-4242-b6e1-9f01adb2e696', '3162b1ff-f66a-4378-8efd-8ea54bcead32'] ${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 | +--------------------------------------+-------------------------------------------------+--------+------------------------+-------------+-------------------------+ | 2317fea5-830a-476a-afa5-5f5af5b8aed2 | hfmultivdu-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | d99aae84-5f2e-454a-b789-b06d95df3dec | hfmultivdu-vnf1-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | d92f9647-a5ed-4242-b6e1-9f01adb2e696 | basic_24-affinity-basic-1-affinity_basic-VM-2-0 | ACTIVE | osm-ext=172.21.248.14 | ubuntu20.04 | simple_requires-1-1-flv | | 3162b1ff-f66a-4378-8efd-8ea54bcead32 | basic_24-affinity-basic-1-affinity_basic-VM-1-0 | ACTIVE | osm-ext=172.21.248.207 | ubuntu20.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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 | +--------------------------------------+--------------------------+--------+----------------------------------------------------------------------+-------------+-------------------------+ | 7fabd23f-19af-45f2-a739-1b16fbc706cd | hfmultivdu-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 51b01bfe-26e8-46b9-a7cd-205ed4bfa9f7 | hfmultivdu-vnf2-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.18.17; osm-ext=172.21.249.209 | ubuntu20.04 | simple_requires-1-1-flv | | 2317fea5-830a-476a-afa5-5f5af5b8aed2 | hfmultivdu-vnf1-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.99.88; hfmultivdu-internal=192.168.179.78 | ubuntu20.04 | simple_requires-1-1-flv | | d99aae84-5f2e-454a-b789-b06d95df3dec | hfmultivdu-vnf1-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.179.149; osm-ext=172.21.249.206 | ubuntu20.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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 9efa3196-0523-41c6-bdaa-a4291969b3bc ${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} = 9efa3196-0523-41c6-bdaa-a4291969b3bc ${id} ${id} = 9efa3196-0523-41c6-bdaa-a4291969b3bc ${VNFD_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${VNFD_ID} = 9efa3196-0523-41c6-bdaa-a4291969b3bc 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 12ae31e5-513c-4ea6-b6aa-816e6e63533e ${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} = 12ae31e5-513c-4ea6-b6aa-816e6e63533e ${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} = d3c67b36-b1d7-4e20-b7f8-ef17ab82c866 ${stdout} Logs the given message with the given level. d3c67b36-b1d7-4e20-b7f8-ef17ab82c866 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = d3c67b36-b1d7-4e20-b7f8-ef17ab82c866 ${ns_id} Logs the given message with the given level. d3c67b36-b1d7-4e20-b7f8-ef17ab82c866 ${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 | +--------------------------------------+--------------------------+--------+-----------------------------------------------------------------------+-------------+-------------------------+ | 7fabd23f-19af-45f2-a739-1b16fbc706cd | hfmultivdu-vnf2-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.99.177; hfmultivdu-internal=192.168.18.113 | ubuntu20.04 | simple_requires-1-1-flv | | 51b01bfe-26e8-46b9-a7cd-205ed4bfa9f7 | hfmultivdu-vnf2-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.18.17; osm-ext=172.21.249.209 | ubuntu20.04 | simple_requires-1-1-flv | | 2317fea5-830a-476a-afa5-5f5af5b8aed2 | hfmultivdu-vnf1-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.99.88; hfmultivdu-internal=192.168.179.78 | ubuntu20.04 | simple_requires-1-1-flv | | d99aae84-5f2e-454a-b789-b06d95df3dec | hfmultivdu-vnf1-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.179.149; osm-ext=172.21.249.206 | ubuntu20.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | d3c67b36-b1d7-4e20-b7f8-ef17ab82c866 | 2024-04-03T01:56:23 | BUILDING | INSTANTIATING (b8454d7b-35c4-4691-a656-412af3d097d7) | N/A | +------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | d3c67b36-b1d7-4e20-b7f8-ef17ab82c866 | 2024-04-03T01:56:23 | BUILDING | INSTANTIATING (b8454d7b-35c4-4691-a656-412af3d097d7) | N/A | +------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+----------------------------------+--------+-----------------------------------------------------------------------+-------------+-------------------------+ | cc8f7ea8-8fda-4750-a182-b3b411ecddc8 | basic_27_helm_ee-simple-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.9 | ubuntu18.04 | mgmtVM-simple-1-flv-62 | | 7fabd23f-19af-45f2-a739-1b16fbc706cd | hfmultivdu-vnf2-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.99.177; hfmultivdu-internal=192.168.18.113 | ubuntu20.04 | simple_requires-1-1-flv | | 51b01bfe-26e8-46b9-a7cd-205ed4bfa9f7 | hfmultivdu-vnf2-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.18.17; osm-ext=172.21.249.209 | ubuntu20.04 | simple_requires-1-1-flv | | 2317fea5-830a-476a-afa5-5f5af5b8aed2 | hfmultivdu-vnf1-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.99.88; hfmultivdu-internal=192.168.179.78 | ubuntu20.04 | simple_requires-1-1-flv | | d99aae84-5f2e-454a-b789-b06d95df3dec | hfmultivdu-vnf1-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.179.149; osm-ext=172.21.249.206 | ubuntu20.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | d3c67b36-b1d7-4e20-b7f8-ef17ab82c866 | 2024-04-03T01:56:23 | BUILDING | INSTANTIATING (b8454d7b-35c4-4691-a656-412af3d097d7) | N/A | +------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | d3c67b36-b1d7-4e20-b7f8-ef17ab82c866 | 2024-04-03T01:56:23 | BUILDING | INSTANTIATING (b8454d7b-35c4-4691-a656-412af3d097d7) | N/A | +------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+----------------------------------+--------+-----------------------------------------------------------------------+-------------+-------------------------+ | cc8f7ea8-8fda-4750-a182-b3b411ecddc8 | basic_27_helm_ee-simple-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.9 | ubuntu18.04 | mgmtVM-simple-1-flv-62 | | 7fabd23f-19af-45f2-a739-1b16fbc706cd | hfmultivdu-vnf2-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.99.177; hfmultivdu-internal=192.168.18.113 | ubuntu20.04 | simple_requires-1-1-flv | | 51b01bfe-26e8-46b9-a7cd-205ed4bfa9f7 | hfmultivdu-vnf2-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.18.17; osm-ext=172.21.249.209 | ubuntu20.04 | simple_requires-1-1-flv | | 2317fea5-830a-476a-afa5-5f5af5b8aed2 | hfmultivdu-vnf1-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.99.88; hfmultivdu-internal=192.168.179.78 | ubuntu20.04 | simple_requires-1-1-flv | | d99aae84-5f2e-454a-b789-b06d95df3dec | hfmultivdu-vnf1-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.179.149; osm-ext=172.21.249.206 | ubuntu20.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | d3c67b36-b1d7-4e20-b7f8-ef17ab82c866 | 2024-04-03T01:56:23 | 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 | +--------------------------------------+----------------------------------+--------+-----------------------------------------------------------------------+-------------+-------------------------+ | cc8f7ea8-8fda-4750-a182-b3b411ecddc8 | basic_27_helm_ee-simple-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.9 | ubuntu18.04 | mgmtVM-simple-1-flv-62 | | 7fabd23f-19af-45f2-a739-1b16fbc706cd | hfmultivdu-vnf2-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.99.177; hfmultivdu-internal=192.168.18.113 | ubuntu20.04 | simple_requires-1-1-flv | | 51b01bfe-26e8-46b9-a7cd-205ed4bfa9f7 | hfmultivdu-vnf2-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.18.17; osm-ext=172.21.249.209 | ubuntu20.04 | simple_requires-1-1-flv | | 2317fea5-830a-476a-afa5-5f5af5b8aed2 | hfmultivdu-vnf1-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.99.88; hfmultivdu-internal=192.168.179.78 | ubuntu20.04 | simple_requires-1-1-flv | | d99aae84-5f2e-454a-b789-b06d95df3dec | hfmultivdu-vnf1-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.179.149; osm-ext=172.21.249.206 | ubuntu20.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | d3c67b36-b1d7-4e20-b7f8-ef17ab82c866 | 2024-04-03T01:56:23 | 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} = d3c67b36-b1d7-4e20-b7f8-ef17ab82c866 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = d3c67b36-b1d7-4e20-b7f8-ef17ab82c866 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 d3c67b36-b1d7-4e20-b7f8-ef17ab82c866 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = 9e03b6a3-d706-4da2-bc67-851d1f8a14d1 ${stdout} Logs the given message with the given level. 9e03b6a3-d706-4da2-bc67-851d1f8a14d1 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 9e03b6a3-d706-4da2-bc67-851d1f8a14d1 ${id} Logs the given message with the given level. 9e03b6a3-d706-4da2-bc67-851d1f8a14d1 ${VNF_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${VNF_ID} = 9e03b6a3-d706-4da2-bc67-851d1f8a14d1 ${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: "9e03b6a3-d706-4da2-bc67-851d1f8a14d1", vnfdId: "9efa3196-0523-41c6-bdaa-a4291969b3bc"}]}' 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 d3c67b36-b1d7-4e20-b7f8-ef17ab82c866 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.9 ${stdout} Logs the given message with the given level. 172.21.249.9 ${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.9 ${ip_addr} Logs the given message with the given level. 172.21.249.9 ${VNF_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. ${VNF_IP_ADDR} = 172.21.249.9 Get VNF mgmt IP address from the NS. basic_27 cluster_ee_config daily regression ${VNF_IP_ADDR} msg=IP address of the management VNF '${VNF_MEMBER_INDEX}' is not available Fails unless the given variable exists within the current scope. 30s Waiting ssh daemon to be up Pauses the test executed for the given time. Slept 30 seconds Waiting ssh daemon to be up ${VNF_IP_ADDR} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} Test the SSH connection to the host with the user and credentials passed as arguments. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.249.9: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 Wed Apr 3 01:58:08 UTC 2024 System load: 0.16 Processes: 87 Usage of /: 5.9% of 19.21GB Users logged in: 0 Memory usage: 12% IP address for ens3: 172.21.249.9 Swap usage: 0% 0 updates can be applied immediately. New release '20.04.6 LTS' available. Run 'do-release-upgrade' to upgrade to it. To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@basic-27-helm-ee-simple-mgmtvm-0:~$ hostname Executes ``command`` on the remote machine and returns its outputs. Executing command 'hostname'. Command exited with return code 0. Closes all open connections. Test SSH access to the VNF mgmt IP address. basic_27 cluster_ee_config daily regression ${VNF_IP_ADDR} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} ${DAY_1_FILE_NAME} Check via SSH if a file exists in in the remote host, using the user and credentials passed as arguments. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.249.9: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 Wed Apr 3 01:58:10 UTC 2024 System load: 0.16 Processes: 87 Usage of /: 5.9% of 19.21GB Users logged in: 0 Memory usage: 12% IP address for ens3: 172.21.249.9 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: Wed Apr 3 01:58:09 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} = f13a2bf4-c53c-42fb-9a0c-f7d0f3742751 ${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 f13a2bf4-c53c-42fb-9a0c-f7d0f3742751 --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 f13a2bf4-c53c-42fb-9a0c-f7d0f3742751 --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} = f13a2bf4-c53c-42fb-9a0c-f7d0f3742751 ${ns_op_id_1} Logs the given message with the given level. f13a2bf4-c53c-42fb-9a0c-f7d0f3742751 Performs one Day 2 operation on the VNF that creates a new file. basic_27 cluster_ee_config daily regression ${VNF_IP_ADDR} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} ${DAY_2_FILE_NAME} Check via SSH if a file exists in in the remote host, using the user and credentials passed as arguments. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.249.9: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 Wed Apr 3 01:58:16 UTC 2024 System load: 0.15 Processes: 87 Usage of /: 5.9% of 19.21GB Users logged in: 0 Memory usage: 12% IP address for ens3: 172.21.249.9 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: Wed Apr 3 01:58:11 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 d3c67b36-b1d7-4e20-b7f8-ef17ab82c866 --updatetype CHANGE_VNFPKG --config '{changeVnfPackageData: [{vnfInstanceId: "9e03b6a3-d706-4da2-bc67-851d1f8a14d1", vnfdId: "9efa3196-0523-41c6-bdaa-a4291969b3bc"}]}' --timeout 500 --wait 2>&1'. ${rc} = 0 ${stdout} = detailed-status: In progress detailed-status: Done 5a2122bf-edcc-459a-b7c4-ea0be84d3f60 ${stdout} Logs the given message with the given level. detailed-status: In progress detailed-status: Done 5a2122bf-edcc-459a-b7c4-ea0be84d3f60 ${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} = 0a422fb0-07b7-49d6-a69b-c67a744fb412 ${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 0a422fb0-07b7-49d6-a69b-c67a744fb412 --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 0a422fb0-07b7-49d6-a69b-c67a744fb412 --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} = 0a422fb0-07b7-49d6-a69b-c67a744fb412 ${ns_op_id_2} Logs the given message with the given level. 0a422fb0-07b7-49d6-a69b-c67a744fb412 Performs one Day 2 operation on the updated VNF that creates a new folder. basic_27 cluster_ee_config daily regression ${VNF_IP_ADDR} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} ${DAY_2_FOLDER_NAME} Check via SSH if a folder exists in in the remote host, using the user and credentials passed as arguments. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.249.9: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 Wed Apr 3 01:59:35 UTC 2024 System load: 0.04 Processes: 89 Usage of /: 5.9% of 19.21GB Users logged in: 0 Memory usage: 12% IP address for ens3: 172.21.249.9 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: Wed Apr 3 01:58:16 2024 from 172.21.249.4 To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@basic-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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | 46c3f9af-22de-46ab-995d-27a777caa1ec | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.58.198; osm-ext=172.21.248.26 | ubuntu18.04 | simple_requires-1-1-flv | | 48ded8ff-9d79-45fa-921f-a99492ebc68d | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.58.228; osm-ext=172.21.248.134 | ubuntu18.04 | simple_requires-1-1-flv | | b067bdfa-b2af-4933-b7db-7c3c10b4f11f | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.159 | ubuntu20.04 | several_volumes-VM-flv | | cc8f7ea8-8fda-4750-a182-b3b411ecddc8 | basic_27_helm_ee-simple-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.9 | ubuntu18.04 | mgmtVM-simple-1-flv-62 | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | 46c3f9af-22de-46ab-995d-27a777caa1ec | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.58.198; osm-ext=172.21.248.26 | ubuntu18.04 | simple_requires-1-1-flv | | 48ded8ff-9d79-45fa-921f-a99492ebc68d | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.58.228; osm-ext=172.21.248.134 | ubuntu18.04 | simple_requires-1-1-flv | | b067bdfa-b2af-4933-b7db-7c3c10b4f11f | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.159 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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 2bb6fff2-0e3b-4faf-81bb-5643915c7205 ${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} = 2bb6fff2-0e3b-4faf-81bb-5643915c7205 ${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 3038617d-6b4c-4e63-b76e-1bbf4a9fa43a ${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} = 3038617d-6b4c-4e63-b76e-1bbf4a9fa43a ${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} = 66f26a5b-7157-40fb-aac0-e7d7cb30ff6f ${stdout} Logs the given message with the given level. 66f26a5b-7157-40fb-aac0-e7d7cb30ff6f ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 66f26a5b-7157-40fb-aac0-e7d7cb30ff6f ${ns_id} Logs the given message with the given level. 66f26a5b-7157-40fb-aac0-e7d7cb30ff6f ${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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | 46c3f9af-22de-46ab-995d-27a777caa1ec | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.58.198; osm-ext=172.21.248.26 | ubuntu18.04 | simple_requires-1-1-flv | | 48ded8ff-9d79-45fa-921f-a99492ebc68d | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.58.228; osm-ext=172.21.248.134 | ubuntu18.04 | simple_requires-1-1-flv | | b067bdfa-b2af-4933-b7db-7c3c10b4f11f | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.159 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 66f26a5b-7157-40fb-aac0-e7d7cb30ff6f | 2024-04-03T02:00:11 | BUILDING | INSTANTIATING (8a8a9de4-bce1-4f5c-8923-9224a6f925a6) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | 66f26a5b-7157-40fb-aac0-e7d7cb30ff6f | 2024-04-03T02:00:11 | BUILDING | INSTANTIATING (8a8a9de4-bce1-4f5c-8923-9224a6f925a6) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+----------------------------------------------------+--------+--------------------------------------------------------+-------------+-----------------------------------------------------+ | 60a86ab8-a3f0-4355-a413-f32e6713d8a3 | basic_28-vnf-persistent-v-keep-persistent-vol-VM-0 | BUILD | | ubuntu20.04 | keep-persistent-vol-VM-vnf-persistent-volumes-1-flv | | 46c3f9af-22de-46ab-995d-27a777caa1ec | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.58.198; osm-ext=172.21.248.26 | ubuntu18.04 | simple_requires-1-1-flv | | 48ded8ff-9d79-45fa-921f-a99492ebc68d | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.58.228; osm-ext=172.21.248.134 | ubuntu18.04 | simple_requires-1-1-flv | | b067bdfa-b2af-4933-b7db-7c3c10b4f11f | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.159 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 66f26a5b-7157-40fb-aac0-e7d7cb30ff6f | 2024-04-03T02:00:11 | BUILDING | INSTANTIATING (8a8a9de4-bce1-4f5c-8923-9224a6f925a6) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | 66f26a5b-7157-40fb-aac0-e7d7cb30ff6f | 2024-04-03T02:00:11 | BUILDING | INSTANTIATING (8a8a9de4-bce1-4f5c-8923-9224a6f925a6) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+----------------------------------------------------+--------+--------------------------------------------------------+-------------+-----------------------------------------------------+ | 60a86ab8-a3f0-4355-a413-f32e6713d8a3 | basic_28-vnf-persistent-v-keep-persistent-vol-VM-0 | ACTIVE | osm-ext=172.21.248.221 | ubuntu20.04 | keep-persistent-vol-VM-vnf-persistent-volumes-1-flv | | 46c3f9af-22de-46ab-995d-27a777caa1ec | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.58.198; osm-ext=172.21.248.26 | ubuntu18.04 | simple_requires-1-1-flv | | 48ded8ff-9d79-45fa-921f-a99492ebc68d | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.58.228; osm-ext=172.21.248.134 | ubuntu18.04 | simple_requires-1-1-flv | | b067bdfa-b2af-4933-b7db-7c3c10b4f11f | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.159 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 66f26a5b-7157-40fb-aac0-e7d7cb30ff6f | 2024-04-03T02:00: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 | +--------------------------------------+----------------------------------------------------+--------+--------------------------------------------------------+-------------+-----------------------------------------------------+ | 60a86ab8-a3f0-4355-a413-f32e6713d8a3 | basic_28-vnf-persistent-v-keep-persistent-vol-VM-0 | ACTIVE | osm-ext=172.21.248.221 | ubuntu20.04 | keep-persistent-vol-VM-vnf-persistent-volumes-1-flv | | 46c3f9af-22de-46ab-995d-27a777caa1ec | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.58.198; osm-ext=172.21.248.26 | ubuntu18.04 | simple_requires-1-1-flv | | 48ded8ff-9d79-45fa-921f-a99492ebc68d | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.58.228; osm-ext=172.21.248.134 | ubuntu18.04 | simple_requires-1-1-flv | | b067bdfa-b2af-4933-b7db-7c3c10b4f11f | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.159 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 66f26a5b-7157-40fb-aac0-e7d7cb30ff6f | 2024-04-03T02:00: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} = 66f26a5b-7157-40fb-aac0-e7d7cb30ff6f ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 66f26a5b-7157-40fb-aac0-e7d7cb30ff6f 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 66f26a5b-7157-40fb-aac0-e7d7cb30ff6f | grep 66f26a5b-7157-40fb-aac0-e7d7cb30ff6f | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 8a39a3c2-9f7c-4692-9fb1-f1303cef6bc0 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 8a39a3c2-9f7c-4692-9fb1-f1303cef6bc0 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 8a39a3c2-9f7c-4692-9fb1-f1303cef6bc0 @{vnf_list} ${vnfs_list} = ['8a39a3c2-9f7c-4692-9fb1-f1303cef6bc0'] ${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 8a39a3c2-9f7c-4692-9fb1-f1303cef6bc0 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 60a86ab8-a3f0-4355-a413-f32e6713d8a3 ${stdout} Logs the given message with the given level. 60a86ab8-a3f0-4355-a413-f32e6713d8a3 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${vim_id} = 60a86ab8-a3f0-4355-a413-f32e6713d8a3 ${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 60a86ab8-a3f0-4355-a413-f32e6713d8a3 -c volumes_attached -f value 2>&1'. ${rc} = 0 ${stdout} = [{'device': None, 'id': '53482417-c6db-4cdf-8c84-ac310006c48d', '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': '53482417-c6db-4cdf-8c84-ac310006c48d', 'volume_id': None, 'attachment_id': None, 'bdm_id': None, 'tag': None, 'delete_on_termination': False, 'name': None, 'location': None}, {'device': None, 'id': '5606013c-a121-4208-8556-54a60de43301', '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': '53482417-c6db-4cdf-8c84-ac310006c48d', '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': '53482417-c6db-4cdf-8c84-ac310006c48d', 'volume_id': None, 'attachment_id': None, 'bdm_id': None, 'tag': None, 'delete_on_termination': False, 'name': None, 'location': None}, {'device': None, 'id': '5606013c-a121-4208-8556-54a60de43301', '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} = ['53482417-c6db-4cdf-8c84-ac310006c48d', '5606013c-a121-4208-8556-54a60de43301'] ${stdout} Logs the given message with the given level. ['53482417-c6db-4cdf-8c84-ac310006c48d', '5606013c-a121-4208-8556-54a60de43301'] ${stdout} ${VOLUME_MATCH} = ['53482417-c6db-4cdf-8c84-ac310006c48d', '5606013c-a121-4208-8556-54a60de43301'] ${VOLUME_MATCH} Makes a variable available everywhere within the scope of the current suite. ${VOLUME_MATCH} = ['53482417-c6db-4cdf-8c84-ac310006c48d', '5606013c-a121-4208-8556-54a60de43301'] ${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 53482417-c6db-4cdf-8c84-ac310006c48d | 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} = 53482417-c6db-4cdf-8c84-ac310006c48d ${ORDINARY_VOL_ID} ${volume_match}[1] Makes a variable available everywhere within the scope of the current suite. ${ORDINARY_VOL_ID} = 5606013c-a121-4208-8556-54a60de43301 ${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 5606013c-a121-4208-8556-54a60de43301 | grep bootable | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = false ${stdout} Logs the given message with the given level. false ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${bootable} = false ${ROOT_VOL_ID} ${volume_match}[${index}] Makes a variable available everywhere within the scope of the current suite. ${ORDINARY_VOL_ID} ${volume_match}[1] Makes a variable available everywhere within the scope of the current suite. ${ORDINARY_VOL_ID} ${volume_match}[0] Makes a variable available everywhere within the scope of the current suite. Get the identifiers of the persistent volumes attached to VM in the NS and store in suite variables ROOT_VOL_ID and ORDINARY_VOL_ID. basic_28 cluster_main daily regression ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete basic_28 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+----------------------------------------------------+--------+--------------------------------------------------------+-------------+---------------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------------------------+--------+--------------------------------------------------------+-------------+-----------------------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------------------------+--------+--------------------------------------------------------+-------------+-----------------------------------------------------+ | 60a86ab8-a3f0-4355-a413-f32e6713d8a3 | basic_28-vnf-persistent-v-keep-persistent-vol-VM-0 | ACTIVE | osm-ext=172.21.248.221 | ubuntu20.04 | keep-persistent-vol-VM-vnf-persistent-volumes-1-flv | | 46c3f9af-22de-46ab-995d-27a777caa1ec | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.58.198; osm-ext=172.21.248.26 | ubuntu18.04 | simple_requires-1-1-flv | | 48ded8ff-9d79-45fa-921f-a99492ebc68d | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.58.228; osm-ext=172.21.248.134 | ubuntu18.04 | simple_requires-1-1-flv | | b067bdfa-b2af-4933-b7db-7c3c10b4f11f | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.159 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 basic_28 2>&1'. ${rc} = 0 ${stdout} = basic_28 ${rc},${stdout} Logs the given message with the given level. 0,basic_28 ${stdout} ${ns} Fails if objects are equal after converting them to strings. basic_28 == basic_28 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | 46c3f9af-22de-46ab-995d-27a777caa1ec | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.58.198; osm-ext=172.21.248.26 | ubuntu18.04 | simple_requires-1-1-flv | | 48ded8ff-9d79-45fa-921f-a99492ebc68d | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.58.228; osm-ext=172.21.248.134 | ubuntu18.04 | simple_requires-1-1-flv | | b067bdfa-b2af-4933-b7db-7c3c10b4f11f | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.159 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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 53482417-c6db-4cdf-8c84-ac310006c48d | 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 5606013c-a121-4208-8556-54a60de43301 | 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: 53482417-c6db-... 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: 5348... ${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: 53482417-c6db-4cdf-8c84-ac310006c48d}, {"name": persistent-volume, vim-volume-id: 5606013c-a121-4208-8556-54a60de43301}] } ] } ] }' --ssh_keys /root/.ssh/id_rsa.pub 2>&1'. ${rc} = 0 ${stdout} = 782e273f-f38f-4a66-88e1-b0bd40cf4bbe ${stdout} Logs the given message with the given level. 782e273f-f38f-4a66-88e1-b0bd40cf4bbe ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 782e273f-f38f-4a66-88e1-b0bd40cf4bbe ${ns_id} Logs the given message with the given level. 782e273f-f38f-4a66-88e1-b0bd40cf4bbe ${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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | 46c3f9af-22de-46ab-995d-27a777caa1ec | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.58.198; osm-ext=172.21.248.26 | ubuntu18.04 | simple_requires-1-1-flv | | 48ded8ff-9d79-45fa-921f-a99492ebc68d | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.58.228; osm-ext=172.21.248.134 | ubuntu18.04 | simple_requires-1-1-flv | | b067bdfa-b2af-4933-b7db-7c3c10b4f11f | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.159 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 782e273f-f38f-4a66-88e1-b0bd40cf4bbe | 2024-04-03T02:01:57 | BUILDING | INSTANTIATING (4f86506f-9039-4eda-a549-1107de267293) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | 782e273f-f38f-4a66-88e1-b0bd40cf4bbe | 2024-04-03T02:01:57 | BUILDING | INSTANTIATING (4f86506f-9039-4eda-a549-1107de267293) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+----------------------------------------------------+--------+--------------------------------------------------------+-------------+-----------------------------------------------------+ | e65b4852-1284-461b-87eb-5fbf6761a0e5 | basic_28-vnf-persistent-v-keep-persistent-vol-VM-0 | ACTIVE | osm-ext=172.21.249.126 | ubuntu20.04 | keep-persistent-vol-VM-vnf-persistent-volumes-1-flv | | 46c3f9af-22de-46ab-995d-27a777caa1ec | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.58.198; osm-ext=172.21.248.26 | ubuntu18.04 | simple_requires-1-1-flv | | 48ded8ff-9d79-45fa-921f-a99492ebc68d | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.58.228; osm-ext=172.21.248.134 | ubuntu18.04 | simple_requires-1-1-flv | | b067bdfa-b2af-4933-b7db-7c3c10b4f11f | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.159 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 782e273f-f38f-4a66-88e1-b0bd40cf4bbe | 2024-04-03T02:01:57 | BUILDING | INSTANTIATING (4f86506f-9039-4eda-a549-1107de267293) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | 782e273f-f38f-4a66-88e1-b0bd40cf4bbe | 2024-04-03T02:01:57 | BUILDING | INSTANTIATING (4f86506f-9039-4eda-a549-1107de267293) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+----------------------------------------------------+--------+--------------------------------------------------------+-------------+-----------------------------------------------------+ | e65b4852-1284-461b-87eb-5fbf6761a0e5 | basic_28-vnf-persistent-v-keep-persistent-vol-VM-0 | ACTIVE | osm-ext=172.21.249.126 | ubuntu20.04 | keep-persistent-vol-VM-vnf-persistent-volumes-1-flv | | 46c3f9af-22de-46ab-995d-27a777caa1ec | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.58.198; osm-ext=172.21.248.26 | ubuntu18.04 | simple_requires-1-1-flv | | 48ded8ff-9d79-45fa-921f-a99492ebc68d | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.58.228; osm-ext=172.21.248.134 | ubuntu18.04 | simple_requires-1-1-flv | | b067bdfa-b2af-4933-b7db-7c3c10b4f11f | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.159 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 782e273f-f38f-4a66-88e1-b0bd40cf4bbe | 2024-04-03T02:01: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 | +--------------------------------------+----------------------------------------------------+--------+--------------------------------------------------------+-------------+-----------------------------------------------------+ | e65b4852-1284-461b-87eb-5fbf6761a0e5 | basic_28-vnf-persistent-v-keep-persistent-vol-VM-0 | ACTIVE | osm-ext=172.21.249.126 | ubuntu20.04 | keep-persistent-vol-VM-vnf-persistent-volumes-1-flv | | 46c3f9af-22de-46ab-995d-27a777caa1ec | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.58.198; osm-ext=172.21.248.26 | ubuntu18.04 | simple_requires-1-1-flv | | 48ded8ff-9d79-45fa-921f-a99492ebc68d | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.58.228; osm-ext=172.21.248.134 | ubuntu18.04 | simple_requires-1-1-flv | | b067bdfa-b2af-4933-b7db-7c3c10b4f11f | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.159 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 782e273f-f38f-4a66-88e1-b0bd40cf4bbe | 2024-04-03T02:01: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} = 782e273f-f38f-4a66-88e1-b0bd40cf4bbe ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 782e273f-f38f-4a66-88e1-b0bd40cf4bbe 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} = 53482417-c6db-4cdf-8c84-ac310006c48d ${PREV_ORDINARY_VOL_ID} ${ORDINARY_VOL_ID} Makes a variable available everywhere within the scope of the current suite. ${PREV_ORDINARY_VOL_ID} = 5606013c-a121-4208-8556-54a60de43301 ${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 782e273f-f38f-4a66-88e1-b0bd40cf4bbe | grep 782e273f-f38f-4a66-88e1-b0bd40cf4bbe | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 6e9a8d18-546f-4ccf-82b6-b04fd7435111 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 6e9a8d18-546f-4ccf-82b6-b04fd7435111 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 6e9a8d18-546f-4ccf-82b6-b04fd7435111 @{vnf_list} ${vnfs_list} = ['6e9a8d18-546f-4ccf-82b6-b04fd7435111'] ${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 6e9a8d18-546f-4ccf-82b6-b04fd7435111 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = e65b4852-1284-461b-87eb-5fbf6761a0e5 ${stdout} Logs the given message with the given level. e65b4852-1284-461b-87eb-5fbf6761a0e5 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${vim_id} = e65b4852-1284-461b-87eb-5fbf6761a0e5 ${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 e65b4852-1284-461b-87eb-5fbf6761a0e5 -c volumes_attached -f value 2>&1'. ${rc} = 0 ${stdout} = [{'device': None, 'id': '53482417-c6db-4cdf-8c84-ac310006c48d', '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': '53482417-c6db-4cdf-8c84-ac310006c48d', 'volume_id': None, 'attachment_id': None, 'bdm_id': None, 'tag': None, 'delete_on_termination': False, 'name': None, 'location': None}, {'device': None, 'id': '5606013c-a121-4208-8556-54a60de43301', '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': '53482417-c6db-4cdf-8c84-ac310006c48d', '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': '53482417-c6db-4cdf-8c84-ac310006c48d', 'volume_id': None, 'attachment_id': None, 'bdm_id': None, 'tag': None, 'delete_on_termination': False, 'name': None, 'location': None}, {'device': None, 'id': '5606013c-a121-4208-8556-54a60de43301', '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} = ['53482417-c6db-4cdf-8c84-ac310006c48d', '5606013c-a121-4208-8556-54a60de43301'] ${stdout} Logs the given message with the given level. ['53482417-c6db-4cdf-8c84-ac310006c48d', '5606013c-a121-4208-8556-54a60de43301'] ${stdout} ${volume_match} = ['53482417-c6db-4cdf-8c84-ac310006c48d', '5606013c-a121-4208-8556-54a60de43301'] ${VOLUME_MATCH} Makes a variable available everywhere within the scope of the current suite. ${VOLUME_MATCH} = ['53482417-c6db-4cdf-8c84-ac310006c48d', '5606013c-a121-4208-8556-54a60de43301'] ${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 53482417-c6db-4cdf-8c84-ac310006c48d | 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} = 53482417-c6db-4cdf-8c84-ac310006c48d ${ORDINARY_VOL_ID} ${volume_match}[1] Makes a variable available everywhere within the scope of the current suite. ${ORDINARY_VOL_ID} = 5606013c-a121-4208-8556-54a60de43301 ${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 5606013c-a121-4208-8556-54a60de43301 | grep bootable | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = false ${stdout} Logs the given message with the given level. false ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${bootable} = false ${ROOT_VOL_ID} ${volume_match}[${index}] Makes a variable available everywhere within the scope of the current suite. ${ORDINARY_VOL_ID} ${volume_match}[1] Makes a variable available everywhere within the scope of the current suite. ${ORDINARY_VOL_ID} ${volume_match}[0] Makes a variable available everywhere within the scope of the current suite. ${ROOT_VOL_ID} ${PREV_ROOT_VOL_ID} msg=Existing root volume is not attached to server Fails if objects are unequal after converting them to strings. ${ORDINARY_VOL_ID} ${PREV_ORDINARY_VOL_ID} msg=Existing ordinary volume is not attached to server Fails if objects are unequal after converting them to strings. Get the identifiers of the persistent volumes attached to VM in the second NS instance and verify that they are the same of the first NS instance. basic_28 cluster_main daily regression ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete basic_28 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+----------------------------------------------------+--------+--------------------------------------------------------+-------------+---------------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------------------------+--------+--------------------------------------------------------+-------------+-----------------------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------------------------+--------+--------------------------------------------------------+-------------+-----------------------------------------------------+ | e65b4852-1284-461b-87eb-5fbf6761a0e5 | basic_28-vnf-persistent-v-keep-persistent-vol-VM-0 | ACTIVE | osm-ext=172.21.249.126 | ubuntu20.04 | keep-persistent-vol-VM-vnf-persistent-volumes-1-flv | | 46c3f9af-22de-46ab-995d-27a777caa1ec | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.58.198; osm-ext=172.21.248.26 | ubuntu18.04 | simple_requires-1-1-flv | | 48ded8ff-9d79-45fa-921f-a99492ebc68d | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.58.228; osm-ext=172.21.248.134 | ubuntu18.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 basic_28 2>&1'. ${rc} = 0 ${stdout} = basic_28 ${rc},${stdout} Logs the given message with the given level. 0,basic_28 ${stdout} ${ns} Fails if objects are equal after converting them to strings. basic_28 == basic_28 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | 191db488-5fd8-44b3-bd53-deaebf1b1073 | heal_01-several_volumes_-several_volumes-VM-0 | BUILD | | ubuntu20.04 | several_volumes-VM-flv | | 46c3f9af-22de-46ab-995d-27a777caa1ec | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.58.198; osm-ext=172.21.248.26 | ubuntu18.04 | simple_requires-1-1-flv | | 48ded8ff-9d79-45fa-921f-a99492ebc68d | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.58.228; osm-ext=172.21.248.134 | ubuntu18.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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 53482417-c6db-4cdf-8c84-ac310006c48d | 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 5606013c-a121-4208-8556-54a60de43301 | 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 53482417-c6db-4cdf-8c84-ac310006c48d 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 5606013c-a121-4208-8556-54a60de43301 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 1982c5db-c39e-4576-9219-c31e75d4048e ${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} = 1982c5db-c39e-4576-9219-c31e75d4048e ${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 10a649d7-fbf2-432d-be0e-71a247717867 ${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} = 10a649d7-fbf2-432d-be0e-71a247717867 ${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} = 370f0745-8f8d-4649-a993-992ad57c6de7 ${stdout} Logs the given message with the given level. 370f0745-8f8d-4649-a993-992ad57c6de7 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 370f0745-8f8d-4649-a993-992ad57c6de7 ${ns_id} Logs the given message with the given level. 370f0745-8f8d-4649-a993-992ad57c6de7 ${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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | 191db488-5fd8-44b3-bd53-deaebf1b1073 | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.159 | ubuntu20.04 | several_volumes-VM-flv | | 46c3f9af-22de-46ab-995d-27a777caa1ec | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.58.198; osm-ext=172.21.248.26 | ubuntu18.04 | simple_requires-1-1-flv | | 48ded8ff-9d79-45fa-921f-a99492ebc68d | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.58.228; osm-ext=172.21.248.134 | ubuntu18.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 370f0745-8f8d-4649-a993-992ad57c6de7 | 2024-04-03T02:03:58 | BUILDING | INSTANTIATING (13ad394d-7500-4c20-a024-b09c3f0fa004) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | 370f0745-8f8d-4649-a993-992ad57c6de7 | 2024-04-03T02:03:58 | BUILDING | INSTANTIATING (13ad394d-7500-4c20-a024-b09c3f0fa004) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | ffb10cf8-08aa-40df-90d1-7f08091ddf56 | basic_29-vnf-dataVM-0 | ACTIVE | basic_29-internal=2001:db8::1c0 | ubuntu20.04 | simple_requires-1-1-flv | | c3062a63-1dc9-425c-ad79-53dc76222e62 | basic_29-vnf-mgmtVM-0 | ACTIVE | basic_29-internal=2001:db8::241; osm-ext=172.21.249.38 | ubuntu20.04 | simple_requires-1-1-flv | | 191db488-5fd8-44b3-bd53-deaebf1b1073 | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.159 | ubuntu20.04 | several_volumes-VM-flv | | 46c3f9af-22de-46ab-995d-27a777caa1ec | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.58.198; osm-ext=172.21.248.26 | ubuntu18.04 | simple_requires-1-1-flv | | 48ded8ff-9d79-45fa-921f-a99492ebc68d | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.58.228; osm-ext=172.21.248.134 | ubuntu18.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 370f0745-8f8d-4649-a993-992ad57c6de7 | 2024-04-03T02:03:58 | BUILDING | INSTANTIATING (13ad394d-7500-4c20-a024-b09c3f0fa004) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | 370f0745-8f8d-4649-a993-992ad57c6de7 | 2024-04-03T02:03:58 | BUILDING | INSTANTIATING (13ad394d-7500-4c20-a024-b09c3f0fa004) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | ffb10cf8-08aa-40df-90d1-7f08091ddf56 | basic_29-vnf-dataVM-0 | ACTIVE | basic_29-internal=2001:db8::1c0 | ubuntu20.04 | simple_requires-1-1-flv | | c3062a63-1dc9-425c-ad79-53dc76222e62 | basic_29-vnf-mgmtVM-0 | ACTIVE | basic_29-internal=2001:db8::241; osm-ext=172.21.249.38 | ubuntu20.04 | simple_requires-1-1-flv | | 191db488-5fd8-44b3-bd53-deaebf1b1073 | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.159 | ubuntu20.04 | several_volumes-VM-flv | | 46c3f9af-22de-46ab-995d-27a777caa1ec | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.58.198; osm-ext=172.21.248.26 | ubuntu18.04 | simple_requires-1-1-flv | | 48ded8ff-9d79-45fa-921f-a99492ebc68d | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | osm-ext=172.21.248.134 | ubuntu18.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 370f0745-8f8d-4649-a993-992ad57c6de7 | 2024-04-03T02:03:58 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | ffb10cf8-08aa-40df-90d1-7f08091ddf56 | basic_29-vnf-dataVM-0 | ACTIVE | basic_29-internal=2001:db8::1c0 | ubuntu20.04 | simple_requires-1-1-flv | | c3062a63-1dc9-425c-ad79-53dc76222e62 | basic_29-vnf-mgmtVM-0 | ACTIVE | basic_29-internal=2001:db8::241; osm-ext=172.21.249.38 | ubuntu20.04 | simple_requires-1-1-flv | | 191db488-5fd8-44b3-bd53-deaebf1b1073 | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.249.159 | ubuntu20.04 | several_volumes-VM-flv | | 46c3f9af-22de-46ab-995d-27a777caa1ec | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | osm-ext=172.21.248.26 | ubuntu18.04 | simple_requires-1-1-flv | | 48ded8ff-9d79-45fa-921f-a99492ebc68d | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | osm-ext=172.21.248.134 | ubuntu18.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 370f0745-8f8d-4649-a993-992ad57c6de7 | 2024-04-03T02:03:58 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} BROKEN Fails if ``container`` contains ``item`` one or more times. ${ns_id} ${id} = 370f0745-8f8d-4649-a993-992ad57c6de7 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 370f0745-8f8d-4649-a993-992ad57c6de7 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 370f0745-8f8d-4649-a993-992ad57c6de7 | grep 370f0745-8f8d-4649-a993-992ad57c6de7 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = 2054fda5-415d-46cb-8953-ed316a701ca6 ${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} = [ 2054fda5-415d-46cb-8953-ed316a701ca6 ] @{vdur} @{vnfr_list} = [ 2054fda5-415d-46cb-8953-ed316a701ca6 ] ${vnfr_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 2054fda5-415d-46cb-8953-ed316a701ca6 ${VNF_ID} ${vnfr_list}[0] Makes a variable available everywhere within the scope of the current suite. ${VNF_ID} = 2054fda5-415d-46cb-8953-ed316a701ca6 ${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 370f0745-8f8d-4649-a993-992ad57c6de7 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.38 ${stdout} Logs the given message with the given level. 172.21.249.38 ${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.38 ${VNF_IPMGMT} ${ip} Makes a variable available everywhere within the scope of the current suite. ${VNF_IPMGMT} = 172.21.249.38 ${VNF_IPMGMT} Logs the given message with the given level. 172.21.249.38 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 2054fda5-415d-46cb-8953-ed316a701ca6 --literal | yq '.vdur[0].interfaces[] | select(."vnf-vld-id" == "internal")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 2001:db8::241 ${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 2054fda5-415d-46cb-8953-ed316a701ca6 --literal | yq '.vdur[1].interfaces[] | select(."vnf-vld-id" == "internal")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 2001:db8::1c0 ${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 2054fda5-415d-46cb-8953-ed316a701ca6 --literal | yq '.vdur[] | select(."count-index" == 0)' | yq -r '.vim_info[].interfaces[].vim_info' 2>&1'. ${rc} = 1 ${vim_info} = yq: Error running jq: ParserError: did not find expected <document start> in "<stdin>", line 161, column 1. {admin_state_up: true, allowed_address_pairs: [], 'binding:host_id': nfvisrv13, 'binding:p... ${rc},${vim_info} Logs the given message with the given level. 1,yq: Error running jq: ParserError: did not find expected <document start> in "<stdin>", line 161, column 1. {admin_state_up: true, allowed_address_pairs: [], 'binding:host_id': nfvisrv13, 'binding:profile': {}, 'binding:vif_details': {bridge_name: br-int, connectivity: l2, datapath_type: system, ovs_hybrid_plug: true, port_filter: true}, 'binding:vif_type': ovs, 'binding:vnic_type': normal, created_at: '2024-04-03T02:04:10Z', description: '', device_id: c3062a63-1dc9-425c-ad79-53dc76222e62, device_owner: 'compute:nova', extra_dhcp_opts: [], fixed_ips: [{ip_address: 172.21.249.38, subnet_id: d14f68b7-8287-41fe-b533-dafb2240680a}], id: 3e635638-2d13-4085-8ce3-c6f87c30b091, mac_address: 'fa:16:3e:96:09:46', 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-03T02:04:20Z'} {admin_state_up: true, allowed_address_pairs: [], 'binding:host_id': nfvisrv13, 'binding:profile': {}, 'binding:vif_details': {bridge_name: br-int, connectivity: l2, datapath_type: system, ovs_hybrid_plug: true, port_filter: true}, 'binding:vif_type': ovs, 'binding:vnic_type': normal, created_at: '2024-04-03T02:04:10Z', description: '', device_id: c3062a63-1dc9-425c-ad79-53dc76222e62, device_owner: 'compute:nova', extra_dhcp_opts: [], fixed_ips: [{ip_address: '2001:db8::241', subnet_id: dd130c36-e61c-4219-9d85-b7130f73b9f1}], id: e76fa837-dd4d-4246-84c4-dd79cb21f5e8, mac_address: 'fa:16:3e:94:ae:df', name: mgmtVM-eth1, network_id: e49aa68b-92aa-420e-88b2-69684ed76f56, 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-03T02:04:20Z'} ${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} = ['dd130c36-e61c-4219-9d85-b7130f73b9f1'] ${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 dd130c36-e61c-4219-9d85-b7130f73b9f1 -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-03T02:04:08Z", "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-03T02:04:08Z", "description": "", "dns_nameservers": [], "dns_publish_fixed_ip": null, "enable_dhcp": true, "gateway_ip": "2001:db8::1", "host_routes": [], "id": "dd130c36-e61c-4219-9d85-b7130f73b9f1", "ip_version": 6, "ipv6_address_mode": "dhcpv6-stateful", "ipv6_ra_mode": "dhcpv6-stateful", "name": "basic_29-internal-subnet", "network_id": "e49aa68b-92aa-420e-88b2-69684ed76f56", "project_id": "34a71bb7d82f4ec691d8cc11045ae83e", "revision_number": 0, "segment_id": null, "service_types": [], "subnetpool_id": null, "tags": [], "updated_at": "2024-04-03T02:04:08Z" } ${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-03T02:04:08Z", "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-03T02:04:08Z', '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} = +--------------------------------------+--------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | ffb10cf8-08aa-40df-90d1-7f08091ddf56 | basic_29-vnf-dataVM-0 | ACTIVE | basic_29-internal=2001:db8::1c0 | ubuntu20.04 | simple_requires-1-1-flv | | c3062a63-1dc9-425c-ad79-53dc76222e62 | basic_29-vnf-mgmtVM-0 | ACTIVE | basic_29-internal=2001:db8::241; osm-ext=172.21.249.38 | ubuntu20.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 basic_29 2>&1'. ${rc} = 0 ${stdout} = basic_29 ${rc},${stdout} Logs the given message with the given level. 0,basic_29 ${stdout} ${ns} Fails if objects are equal after converting them to strings. basic_29 == basic_29 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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 cbe37da6-2d6f-4875-9cdc-a5f633cabef3 ${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} = cbe37da6-2d6f-4875-9cdc-a5f633cabef3 ${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 61e90d78-d649-4f86-b463-a162fd4627b1 ${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} = 61e90d78-d649-4f86-b463-a162fd4627b1 ${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} = 1a3c6582-3abe-4ad8-a50d-f23b35702da0 ${stdout} Logs the given message with the given level. 1a3c6582-3abe-4ad8-a50d-f23b35702da0 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 1a3c6582-3abe-4ad8-a50d-f23b35702da0 ${ns_id} Logs the given message with the given level. 1a3c6582-3abe-4ad8-a50d-f23b35702da0 ${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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 1a3c6582-3abe-4ad8-a50d-f23b35702da0 | 2024-04-03T02:05:52 | BUILDING | INSTANTIATING (e41ef24d-2593-4c9e-ba47-52d2e21d722b) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | 1a3c6582-3abe-4ad8-a50d-f23b35702da0 | 2024-04-03T02:05:52 | BUILDING | INSTANTIATING (e41ef24d-2593-4c9e-ba47-52d2e21d722b) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 2e365d36-471c-4486-9c71-e91f7b411ee9 | basic_30-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | bdf1baa5-ff07-4636-92f2-2ce3164d0ee9 | basic_30-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 1a3c6582-3abe-4ad8-a50d-f23b35702da0 | 2024-04-03T02:05:52 | BUILDING | INSTANTIATING (e41ef24d-2593-4c9e-ba47-52d2e21d722b) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | 1a3c6582-3abe-4ad8-a50d-f23b35702da0 | 2024-04-03T02:05:52 | BUILDING | INSTANTIATING (e41ef24d-2593-4c9e-ba47-52d2e21d722b) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+-----------------------------------------------+--------+----------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | 207b8294-3516-4c92-b5f7-936bc4e6c6ab | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.143.174; osm-ext=172.21.249.57 | ubuntu18.04 | simple_requires-1-1-flv | | 17269799-2e7d-4fdc-8838-67173120b5d4 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.143.212; osm-ext=172.21.248.79 | ubuntu18.04 | simple_requires-1-1-flv | | 40d2072c-7913-47c5-8ba9-b9350f07fb08 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu20.04 | several_volumes-VM-flv | | 2e365d36-471c-4486-9c71-e91f7b411ee9 | basic_30-vnf2-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::4a; basic_30-datanet2=192.168.20.15; basic_30-datanet3=192.168.30.88; osm-ext=172.21.249.139 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | bdf1baa5-ff07-4636-92f2-2ce3164d0ee9 | basic_30-vnf1-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::19a; basic_30-datanet2=192.168.20.241; basic_30-datanet3=192.168.30.92; osm-ext=172.21.249.108 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 1a3c6582-3abe-4ad8-a50d-f23b35702da0 | 2024-04-03T02:05:52 | BUILDING | INSTANTIATING (e41ef24d-2593-4c9e-ba47-52d2e21d722b) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | 1a3c6582-3abe-4ad8-a50d-f23b35702da0 | 2024-04-03T02:05:52 | BUILDING | INSTANTIATING (e41ef24d-2593-4c9e-ba47-52d2e21d722b) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+-----------------------------------------------+--------+----------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | 207b8294-3516-4c92-b5f7-936bc4e6c6ab | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.143.174; osm-ext=172.21.249.57 | ubuntu18.04 | simple_requires-1-1-flv | | 17269799-2e7d-4fdc-8838-67173120b5d4 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.143.212; osm-ext=172.21.248.79 | ubuntu18.04 | simple_requires-1-1-flv | | 40d2072c-7913-47c5-8ba9-b9350f07fb08 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu20.04 | several_volumes-VM-flv | | 2e365d36-471c-4486-9c71-e91f7b411ee9 | basic_30-vnf2-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::4a; basic_30-datanet2=192.168.20.15; basic_30-datanet3=192.168.30.88; osm-ext=172.21.249.139 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | bdf1baa5-ff07-4636-92f2-2ce3164d0ee9 | basic_30-vnf1-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::19a; basic_30-datanet2=192.168.20.241; basic_30-datanet3=192.168.30.92; osm-ext=172.21.249.108 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 1a3c6582-3abe-4ad8-a50d-f23b35702da0 | 2024-04-03T02:05:52 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------------------------------------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+----------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+----------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | 207b8294-3516-4c92-b5f7-936bc4e6c6ab | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.143.174; osm-ext=172.21.249.57 | ubuntu18.04 | simple_requires-1-1-flv | | 17269799-2e7d-4fdc-8838-67173120b5d4 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.143.212; osm-ext=172.21.248.79 | ubuntu18.04 | simple_requires-1-1-flv | | 40d2072c-7913-47c5-8ba9-b9350f07fb08 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu20.04 | several_volumes-VM-flv | | 2e365d36-471c-4486-9c71-e91f7b411ee9 | basic_30-vnf2-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::4a; basic_30-datanet2=192.168.20.15; basic_30-datanet3=192.168.30.88; osm-ext=172.21.249.139 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | bdf1baa5-ff07-4636-92f2-2ce3164d0ee9 | basic_30-vnf1-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::19a; basic_30-datanet2=192.168.20.241; basic_30-datanet3=192.168.30.92; osm-ext=172.21.249.108 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 1a3c6582-3abe-4ad8-a50d-f23b35702da0 | 2024-04-03T02:05:52 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} BROKEN Fails if ``container`` contains ``item`` one or more times. ${ns_id} ${id} = 1a3c6582-3abe-4ad8-a50d-f23b35702da0 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 1a3c6582-3abe-4ad8-a50d-f23b35702da0 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 1a3c6582-3abe-4ad8-a50d-f23b35702da0 | grep 1a3c6582-3abe-4ad8-a50d-f23b35702da0 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = c35f7410-47e0-4303-b719-91894cbdb5d5 14b5ac47-f7c9-4972-9839-6595ee61b415 ${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} = [ c35f7410-47e0-4303-b719-91894cbdb5d5 | 14b5ac47-f7c9-4972-9839-6595ee61b415 ] @{vdur} @{vnfr_list} = [ c35f7410-47e0-4303-b719-91894cbdb5d5 | 14b5ac47-f7c9-4972-9839-6595ee61b415 ] ${vnfr_list} Logs the length and contents of the ``list`` using given ``level``. List length is 2 and it contains following items: 0: c35f7410-47e0-4303-b719-91894cbdb5d5 1: 14b5ac47-f7c9-4972-9839-6595ee61b415 ${VNF_ID1} ${vnfr_list}[0] Makes a variable available everywhere within the scope of the current suite. ${VNF_ID1} = c35f7410-47e0-4303-b719-91894cbdb5d5 ${VNF_ID2} ${vnfr_list}[1] Makes a variable available everywhere within the scope of the current suite. ${VNF_ID2} = 14b5ac47-f7c9-4972-9839-6595ee61b415 ${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 1a3c6582-3abe-4ad8-a50d-f23b35702da0 | 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 ${VNF1_IPMGMT} ${ip} Makes a variable available everywhere within the scope of the current suite. ${VNF1_IPMGMT} = 172.21.249.108 ${VNF1_IPMGMT} Logs the given message with the given level. 172.21.249.108 ${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 1a3c6582-3abe-4ad8-a50d-f23b35702da0 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.139 ${stdout} Logs the given message with the given level. 172.21.249.139 ${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.139 ${VNF2_IPMGMT} ${ip} Makes a variable available everywhere within the scope of the current suite. ${VNF2_IPMGMT} = 172.21.249.139 ${VNF2_IPMGMT} Logs the given message with the given level. 172.21.249.139 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 c35f7410-47e0-4303-b719-91894cbdb5d5 --literal | yq '.vdur[0].interfaces[] | select(.name == "eth1")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 2001:db8::19a ${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::19a 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 14b5ac47-f7c9-4972-9839-6595ee61b415 --literal | yq '.vdur[0].interfaces[] | select(.name == "eth1")' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 2001:db8::4a ${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::4a 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.249.108: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 Wed Apr 3 02:09:46 UTC 2024 System load: 0.5 Users logged in: 0 Usage of /: 14.0% of 9.52GB IPv4 address for ens3: 172.21.249.108 Memory usage: 10% IPv4 address for ens5: 192.168.20.241 Swap usage: 0% IPv4 address for ens6: 192.168.30.92 Processes: 107 1 update can be applied immediately. To see these additional updates run: apt list --upgradable The list of available updates is more than a week old. To check for new updates run: sudo apt update The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@basic-30-vnf1-datavm-0:~$ ${stdout} ${rc} ${command} return_rc=True return_stdout=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'sudo dhclient -6 ens4 ; ip --brief addr show up | grep -v "^lo" | awk '{print $3}''. Command exited with return code 0. ${stdout} = 172.21.249.108/22 2001:db8::19a/128 192.168.20.241/24 192.168.30.92/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.108/22 2001:db8::19a/128 192.168.20.241/24 192.168.30.92/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.108/22 2001:db8::19a/128 192.168.20.241/24 192.168.30.92/24 ${stdout} Logs the given message with the given level. 172.21.249.108/22 2001:db8::19a/128 192.168.20.241/24 192.168.30.92/24 @{ip} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{ip} = [ 172.21.249.108/22 | 2001:db8::19a/128 | 192.168.20.241/24 | 192.168.30.92/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.249.139:22' as 'ubuntu'. Read output: Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.4.0-107-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Wed Apr 3 02:09:50 UTC 2024 System load: 0.39 Users logged in: 0 Usage of /: 14.0% of 9.52GB IPv4 address for ens3: 172.21.249.139 Memory usage: 10% IPv4 address for ens5: 192.168.20.15 Swap usage: 0% IPv4 address for ens6: 192.168.30.88 Processes: 108 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.249.139/22 2001:db8::4a/128 192.168.20.15/24 192.168.30.88/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.139/22 2001:db8::4a/128 192.168.20.15/24 192.168.30.88/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.139/22 2001:db8::4a/128 192.168.20.15/24 192.168.30.88/24 ${stdout} Logs the given message with the given level. 172.21.249.139/22 2001:db8::4a/128 192.168.20.15/24 192.168.30.88/24 @{ip} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{ip} = [ 172.21.249.139/22 | 2001:db8::4a/128 | 192.168.20.15/24 | 192.168.30.88/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 c35f7410-47e0-4303-b719-91894cbdb5d5 --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-03T02:06:08Z', description: '', device_id: bdf1baa5-ff07-4636-92f2-2ce3164d0ee9, device_owner: 'compute:nova', extra_dhcp_opts: [], fixed_ips: [{ip_address: 172.21.249.108, subnet_id: d14f68b7-8287-41fe-b533-dafb2240680a}], id: b28c3331-c892-4f10-9773-577f68aa5fc2, mac_address: 'fa:16:3e:c2:d3:ed', 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-03T02:06:22Z'} {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-03T02:06:09Z', description: '', device_id: bdf1baa5-ff07-4636-92f2-2ce3164d0ee9, device_owner: 'compute:nova', extra_dhcp_opts: [], fixed_ips: [{ip_address: '2001:db8::19a', subnet_id: 188af9e8-8f5f-4531-b60d-925eef8d59e9}], id: 1eb194a5-5d8b-4349-b7a0-27f8f471a780, mac_address: 'fa:16:3e:0c:a6:1b', name: eth1, network_id: 1be43cef-46c1-448e-87d2-f08ede24862d, 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-03T02:06:26Z'} {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-03T02:06:09Z', description: '', device_id: bdf1baa5-ff07-4636-92f2-2ce3164d0ee9, device_owner: 'compute:nova', extra_dhcp_opts: [], fixed_ips: [{ip_address: 192.168.20.241, subnet_id: 09f1e212-76c2-4328-b44d-9da14c4173a0}], id: 6892990c-c2d6-4a21-9202-4ce6d08cbf2b, mac_address: 'fa:16:3e:45:f6:d9', name: eth2, network_id: d065a44e-55d1-43fb-8aa5-94736b81ce17, 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-03T02:06:26Z'} {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-03T02:06:10Z', description: '', device_id: bdf1baa5-ff07-4636-92f2-2ce3164d0ee9, device_owner: 'compute:nova', extra_dhcp_opts: [], fixed_ips: [{ip_address: 192.168.30.92, subnet_id: afb7a525-031f-470e-9b1d-74726bc576a9}], id: f2ecb259-0b51-4945-80d2-b3c9208f4fb6, mac_address: 'fa:16:3e:b8:e7:43', name: eth3, network_id: 28ef8d58-c944-4fc8-beb7-6ae40a24e0ea, 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-03T02:06:27Z'} ${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} = ['188af9e8-8f5f-4531-b60d-925eef8d59e9'] ${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 188af9e8-8f5f-4531-b60d-925eef8d59e9 -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-03T02:05:59Z", "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-03T02:05:59Z", "description": "", "dns_nameservers": [], "dns_publish_fixed_ip": null, "enable_dhcp": true, "gateway_ip": "2001:db8::1", "host_routes": [], "id": "188af9e8-8f5f-4531-b60d-925eef8d59e9", "ip_version": 6, "ipv6_address_mode": "dhcpv6-stateful", "ipv6_ra_mode": "dhcpv6-stateful", "name": "basic_30-datanet1-subnet", "network_id": "1be43cef-46c1-448e-87d2-f08ede24862d", "project_id": "34a71bb7d82f4ec691d8cc11045ae83e", "revision_number": 0, "segment_id": null, "service_types": [], "subnetpool_id": null, "tags": [], "updated_at": "2024-04-03T02:05:59Z" } ${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-03T02:05:59Z", "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-03T02:05:59Z', '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 | +--------------------------------------+-----------------------------------------------+--------+----------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------+ | 207b8294-3516-4c92-b5f7-936bc4e6c6ab | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.143.174; osm-ext=172.21.249.57 | ubuntu18.04 | simple_requires-1-1-flv | | 17269799-2e7d-4fdc-8838-67173120b5d4 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.143.212; osm-ext=172.21.248.79 | ubuntu18.04 | simple_requires-1-1-flv | | 40d2072c-7913-47c5-8ba9-b9350f07fb08 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu20.04 | several_volumes-VM-flv | | 2e365d36-471c-4486-9c71-e91f7b411ee9 | basic_30-vnf2-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::4a; basic_30-datanet2=192.168.20.15; basic_30-datanet3=192.168.30.88; osm-ext=172.21.249.139 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | bdf1baa5-ff07-4636-92f2-2ce3164d0ee9 | basic_30-vnf1-dataVM-0 | ACTIVE | basic_30-datanet1=2001:db8::19a; basic_30-datanet2=192.168.20.241; basic_30-datanet3=192.168.30.92; osm-ext=172.21.249.108 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | 207b8294-3516-4c92-b5f7-936bc4e6c6ab | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.143.174; osm-ext=172.21.249.57 | ubuntu18.04 | simple_requires-1-1-flv | | 17269799-2e7d-4fdc-8838-67173120b5d4 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.143.212; osm-ext=172.21.248.79 | ubuntu18.04 | simple_requires-1-1-flv | | 40d2072c-7913-47c5-8ba9-b9350f07fb08 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu20.04 | several_volumes-VM-flv | | 2e365d36-471c-4486-9c71-e91f7b411ee9 | basic_30-vnf2-dataVM-0 | ACTIVE | osm-ext=172.21.249.139 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | bdf1baa5-ff07-4636-92f2-2ce3164d0ee9 | basic_30-vnf1-dataVM-0 | ACTIVE | osm-ext=172.21.249.108 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | d4a66065-a2bb-487e-a7b2-a996a2df3b06 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.143.53; osm-ext=172.21.248.203 | ubuntu18.04 | simple_requires-1-1-flv | | 207b8294-3516-4c92-b5f7-936bc4e6c6ab | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.143.174; osm-ext=172.21.249.57 | ubuntu18.04 | simple_requires-1-1-flv | | 17269799-2e7d-4fdc-8838-67173120b5d4 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.143.212; osm-ext=172.21.248.79 | ubuntu18.04 | simple_requires-1-1-flv | | 40d2072c-7913-47c5-8ba9-b9350f07fb08 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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 07fd7ac3-7dc7-48c5-951e-90db23cfc8d4 ${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} = 07fd7ac3-7dc7-48c5-951e-90db23cfc8d4 ${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 45ab0f98-22cb-4c1a-8aa8-9ff2eca57306 ${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} = 45ab0f98-22cb-4c1a-8aa8-9ff2eca57306 ${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} = 72c3244c-1004-4ee0-a08a-807ab72622f3 ${stdout} Logs the given message with the given level. 72c3244c-1004-4ee0-a08a-807ab72622f3 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 72c3244c-1004-4ee0-a08a-807ab72622f3 ${ns_id} Logs the given message with the given level. 72c3244c-1004-4ee0-a08a-807ab72622f3 ${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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | d4a66065-a2bb-487e-a7b2-a996a2df3b06 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.143.53; osm-ext=172.21.248.203 | ubuntu18.04 | simple_requires-1-1-flv | | 207b8294-3516-4c92-b5f7-936bc4e6c6ab | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.143.174; osm-ext=172.21.249.57 | ubuntu18.04 | simple_requires-1-1-flv | | 17269799-2e7d-4fdc-8838-67173120b5d4 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.143.212; osm-ext=172.21.248.79 | ubuntu18.04 | simple_requires-1-1-flv | | 40d2072c-7913-47c5-8ba9-b9350f07fb08 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 72c3244c-1004-4ee0-a08a-807ab72622f3 | 2024-04-03T02:10:47 | BUILDING | INSTANTIATING (7d670a38-b24f-4cb4-9899-dc5821516235) | N/A | +----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | 72c3244c-1004-4ee0-a08a-807ab72622f3 | 2024-04-03T02:10:47 | BUILDING | INSTANTIATING (7d670a38-b24f-4cb4-9899-dc5821516235) | N/A | +----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | 9122ad07-7f1c-4c96-9c28-7c5efea5a59b | multivdu_multiat-vnf-dataVM-0 | ACTIVE | osm-ext=172.21.248.48 | ubuntu22.04 | mgmtVM-vnf-1-flv | | 6eb82c00-896a-48d9-83eb-52d94de4a8e8 | multivdu_multiat-vnf-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.63 | ubuntu22.04 | mgmtVM-vnf-1-flv | | d4a66065-a2bb-487e-a7b2-a996a2df3b06 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.143.53; osm-ext=172.21.248.203 | ubuntu18.04 | simple_requires-1-1-flv | | 207b8294-3516-4c92-b5f7-936bc4e6c6ab | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.143.174; osm-ext=172.21.249.57 | ubuntu18.04 | simple_requires-1-1-flv | | 17269799-2e7d-4fdc-8838-67173120b5d4 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.143.212; osm-ext=172.21.248.79 | ubuntu18.04 | simple_requires-1-1-flv | | 40d2072c-7913-47c5-8ba9-b9350f07fb08 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 72c3244c-1004-4ee0-a08a-807ab72622f3 | 2024-04-03T02:10:47 | BUILDING | INSTANTIATING (7d670a38-b24f-4cb4-9899-dc5821516235) | N/A | +----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | 72c3244c-1004-4ee0-a08a-807ab72622f3 | 2024-04-03T02:10:47 | BUILDING | INSTANTIATING (7d670a38-b24f-4cb4-9899-dc5821516235) | N/A | +----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | 9122ad07-7f1c-4c96-9c28-7c5efea5a59b | multivdu_multiat-vnf-dataVM-0 | ACTIVE | osm-ext=172.21.248.48 | ubuntu22.04 | mgmtVM-vnf-1-flv | | 6eb82c00-896a-48d9-83eb-52d94de4a8e8 | multivdu_multiat-vnf-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.63 | ubuntu22.04 | mgmtVM-vnf-1-flv | | d4a66065-a2bb-487e-a7b2-a996a2df3b06 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.143.53; osm-ext=172.21.248.203 | ubuntu18.04 | simple_requires-1-1-flv | | 207b8294-3516-4c92-b5f7-936bc4e6c6ab | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.143.174; osm-ext=172.21.249.57 | ubuntu18.04 | simple_requires-1-1-flv | | 17269799-2e7d-4fdc-8838-67173120b5d4 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.143.212; osm-ext=172.21.248.79 | ubuntu18.04 | simple_requires-1-1-flv | | 40d2072c-7913-47c5-8ba9-b9350f07fb08 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 72c3244c-1004-4ee0-a08a-807ab72622f3 | 2024-04-03T02:10:47 | READY | IDLE (None) | N/A | +----------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | 9122ad07-7f1c-4c96-9c28-7c5efea5a59b | multivdu_multiat-vnf-dataVM-0 | ACTIVE | osm-ext=172.21.248.48 | ubuntu22.04 | mgmtVM-vnf-1-flv | | 6eb82c00-896a-48d9-83eb-52d94de4a8e8 | multivdu_multiat-vnf-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.63 | ubuntu22.04 | mgmtVM-vnf-1-flv | | d4a66065-a2bb-487e-a7b2-a996a2df3b06 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.143.53; osm-ext=172.21.248.203 | ubuntu18.04 | simple_requires-1-1-flv | | 207b8294-3516-4c92-b5f7-936bc4e6c6ab | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.143.174; osm-ext=172.21.249.57 | ubuntu18.04 | simple_requires-1-1-flv | | 17269799-2e7d-4fdc-8838-67173120b5d4 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.143.212; osm-ext=172.21.248.79 | ubuntu18.04 | simple_requires-1-1-flv | | 40d2072c-7913-47c5-8ba9-b9350f07fb08 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 72c3244c-1004-4ee0-a08a-807ab72622f3 | 2024-04-03T02:10:47 | READY | IDLE (None) | N/A | +----------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} BROKEN Fails if ``container`` contains ``item`` one or more times. ${ns_id} ${id} = 72c3244c-1004-4ee0-a08a-807ab72622f3 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 72c3244c-1004-4ee0-a08a-807ab72622f3 ${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 72c3244c-1004-4ee0-a08a-807ab72622f3 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = 70425f96-8ef8-4af8-9d58-dd5f3066c522 ${stdout} Logs the given message with the given level. 70425f96-8ef8-4af8-9d58-dd5f3066c522 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${vnf_id} = 70425f96-8ef8-4af8-9d58-dd5f3066c522 ${VNF_ID} ${vnf_id} Makes a variable available everywhere within the scope of the current suite. ${VNF_ID} = 70425f96-8ef8-4af8-9d58-dd5f3066c522 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 70425f96-8ef8-4af8-9d58-dd5f3066c522 --literal | yq -r '.vdur[0].interfaces[]."ip-address"' 2>&1'. ${rc} = 0 ${vdu0_ip} = 172.21.249.63 ${rc},${vdu0_ip} Logs the given message with the given level. 0,172.21.249.63 ${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 70425f96-8ef8-4af8-9d58-dd5f3066c522 --literal | yq -r '.vdur[1].interfaces[]."ip-address"' 2>&1'. ${rc} = 0 ${vdu1_ip} = 172.21.248.48 ${rc},${vdu1_ip} Logs the given message with the given level. 0,172.21.248.48 ${MGMT_IP_ADDR_0} ${vdu0_ip} Makes a variable available everywhere within the scope of the current suite. ${MGMT_IP_ADDR_0} = 172.21.249.63 ${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.48 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.249.63: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 Wed Apr 3 02:12:53 UTC 2024 System load: 0.126953125 Processes: 93 Usage of /: 29.7% of 4.67GB Users logged in: 0 Memory usage: 19% IPv4 address for ens3: 172.21.249.63 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: b9b... ${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: b9b71c81-1d72-43b9-bbf9-086bc8801c46 Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632 Allocating group tables: 0/80 done Writing inode tables: 0/8024/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.48: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 Wed Apr 3 02:13:08 UTC 2024 System load: 0.06689453125 Processes: 93 Usage of /: 29.7% of 4.67GB Users logged in: 0 Memory usage: 20% IPv4 address for ens3: 172.21.248.48 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.48: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 Wed Apr 3 02:13:08 UTC 2024 System load: 0.06689453125 Processes: 93 Usage of /: 29.7% of 4.67GB Users logged in: 0 Memory usage: 20% IPv4 address for ens3: 172.21.248.48 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: Wed Apr 3 02:13:09 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.249.63: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 Wed Apr 3 02:12:53 UTC 2024 System load: 0.126953125 Processes: 93 Usage of /: 29.7% of 4.67GB Users logged in: 0 Memory usage: 19% IPv4 address for ens3: 172.21.249.63 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: Wed Apr 3 02:12:54 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | 9122ad07-7f1c-4c96-9c28-7c5efea5a59b | multivdu_multiat-vnf-dataVM-0 | ACTIVE | osm-ext=172.21.248.48 | ubuntu22.04 | mgmtVM-vnf-1-flv | | 6eb82c00-896a-48d9-83eb-52d94de4a8e8 | multivdu_multiat-vnf-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.63 | ubuntu22.04 | mgmtVM-vnf-1-flv | | d4a66065-a2bb-487e-a7b2-a996a2df3b06 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.143.53; osm-ext=172.21.248.203 | ubuntu18.04 | simple_requires-1-1-flv | | 207b8294-3516-4c92-b5f7-936bc4e6c6ab | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.143.174; osm-ext=172.21.249.57 | ubuntu18.04 | simple_requires-1-1-flv | | 17269799-2e7d-4fdc-8838-67173120b5d4 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.143.212; osm-ext=172.21.248.79 | ubuntu18.04 | simple_requires-1-1-flv | | 40d2072c-7913-47c5-8ba9-b9350f07fb08 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | d4a66065-a2bb-487e-a7b2-a996a2df3b06 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.143.53; osm-ext=172.21.248.203 | ubuntu18.04 | simple_requires-1-1-flv | | 207b8294-3516-4c92-b5f7-936bc4e6c6ab | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.143.174; osm-ext=172.21.249.57 | ubuntu18.04 | simple_requires-1-1-flv | | 17269799-2e7d-4fdc-8838-67173120b5d4 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.143.212; osm-ext=172.21.248.79 | ubuntu18.04 | simple_requires-1-1-flv | | 40d2072c-7913-47c5-8ba9-b9350f07fb08 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | d4a66065-a2bb-487e-a7b2-a996a2df3b06 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.143.53; osm-ext=172.21.248.203 | ubuntu18.04 | simple_requires-1-1-flv | | 207b8294-3516-4c92-b5f7-936bc4e6c6ab | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.143.174; osm-ext=172.21.249.57 | ubuntu18.04 | simple_requires-1-1-flv | | 17269799-2e7d-4fdc-8838-67173120b5d4 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.143.212; osm-ext=172.21.248.79 | ubuntu18.04 | simple_requires-1-1-flv | | 40d2072c-7913-47c5-8ba9-b9350f07fb08 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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 f38feb70-cc99-4c74-a097-ab6a14170536 ${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} = f38feb70-cc99-4c74-a097-ab6a14170536 ${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 554bff2b-ae26-4b44-8e7c-c9767793d777 ${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} = 554bff2b-ae26-4b44-8e7c-c9767793d777 ${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} = 9992a7de-c6c9-4f62-a9cc-1ac76e17f61c ${stdout} Logs the given message with the given level. 9992a7de-c6c9-4f62-a9cc-1ac76e17f61c ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 9992a7de-c6c9-4f62-a9cc-1ac76e17f61c ${ns_id} Logs the given message with the given level. 9992a7de-c6c9-4f62-a9cc-1ac76e17f61c ${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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | d4a66065-a2bb-487e-a7b2-a996a2df3b06 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.143.53; osm-ext=172.21.248.203 | ubuntu18.04 | simple_requires-1-1-flv | | 207b8294-3516-4c92-b5f7-936bc4e6c6ab | heal_02-charm_vnf-mgmtVM-1 | ERROR | heal_02-datanet=192.168.143.174; osm-ext=172.21.249.57 | ubuntu18.04 | simple_requires-1-1-flv | | 17269799-2e7d-4fdc-8838-67173120b5d4 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.143.212; osm-ext=172.21.248.79 | ubuntu18.04 | simple_requires-1-1-flv | | 40d2072c-7913-47c5-8ba9-b9350f07fb08 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 9992a7de-c6c9-4f62-a9cc-1ac76e17f61c | 2024-04-03T02:14:05 | BUILDING | INSTANTIATING (08735e20-5b15-412c-9f40-76822a0d2000) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | 9992a7de-c6c9-4f62-a9cc-1ac76e17f61c | 2024-04-03T02:14:05 | BUILDING | INSTANTIATING (08735e20-5b15-412c-9f40-76822a0d2000) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+-----------------------------------------------+--------+-----------------------------------------------------------------+-------------+-----------------------------+ | 30584210-4c9f-45ca-a812-6610e6a817de | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | ACTIVE | epa_01-epa_sriov-sriov_vld=192.168.15.93; osm-ext=172.21.248.95 | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | 3cf5d4e2-ab4b-483d-a44a-3f5e0daa6a6f | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.143.174; osm-ext=172.21.249.57 | ubuntu18.04 | simple_requires-1-1-flv | | d4a66065-a2bb-487e-a7b2-a996a2df3b06 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.143.53; osm-ext=172.21.248.203 | ubuntu18.04 | simple_requires-1-1-flv | | 17269799-2e7d-4fdc-8838-67173120b5d4 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.143.212; osm-ext=172.21.248.79 | ubuntu18.04 | simple_requires-1-1-flv | | 40d2072c-7913-47c5-8ba9-b9350f07fb08 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 9992a7de-c6c9-4f62-a9cc-1ac76e17f61c | 2024-04-03T02:14:05 | BUILDING | INSTANTIATING (08735e20-5b15-412c-9f40-76822a0d2000) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | 9992a7de-c6c9-4f62-a9cc-1ac76e17f61c | 2024-04-03T02:14:05 | BUILDING | INSTANTIATING (08735e20-5b15-412c-9f40-76822a0d2000) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+-----------------------------------------------+--------+-----------------------------------------------------------------+-------------+-----------------------------+ | 30584210-4c9f-45ca-a812-6610e6a817de | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | ACTIVE | epa_01-epa_sriov-sriov_vld=192.168.15.93; osm-ext=172.21.248.95 | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | 3cf5d4e2-ab4b-483d-a44a-3f5e0daa6a6f | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.143.174; osm-ext=172.21.249.57 | ubuntu18.04 | simple_requires-1-1-flv | | d4a66065-a2bb-487e-a7b2-a996a2df3b06 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.143.53; osm-ext=172.21.248.203 | ubuntu18.04 | simple_requires-1-1-flv | | 17269799-2e7d-4fdc-8838-67173120b5d4 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.143.212; osm-ext=172.21.248.79 | ubuntu18.04 | simple_requires-1-1-flv | | 40d2072c-7913-47c5-8ba9-b9350f07fb08 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 9992a7de-c6c9-4f62-a9cc-1ac76e17f61c | 2024-04-03T02:14:05 | 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 | +--------------------------------------+-----------------------------------------------+--------+-----------------------------------------------------------------+-------------+-----------------------------+ | 30584210-4c9f-45ca-a812-6610e6a817de | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | ACTIVE | epa_01-epa_sriov-sriov_vld=192.168.15.93; osm-ext=172.21.248.95 | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | 3cf5d4e2-ab4b-483d-a44a-3f5e0daa6a6f | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.143.174; osm-ext=172.21.249.57 | ubuntu18.04 | simple_requires-1-1-flv | | d4a66065-a2bb-487e-a7b2-a996a2df3b06 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.143.53; osm-ext=172.21.248.203 | ubuntu18.04 | simple_requires-1-1-flv | | 17269799-2e7d-4fdc-8838-67173120b5d4 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.143.212; osm-ext=172.21.248.79 | ubuntu18.04 | simple_requires-1-1-flv | | 40d2072c-7913-47c5-8ba9-b9350f07fb08 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 9992a7de-c6c9-4f62-a9cc-1ac76e17f61c | 2024-04-03T02:14:05 | 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} = 9992a7de-c6c9-4f62-a9cc-1ac76e17f61c ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 9992a7de-c6c9-4f62-a9cc-1ac76e17f61c 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 9992a7de-c6c9-4f62-a9cc-1ac76e17f61c | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.95 ${stdout} Logs the given message with the given level. 172.21.248.95 ${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.95 ${ip_addr} Logs the given message with the given level. 172.21.248.95 ${VNF_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. ${VNF_IP_ADDR} = 172.21.248.95 Get the mgmt IP address of the VNF of the NS. cluster_epa daily epa_01 regression 30 seconds Waiting for SSH daemon to be up Pauses the test executed for the given time. Slept 30 seconds Waiting for SSH daemon to be up ${VNF_IP_ADDR} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} lspci | grep "Ethernet controller" | grep -v "Virtio" Execute via SSH a command in a remote host and, if the command succeeds, return the output. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. Logging into '172.21.248.95: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 Wed Apr 3 02:15:50 UTC 2024 System load: 0.21 Processes: 97 Usage of /: 3.8% of 28.90GB Users logged in: 0 Memory usage: 6% IP address for ens3: 172.21.248.95 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 | +--------------------------------------+-----------------------------------------------+--------+-----------------------------------------------------------------+-------------+-----------------------------+ | 30584210-4c9f-45ca-a812-6610e6a817de | epa_01-epa_sriov-vnf-hackfest_basic-VM-0 | ACTIVE | epa_01-epa_sriov-sriov_vld=192.168.15.93; osm-ext=172.21.248.95 | ubuntu18.04 | hackfest_basic-VM-vnf-1-flv | | 3cf5d4e2-ab4b-483d-a44a-3f5e0daa6a6f | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.143.174; osm-ext=172.21.249.57 | ubuntu18.04 | simple_requires-1-1-flv | | d4a66065-a2bb-487e-a7b2-a996a2df3b06 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.143.53; osm-ext=172.21.248.203 | ubuntu18.04 | simple_requires-1-1-flv | | 17269799-2e7d-4fdc-8838-67173120b5d4 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.143.212; osm-ext=172.21.248.79 | ubuntu18.04 | simple_requires-1-1-flv | | 40d2072c-7913-47c5-8ba9-b9350f07fb08 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | 3cf5d4e2-ab4b-483d-a44a-3f5e0daa6a6f | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.143.174; osm-ext=172.21.249.57 | ubuntu18.04 | simple_requires-1-1-flv | | d4a66065-a2bb-487e-a7b2-a996a2df3b06 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.143.53; osm-ext=172.21.248.203 | ubuntu18.04 | simple_requires-1-1-flv | | 17269799-2e7d-4fdc-8838-67173120b5d4 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.143.212; osm-ext=172.21.248.79 | ubuntu18.04 | simple_requires-1-1-flv | | 40d2072c-7913-47c5-8ba9-b9350f07fb08 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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 2139741c-a652-4178-8810-6e75f02cfad5 ${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} = 2139741c-a652-4178-8810-6e75f02cfad5 ${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 ec1b72e3-9599-407d-bd12-6c2842b63fe8 ${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} = ec1b72e3-9599-407d-bd12-6c2842b63fe8 ${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} = aeca9323-1c65-4ebe-8700-8bb52ef3eada ${stdout} Logs the given message with the given level. aeca9323-1c65-4ebe-8700-8bb52ef3eada ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = aeca9323-1c65-4ebe-8700-8bb52ef3eada ${ns_id} Logs the given message with the given level. aeca9323-1c65-4ebe-8700-8bb52ef3eada ${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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | 3cf5d4e2-ab4b-483d-a44a-3f5e0daa6a6f | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.143.174; osm-ext=172.21.249.57 | ubuntu18.04 | simple_requires-1-1-flv | | d4a66065-a2bb-487e-a7b2-a996a2df3b06 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.143.53; osm-ext=172.21.248.203 | ubuntu18.04 | simple_requires-1-1-flv | | 17269799-2e7d-4fdc-8838-67173120b5d4 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.143.212; osm-ext=172.21.248.79 | ubuntu18.04 | simple_requires-1-1-flv | | 40d2072c-7913-47c5-8ba9-b9350f07fb08 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | aeca9323-1c65-4ebe-8700-8bb52ef3eada | 2024-04-03T02:16:25 | BUILDING | INSTANTIATING (316fd6bc-0d13-4a07-bd17-7114b0c9df67) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | aeca9323-1c65-4ebe-8700-8bb52ef3eada | 2024-04-03T02:16:25 | BUILDING | INSTANTIATING (316fd6bc-0d13-4a07-bd17-7114b0c9df67) | N/A | +-----------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | 9046b4b3-eb8b-49e0-bee6-bfc29f7b2589 | epa_02-epa_quota-vnf-epa_quota-VM-0 | ACTIVE | osm-ext=172.21.248.67 | ubuntu18.04 | epa_quota-VM-vnf-1-flv | | 3cf5d4e2-ab4b-483d-a44a-3f5e0daa6a6f | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.143.174; osm-ext=172.21.249.57 | ubuntu18.04 | simple_requires-1-1-flv | | d4a66065-a2bb-487e-a7b2-a996a2df3b06 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.143.53; osm-ext=172.21.248.203 | ubuntu18.04 | simple_requires-1-1-flv | | 17269799-2e7d-4fdc-8838-67173120b5d4 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.143.212; osm-ext=172.21.248.79 | ubuntu18.04 | simple_requires-1-1-flv | | 40d2072c-7913-47c5-8ba9-b9350f07fb08 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | aeca9323-1c65-4ebe-8700-8bb52ef3eada | 2024-04-03T02:16:25 | READY | IDLE (None) | N/A | +-----------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | 9046b4b3-eb8b-49e0-bee6-bfc29f7b2589 | epa_02-epa_quota-vnf-epa_quota-VM-0 | ACTIVE | osm-ext=172.21.248.67 | ubuntu18.04 | epa_quota-VM-vnf-1-flv | | 3cf5d4e2-ab4b-483d-a44a-3f5e0daa6a6f | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.143.174; osm-ext=172.21.249.57 | ubuntu18.04 | simple_requires-1-1-flv | | d4a66065-a2bb-487e-a7b2-a996a2df3b06 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.143.53; osm-ext=172.21.248.203 | ubuntu18.04 | simple_requires-1-1-flv | | 17269799-2e7d-4fdc-8838-67173120b5d4 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.143.212; osm-ext=172.21.248.79 | ubuntu18.04 | simple_requires-1-1-flv | | 40d2072c-7913-47c5-8ba9-b9350f07fb08 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | aeca9323-1c65-4ebe-8700-8bb52ef3eada | 2024-04-03T02:16: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} = aeca9323-1c65-4ebe-8700-8bb52ef3eada ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = aeca9323-1c65-4ebe-8700-8bb52ef3eada 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 aeca9323-1c65-4ebe-8700-8bb52ef3eada | grep aeca9323-1c65-4ebe-8700-8bb52ef3eada | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | ab14ae0a-ab04-4769-9021-c2dad5e9a945 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ ab14ae0a-ab04-4769-9021-c2dad5e9a945 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: ab14ae0a-ab04-4769-9021-c2dad5e9a945 @{vnf_list} ${vnfs_list} = ['ab14ae0a-ab04-4769-9021-c2dad5e9a945'] ${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 ab14ae0a-ab04-4769-9021-c2dad5e9a945 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 9046b4b3-eb8b-49e0-bee6-bfc29f7b2589 ${stdout} Logs the given message with the given level. 9046b4b3-eb8b-49e0-bee6-bfc29f7b2589 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${vim_id} = 9046b4b3-eb8b-49e0-bee6-bfc29f7b2589 ${vim_id} Logs the given message with the given level. 9046b4b3-eb8b-49e0-bee6-bfc29f7b2589 ${VNF_SERVER_ID} ${vim_id} Makes a variable available everywhere within the scope of the current suite. ${VNF_SERVER_ID} = 9046b4b3-eb8b-49e0-bee6-bfc29f7b2589 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 9046b4b3-eb8b-49e0-bee6-bfc29f7b2589 | 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | 9046b4b3-eb8b-49e0-bee6-bfc29f7b2589 | epa_02-epa_quota-vnf-epa_quota-VM-0 | ACTIVE | osm-ext=172.21.248.67 | ubuntu18.04 | epa_quota-VM-vnf-1-flv | | 3cf5d4e2-ab4b-483d-a44a-3f5e0daa6a6f | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.143.174; osm-ext=172.21.249.57 | ubuntu18.04 | simple_requires-1-1-flv | | d4a66065-a2bb-487e-a7b2-a996a2df3b06 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.143.53; osm-ext=172.21.248.203 | ubuntu18.04 | simple_requires-1-1-flv | | 17269799-2e7d-4fdc-8838-67173120b5d4 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.143.212; osm-ext=172.21.248.79 | ubuntu18.04 | simple_requires-1-1-flv | | 40d2072c-7913-47c5-8ba9-b9350f07fb08 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | 3cf5d4e2-ab4b-483d-a44a-3f5e0daa6a6f | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.143.174; osm-ext=172.21.249.57 | ubuntu18.04 | simple_requires-1-1-flv | | d4a66065-a2bb-487e-a7b2-a996a2df3b06 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.143.53; osm-ext=172.21.248.203 | ubuntu18.04 | simple_requires-1-1-flv | | 17269799-2e7d-4fdc-8838-67173120b5d4 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.143.212; osm-ext=172.21.248.79 | ubuntu18.04 | simple_requires-1-1-flv | | 40d2072c-7913-47c5-8ba9-b9350f07fb08 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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.136 == '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} = 901a6031-b863-47af-aeae-b4c136e09d6a ${stdout} Logs the given message with the given level. 901a6031-b863-47af-aeae-b4c136e09d6a ${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} = 901a6031-b863-47af-aeae-b4c136e09d6a ${SDNC_ID} ${created_sdnc_id} Makes a variable available everywhere within the scope of the current suite. ${SDNC_ID} = 901a6031-b863-47af-aeae-b4c136e09d6a ${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 901a6031-b863-47af-aeae-b4c136e09d6a | 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=901a6031-b863-47af-aeae-b4c136e09d6a ${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=901a6031-b863-47af-aeae-b4c136e09d6a ${param_name} = sdnc_id ${param_value} = 901a6031-b863-47af-aeae-b4c136e09d6a ${match},${param_name},${param_value} Logs the given message with the given level. sdnc_id=901a6031-b863-47af-aeae-b4c136e09d6a,sdnc_id,901a6031-b863-47af-aeae-b4c136e09d6a ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = sdnc_id="901a6031-b863-47af-aeae-b4c136e09d6a", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4c4c9150>, 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.136:9091/api/v1/query?query=osm_sdnc_status%7Bsdnc_id=%22901a6031-b863-47af-aeae-b4c136e09d6a%22,%7D path_url=/api/v1/query?query=osm_sdnc_status%7Bsdnc_id=%22901a6031-b863-47af-aeae-b4c136e09d6a%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.136:9091/api/v1/query?query=osm_sdnc_status%7Bsdnc_id=%22901a6031-b863-47af-aeae-b4c136e09d6a%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 02:17:42 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=901a6031-b863-47af-aeae-b4c136e09d6a ${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=901a6031-b863-47af-aeae-b4c136e09d6a ${param_name} = sdnc_id ${param_value} = 901a6031-b863-47af-aeae-b4c136e09d6a ${match},${param_name},${param_value} Logs the given message with the given level. sdnc_id=901a6031-b863-47af-aeae-b4c136e09d6a,sdnc_id,901a6031-b863-47af-aeae-b4c136e09d6a ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = sdnc_id="901a6031-b863-47af-aeae-b4c136e09d6a", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4c4e77c0>, 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.136:9091/api/v1/query?query=osm_sdnc_status%7Bsdnc_id=%22901a6031-b863-47af-aeae-b4c136e09d6a%22,%7D path_url=/api/v1/query?query=osm_sdnc_status%7Bsdnc_id=%22901a6031-b863-47af-aeae-b4c136e09d6a%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.136:9091/api/v1/query?query=osm_sdnc_status%7Bsdnc_id=%22901a6031-b863-47af-aeae-b4c136e09d6a%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 02:18:42 GMT', 'Content-Length': '190'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_sdnc_status","job":"airflow_osm_sdnc_status_901a6031-b863-47af-aeae-b4c136e09d6a","sdnc_id":"901a6031-b863-47af-aeae-b4c136e09d6a"},"value":[1712110722.933,"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_901a6031-b863-47af-aeae-b4c136e09d6a', 'sdnc_id': '901a6031... ${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_901a6031-b863-47af-aeae-b4c136e09d6a', 'sdnc_id': '901a6031-b863-47af-aeae-b4c136e09d6a'}, 'value': [1712110722.933, '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 4abf87e1-e24c-49ea-b3bc-ee77c7f0c824 ${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} = 4abf87e1-e24c-49ea-b3bc-ee77c7f0c824 ${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 81080ac1-9feb-412c-8384-41e9410d9fd7 ${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} = 81080ac1-9feb-412c-8384-41e9410d9fd7 ${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} = ced9ab81-ba3d-4775-b581-937f332102c9 ${stdout} Logs the given message with the given level. ced9ab81-ba3d-4775-b581-937f332102c9 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = ced9ab81-ba3d-4775-b581-937f332102c9 ${ns_id} Logs the given message with the given level. ced9ab81-ba3d-4775-b581-937f332102c9 ${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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | 3cf5d4e2-ab4b-483d-a44a-3f5e0daa6a6f | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.143.174; osm-ext=172.21.249.57 | ubuntu18.04 | simple_requires-1-1-flv | | d4a66065-a2bb-487e-a7b2-a996a2df3b06 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.143.53; osm-ext=172.21.248.203 | ubuntu18.04 | simple_requires-1-1-flv | | 17269799-2e7d-4fdc-8838-67173120b5d4 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.143.212; osm-ext=172.21.248.79 | ubuntu18.04 | simple_requires-1-1-flv | | 40d2072c-7913-47c5-8ba9-b9350f07fb08 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | ced9ab81-ba3d-4775-b581-937f332102c9 | 2024-04-03T02:18:53 | BUILDING | INSTANTIATING (edfc84a3-4f09-491b-95b1-02ad73bece33) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | ced9ab81-ba3d-4775-b581-937f332102c9 | 2024-04-03T02:18:53 | BUILDING | INSTANTIATING (edfc84a3-4f09-491b-95b1-02ad73bece33) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | f58dd4f1-18bd-42ac-b42f-e10513c04eee | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.249.209 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | c9891f69-0ba6-4e72-a83f-130ba0476a98 | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.249.201 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 3cf5d4e2-ab4b-483d-a44a-3f5e0daa6a6f | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.143.174; osm-ext=172.21.249.57 | ubuntu18.04 | simple_requires-1-1-flv | | d4a66065-a2bb-487e-a7b2-a996a2df3b06 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.143.53; osm-ext=172.21.248.203 | ubuntu18.04 | simple_requires-1-1-flv | | 17269799-2e7d-4fdc-8838-67173120b5d4 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.143.212; osm-ext=172.21.248.79 | ubuntu18.04 | simple_requires-1-1-flv | | 40d2072c-7913-47c5-8ba9-b9350f07fb08 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | ced9ab81-ba3d-4775-b581-937f332102c9 | 2024-04-03T02:18:53 | BUILDING | INSTANTIATING (edfc84a3-4f09-491b-95b1-02ad73bece33) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | ced9ab81-ba3d-4775-b581-937f332102c9 | 2024-04-03T02:18:53 | BUILDING | INSTANTIATING (edfc84a3-4f09-491b-95b1-02ad73bece33) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | f58dd4f1-18bd-42ac-b42f-e10513c04eee | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.249.209 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | c9891f69-0ba6-4e72-a83f-130ba0476a98 | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.249.201 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 3cf5d4e2-ab4b-483d-a44a-3f5e0daa6a6f | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.143.174; osm-ext=172.21.249.57 | ubuntu18.04 | simple_requires-1-1-flv | | d4a66065-a2bb-487e-a7b2-a996a2df3b06 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.143.53; osm-ext=172.21.248.203 | ubuntu18.04 | simple_requires-1-1-flv | | 17269799-2e7d-4fdc-8838-67173120b5d4 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.143.212; osm-ext=172.21.248.79 | ubuntu18.04 | simple_requires-1-1-flv | | 40d2072c-7913-47c5-8ba9-b9350f07fb08 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | ced9ab81-ba3d-4775-b581-937f332102c9 | 2024-04-03T02:18: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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | f58dd4f1-18bd-42ac-b42f-e10513c04eee | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.249.209 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | c9891f69-0ba6-4e72-a83f-130ba0476a98 | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.249.201 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 3cf5d4e2-ab4b-483d-a44a-3f5e0daa6a6f | heal_02-charm_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.143.174; osm-ext=172.21.249.57 | ubuntu18.04 | simple_requires-1-1-flv | | d4a66065-a2bb-487e-a7b2-a996a2df3b06 | heal_02-charm_vnf-mgmtVM-2 | ACTIVE | heal_02-datanet=192.168.143.53; osm-ext=172.21.248.203 | ubuntu18.04 | simple_requires-1-1-flv | | 17269799-2e7d-4fdc-8838-67173120b5d4 | heal_02-charm_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.143.212; osm-ext=172.21.248.79 | ubuntu18.04 | simple_requires-1-1-flv | | 40d2072c-7913-47c5-8ba9-b9350f07fb08 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.191 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | ced9ab81-ba3d-4775-b581-937f332102c9 | 2024-04-03T02:18: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} = ced9ab81-ba3d-4775-b581-937f332102c9 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = ced9ab81-ba3d-4775-b581-937f332102c9 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 ced9ab81-ba3d-4775-b581-937f332102c9 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.201 ${stdout} Logs the given message with the given level. 172.21.249.201 ${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.201 ${IP_MGMT_1} ${ip} Makes a variable available everywhere within the scope of the current suite. ${IP_MGMT_1} = 172.21.249.201 ${IP_MGMT_1} Logs the given message with the given level. 172.21.249.201 ${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 ced9ab81-ba3d-4775-b581-937f332102c9 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.209 ${stdout} Logs the given message with the given level. 172.21.249.209 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ip} = 172.21.249.209 ${IP_MGMT_2} ${ip} Makes a variable available everywhere within the scope of the current suite. ${IP_MGMT_2} = 172.21.249.209 ${IP_MGMT_2} Logs the given message with the given level. 172.21.249.209 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.249.201: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 Wed Apr 3 02:20:38 UTC 2024 System load: 0.85 Processes: 128 Usage of /: 14.0% of 9.52GB Users logged in: 0 Memory usage: 5% IPv4 address for ens3: 172.21.249.201 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:f0:97:4d brd ff:ff:ff:ff:ff:ff inet 172.21.249.201/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86329sec preferred_lft 86329sec inet6 fe80::f816:3eff:fef0:974d/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:21:1e:3d 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:fe21:1e3d/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.672 ms 64 bytes from 192.168.100.22: icmp_seq=2 ttl=64 time=0.199 ms 64 bytes from 192.168.100.22: icmp_seq=3 ttl=64 time=1.02 ms 64 bytes from 192.168.100.22: icmp_seq=4 ttl=64 time=0.187 ms 64 bytes from 192.168.100.22: icmp_seq=5 ttl=64 time=0.148 ms --- 192.168.100.22 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4048ms rtt min/avg/max/mdev = 0.148/0.445/1.019/0.345 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:f0:97:4d brd ff:ff:ff:ff:ff:ff inet 172.21.249.201/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86329sec preferred_lft 86329sec inet6 fe80::f816:3eff:fef0:974d/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:21:1e:3d 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:fe21:1e3d/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.672 ms 64 bytes from 192.168.100.22: icmp_seq=2 ttl=64 time=0.199 ms 64 bytes from 192.168.100.22: icmp_seq=3 ttl=64 time=1.02 ms 64 bytes from 192.168.100.22: icmp_seq=4 ttl=64 time=0.187 ms 64 bytes from 192.168.100.22: icmp_seq=5 ttl=64 time=0.148 ms --- 192.168.100.22 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4048ms rtt min/avg/max/mdev = 0.148/0.445/1.019/0.345 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.209: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 Wed Apr 3 02:20:44 UTC 2024 System load: 0.47 Processes: 127 Usage of /: 14.0% of 9.52GB Users logged in: 0 Memory usage: 5% IPv4 address for ens3: 172.21.249.209 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:aa:d1:fa brd ff:ff:ff:ff:ff:ff inet 172.21.249.209/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86327sec preferred_lft 86327sec inet6 fe80::f816:3eff:feaa:d1fa/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:f0:f8:fc 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:fef0:f8fc/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.142 ms 64 bytes from 192.168.100.11: icmp_seq=2 ttl=64 time=0.160 ms 64 bytes from 192.168.100.11: icmp_seq=3 ttl=64 time=0.231 ms 64 bytes from 192.168.100.11: icmp_seq=4 ttl=64 time=0.165 ms 64 bytes from 192.168.100.11: icmp_seq=5 ttl=64 time=0.174 ms --- 192.168.100.11 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4095ms rtt min/avg/max/mdev = 0.142/0.174/0.231/0.030 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:aa:d1:fa brd ff:ff:ff:ff:ff:ff inet 172.21.249.209/22 brd 172.21.251.255 scope global dynamic ens3 valid_lft 86327sec preferred_lft 86327sec inet6 fe80::f816:3eff:feaa:d1fa/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:f0:f8:fc 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:fef0:f8fc/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.142 ms 64 bytes from 192.168.100.11: icmp_seq=2 ttl=64 time=0.160 ms 64 bytes from 192.168.100.11: icmp_seq=3 ttl=64 time=0.231 ms 64 bytes from 192.168.100.11: icmp_seq=4 ttl=64 time=0.165 ms 64 bytes from 192.168.100.11: icmp_seq=5 ttl=64 time=0.174 ms --- 192.168.100.11 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4095ms rtt min/avg/max/mdev = 0.142/0.174/0.231/0.030 ms Check connectivity from the second VNF to the first VNF using ping. cluster_epa daily epa_04 regression ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete epa_04 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------+--------+-------------------------------------------------------+-------------+----------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+-------------------------------------------------------+-------------+----------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+-------------------------------------------------------+-------------+----------------------+ | f58dd4f1-18bd-42ac-b42f-e10513c04eee | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.249.209 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | c9891f69-0ba6-4e72-a83f-130ba0476a98 | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.249.201 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 epa_04 2>&1'. ${rc} = 0 ${stdout} = epa_04 ${rc},${stdout} Logs the given message with the given level. 0,epa_04 ${stdout} ${ns} Fails if objects are equal after converting them to strings. epa_04 == epa_04 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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 6b3a6769-a843-4728-b4e5-55bd48f85609 ${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} = 6b3a6769-a843-4728-b4e5-55bd48f85609 ${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 c5bf6158-6582-4704-969c-a7afeaa5ba82 ${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} = c5bf6158-6582-4704-969c-a7afeaa5ba82 ${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} = 4651 ${ns_name} SEPARATOR=_ ${NS_NAME_PREFIX} ${rand} Catenates the given items together and returns the resulted string. ${ns_name} = fail_01_4651 ${NS_NAME} Makes a variable available everywhere within the scope of the current suite. ${NS_NAME} = fail_01_4651 ${NS_NAME} Logs the given message with the given level. fail_01_4651 ${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_4651 --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} = c7ef9b70-8b07-4be2-9604-b496898d802d ${stdout} Logs the given message with the given level. c7ef9b70-8b07-4be2-9604-b496898d802d ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = c7ef9b70-8b07-4be2-9604-b496898d802d ${id} Logs the given message with the given level. c7ef9b70-8b07-4be2-9604-b496898d802d ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = c7ef9b70-8b07-4be2-9604-b496898d802d ${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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="fail_01_4651" 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_4651 | c7ef9b70-8b07-4be2-9604-b496898d802d | 2024-04-03T02:21:25 | BUILDING | INSTANTIATING (e621b43a-a7a7-4e95-b68d-44f9afed0e66) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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_4651 | c7ef9b70-8b07-4be2-9604-b496898d802d | 2024-04-03T02:21:25 | BUILDING | INSTANTIATING (e621b43a-a7a7-4e95-b68d-44f9afed0e66) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | 4cc62d19-017a-4a18-ad48-badd41a6b95f | fail_01_4651-vnf-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 5cbcb4bf-0374-4af7-a3a0-359f8423d611 | heal_03-charm_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 06609b29-e999-46e3-b894-d3eb5a1fe761 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.229.204; osm-ext=172.21.248.76 | ubuntu18.04 | simple_requires-1-1-flv | | adc8e2d9-3288-41ee-b5bf-ca94de41020a | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.4 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="fail_01_4651" 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_4651 | c7ef9b70-8b07-4be2-9604-b496898d802d | 2024-04-03T02:21:25 | BUILDING | INSTANTIATING (e621b43a-a7a7-4e95-b68d-44f9afed0e66) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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_4651 | c7ef9b70-8b07-4be2-9604-b496898d802d | 2024-04-03T02:21:25 | BUILDING | INSTANTIATING (e621b43a-a7a7-4e95-b68d-44f9afed0e66) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------+-------------+-------------------------+ | 4cc62d19-017a-4a18-ad48-badd41a6b95f | fail_01_4651-vnf-mgmtVM-0 | ACTIVE | fail_01_4651-internal=192.168.199.52; osm-ext=172.21.248.77 | ubuntu20.04 | simple_requires-1-1-flv | | 5cbcb4bf-0374-4af7-a3a0-359f8423d611 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.229.227; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 06609b29-e999-46e3-b894-d3eb5a1fe761 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.229.204; osm-ext=172.21.248.76 | ubuntu18.04 | simple_requires-1-1-flv | | adc8e2d9-3288-41ee-b5bf-ca94de41020a | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.4 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="fail_01_4651" 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_4651 | c7ef9b70-8b07-4be2-9604-b496898d802d | 2024-04-03T02:21:25 | BROKEN | IDLE (None) | Operation: INSTANTIATING.e621b43a-a7a7- | | | | | | | 4e95-b68d-44f9afed0e66, 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 175104 of 327680 ram (HTTP 403) | | | | | | | (Request-ID: req- | | | | | | | bbeddc80-3239-460e-8661-91fbca62b830) | +------------------+--------------------------------------+---------------------+----------+-------------------+-----------------------------------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after 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="c7ef9b70-8b07-4be2-9604-b496898d802d" | grep c7ef9b70-8b07-4be2-9604-b496898d802d | 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 c7ef9b70-8b07-4be2-9604-b496898d802d --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 175104 of 327680 ram (HTTP 403) (Request-ID: req-bbeddc80-3239-460e-8661-91fbca62b830)" ${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 175104 of 327680 ram (HTTP 403) (Request-ID: req-bbeddc80-3239-460e-8661-91fbca62b830)" ${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_4651 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 | +--------------------------------------+-----------------------------------------------+--------+-------------------------------------------------------------+-------------+-------------------------+ | 4cc62d19-017a-4a18-ad48-badd41a6b95f | fail_01_4651-vnf-mgmtVM-0 | ACTIVE | fail_01_4651-internal=192.168.199.52; osm-ext=172.21.248.77 | ubuntu20.04 | simple_requires-1-1-flv | | 5cbcb4bf-0374-4af7-a3a0-359f8423d611 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.229.227; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 06609b29-e999-46e3-b894-d3eb5a1fe761 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.229.204; osm-ext=172.21.248.76 | ubuntu18.04 | simple_requires-1-1-flv | | adc8e2d9-3288-41ee-b5bf-ca94de41020a | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.4 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 fail_01_4651 2>&1'. ${rc} = 0 ${stdout} = fail_01_4651 ${rc},${stdout} Logs the given message with the given level. 0,fail_01_4651 ${stdout} ${ns} Fails if objects are equal after converting them to strings. fail_01_4651 == fail_01_4651 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | 5cbcb4bf-0374-4af7-a3a0-359f8423d611 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.229.227; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 06609b29-e999-46e3-b894-d3eb5a1fe761 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.229.204; osm-ext=172.21.248.76 | ubuntu18.04 | simple_requires-1-1-flv | | adc8e2d9-3288-41ee-b5bf-ca94de41020a | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.4 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 fail_01_4651 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_4651 | 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 a74442c8-709d-4ee7-9bc1-dd0a37f2da4a ${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} = a74442c8-709d-4ee7-9bc1-dd0a37f2da4a ${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 3f911e1a-6a5a-490c-90d1-673a7e455bae ${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} = 3f911e1a-6a5a-490c-90d1-673a7e455bae ${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} = b545ceda-8cc2-4274-a37a-4fa86aec0aa2 ${stdout} Logs the given message with the given level. b545ceda-8cc2-4274-a37a-4fa86aec0aa2 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = b545ceda-8cc2-4274-a37a-4fa86aec0aa2 ${ns_id} Logs the given message with the given level. b545ceda-8cc2-4274-a37a-4fa86aec0aa2 ${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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | 5cbcb4bf-0374-4af7-a3a0-359f8423d611 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.229.227; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 06609b29-e999-46e3-b894-d3eb5a1fe761 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.229.204; osm-ext=172.21.248.76 | ubuntu18.04 | simple_requires-1-1-flv | | adc8e2d9-3288-41ee-b5bf-ca94de41020a | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.4 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | b545ceda-8cc2-4274-a37a-4fa86aec0aa2 | 2024-04-03T02:22:42 | BUILDING | INSTANTIATING (73b0d2ea-a8de-43ae-b985-98a6091aa6d5) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | b545ceda-8cc2-4274-a37a-4fa86aec0aa2 | 2024-04-03T02:22:42 | BUILDING | INSTANTIATING (73b0d2ea-a8de-43ae-b985-98a6091aa6d5) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | ac4741d8-96b1-4b80-a6cf-4391c25cac6a | hfbasic-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.172 | ubuntu20.04 | simple_requires-1-1-flv | | 5cbcb4bf-0374-4af7-a3a0-359f8423d611 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.229.227; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 06609b29-e999-46e3-b894-d3eb5a1fe761 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.229.204; osm-ext=172.21.248.76 | ubuntu18.04 | simple_requires-1-1-flv | | adc8e2d9-3288-41ee-b5bf-ca94de41020a | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.4 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | b545ceda-8cc2-4274-a37a-4fa86aec0aa2 | 2024-04-03T02:22: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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | ac4741d8-96b1-4b80-a6cf-4391c25cac6a | hfbasic-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.172 | ubuntu20.04 | simple_requires-1-1-flv | | 5cbcb4bf-0374-4af7-a3a0-359f8423d611 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.229.227; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 06609b29-e999-46e3-b894-d3eb5a1fe761 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.229.204; osm-ext=172.21.248.76 | ubuntu18.04 | simple_requires-1-1-flv | | adc8e2d9-3288-41ee-b5bf-ca94de41020a | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.4 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | b545ceda-8cc2-4274-a37a-4fa86aec0aa2 | 2024-04-03T02:22: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} = b545ceda-8cc2-4274-a37a-4fa86aec0aa2 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = b545ceda-8cc2-4274-a37a-4fa86aec0aa2 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 b545ceda-8cc2-4274-a37a-4fa86aec0aa2 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.172 ${stdout} Logs the given message with the given level. 172.21.249.172 ${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.172 ${ip_addr} Logs the given message with the given level. 172.21.249.172 ${VNF_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. ${VNF_IP_ADDR} = 172.21.249.172 Get the mgmt IP address of the VNF of the NS. azure cluster_main daily hackfest_basic regression sanity ${VNF_IP_ADDR} Ping a host several times during 30sec until it succeeds or raises a timeout. ${CONNECTIVITY_MAX_WAIT_TIME} ${CONNECTIVITY_POL_TIME} Test Ping Host ${host} Runs the specified keyword and retries if it fails. ${host} Run Ping Parameters: host: IP or name of the host Execution example: Ping Test ${host} ${rc} ${stdout} ping -c 2 -W 1 ${host} Runs the given command in the system and returns the RC and output. Running command 'ping -c 2 -W 1 172.21.249.172 2>&1'. ${rc} = 0 ${stdout} = PING 172.21.249.172 (172.21.249.172) 56(84) bytes of data. 64 bytes from 172.21.249.172: icmp_seq=1 ttl=63 time=2.84 ms 64 bytes from 172.21.249.172: icmp_seq=2 ttl=63 time=0.580 ms --- 172.21.249.17... ${stdout} Logs the given message with the given level. PING 172.21.249.172 (172.21.249.172) 56(84) bytes of data. 64 bytes from 172.21.249.172: icmp_seq=1 ttl=63 time=2.84 ms 64 bytes from 172.21.249.172: icmp_seq=2 ttl=63 time=0.580 ms --- 172.21.249.172 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1002ms rtt min/avg/max/mdev = 0.580/1.709/2.839/1.129 ms ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> Test that the mgmt IP address of the VNF is reachable with ping. azure cluster_main daily hackfest_basic regression sanity 30s Waiting ssh daemon to be up Pauses the test executed for the given time. Slept 30 seconds Waiting ssh daemon to be up ${VNF_IP_ADDR} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} Test the SSH connection to the host with the user and credentials passed as arguments. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.249.172: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 Wed Apr 3 02:23:54 UTC 2024 System load: 0.92 Processes: 106 Usage of /: 14.0% of 9.52GB Users logged in: 0 Memory usage: 20% IPv4 address for ens3: 172.21.249.172 Swap usage: 0% 1 update can be applied immediately. To see these additional updates run: apt list --upgradable The list of available updates is more than a week old. To check for new updates run: sudo apt update The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@hfbasic-vnf-hackfest-basic-vm-0:~$ hostname Executes ``command`` on the remote machine and returns its outputs. Executing command 'hostname'. Command exited with return code 0. Closes all open connections. Check that the VNF is accessible via SSH in its mgmt IP address. azure cluster_main daily hackfest_basic regression sanity ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete hfbasic 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | ac4741d8-96b1-4b80-a6cf-4391c25cac6a | hfbasic-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.249.172 | ubuntu20.04 | simple_requires-1-1-flv | | 5cbcb4bf-0374-4af7-a3a0-359f8423d611 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.229.227; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 06609b29-e999-46e3-b894-d3eb5a1fe761 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.229.204; osm-ext=172.21.248.76 | ubuntu18.04 | simple_requires-1-1-flv | | adc8e2d9-3288-41ee-b5bf-ca94de41020a | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.4 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 hfbasic 2>&1'. ${rc} = 0 ${stdout} = hfbasic ${rc},${stdout} Logs the given message with the given level. 0,hfbasic ${stdout} ${ns} Fails if objects are equal after converting them to strings. hfbasic == hfbasic ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | 5cbcb4bf-0374-4af7-a3a0-359f8423d611 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.229.227; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 06609b29-e999-46e3-b894-d3eb5a1fe761 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.229.204; osm-ext=172.21.248.76 | ubuntu18.04 | simple_requires-1-1-flv | | adc8e2d9-3288-41ee-b5bf-ca94de41020a | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.4 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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 d7e7b942-4476-4cd3-bbb8-45baf09b4e66 ${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} = d7e7b942-4476-4cd3-bbb8-45baf09b4e66 ${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 e51751fa-60c7-4b5f-a728-908aee0a4f7f ${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} = e51751fa-60c7-4b5f-a728-908aee0a4f7f ${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} = f80e7ba6-3dd2-417b-bd25-0f545b8479b0 ${stdout} Logs the given message with the given level. f80e7ba6-3dd2-417b-bd25-0f545b8479b0 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = f80e7ba6-3dd2-417b-bd25-0f545b8479b0 ${ns_id} Logs the given message with the given level. f80e7ba6-3dd2-417b-bd25-0f545b8479b0 ${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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | 5cbcb4bf-0374-4af7-a3a0-359f8423d611 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.229.227; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 06609b29-e999-46e3-b894-d3eb5a1fe761 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.229.204; osm-ext=172.21.248.76 | ubuntu18.04 | simple_requires-1-1-flv | | adc8e2d9-3288-41ee-b5bf-ca94de41020a | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.4 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | f80e7ba6-3dd2-417b-bd25-0f545b8479b0 | 2024-04-03T02:24:29 | BUILDING | INSTANTIATING (10e0c1c9-46c6-4e63-a35f-847b9d3ae456) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | f80e7ba6-3dd2-417b-bd25-0f545b8479b0 | 2024-04-03T02:24:29 | BUILDING | INSTANTIATING (10e0c1c9-46c6-4e63-a35f-847b9d3ae456) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------------------------+-------------+-------------------------+ | e830ed9c-fb7f-42c1-b824-b625af68d31b | hfcloudinit-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | d75019c8-dbaf-412b-9997-ffba64ce629e | hfcloudinit-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 93268cc8-5b0a-475a-81e4-424a30be8276 | hfcloudinit-vnf1-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.93.184; hfcloudinit-internal=192.168.217.254 | ubuntu20.04 | simple_requires-1-1-flv | | 80d3476a-92a0-4c18-990d-57adf1b8c987 | hfcloudinit-vnf1-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.217.99; osm-ext=172.21.249.20 | ubuntu20.04 | simple_requires-1-1-flv | | 5cbcb4bf-0374-4af7-a3a0-359f8423d611 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.229.227; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 06609b29-e999-46e3-b894-d3eb5a1fe761 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.229.204; osm-ext=172.21.248.76 | ubuntu18.04 | simple_requires-1-1-flv | | adc8e2d9-3288-41ee-b5bf-ca94de41020a | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.4 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | f80e7ba6-3dd2-417b-bd25-0f545b8479b0 | 2024-04-03T02:24:29 | BUILDING | INSTANTIATING (10e0c1c9-46c6-4e63-a35f-847b9d3ae456) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | f80e7ba6-3dd2-417b-bd25-0f545b8479b0 | 2024-04-03T02:24:29 | BUILDING | INSTANTIATING (10e0c1c9-46c6-4e63-a35f-847b9d3ae456) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------------------------+-------------+-------------------------+ | fdeacd49-f4c2-46d7-8c7c-88d006823f16 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.229.155; osm-ext=172.21.249.202 | ubuntu18.04 | simple_requires-1-1-flv | | e830ed9c-fb7f-42c1-b824-b625af68d31b | hfcloudinit-vnf2-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.93.10; hfcloudinit-internal=192.168.25.172 | ubuntu20.04 | simple_requires-1-1-flv | | d75019c8-dbaf-412b-9997-ffba64ce629e | hfcloudinit-vnf2-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.25.107; osm-ext=172.21.248.45 | ubuntu20.04 | simple_requires-1-1-flv | | 93268cc8-5b0a-475a-81e4-424a30be8276 | hfcloudinit-vnf1-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.93.184; hfcloudinit-internal=192.168.217.254 | ubuntu20.04 | simple_requires-1-1-flv | | 80d3476a-92a0-4c18-990d-57adf1b8c987 | hfcloudinit-vnf1-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.217.99; osm-ext=172.21.249.20 | ubuntu20.04 | simple_requires-1-1-flv | | 5cbcb4bf-0374-4af7-a3a0-359f8423d611 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.229.227; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 06609b29-e999-46e3-b894-d3eb5a1fe761 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.229.204; osm-ext=172.21.248.76 | ubuntu18.04 | simple_requires-1-1-flv | | adc8e2d9-3288-41ee-b5bf-ca94de41020a | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.4 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | f80e7ba6-3dd2-417b-bd25-0f545b8479b0 | 2024-04-03T02:24:29 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------------------------+-------------+--------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------------------------+-------------+-------------------------+ | fdeacd49-f4c2-46d7-8c7c-88d006823f16 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.229.155; osm-ext=172.21.249.202 | ubuntu18.04 | simple_requires-1-1-flv | | e830ed9c-fb7f-42c1-b824-b625af68d31b | hfcloudinit-vnf2-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.93.10; hfcloudinit-internal=192.168.25.172 | ubuntu20.04 | simple_requires-1-1-flv | | d75019c8-dbaf-412b-9997-ffba64ce629e | hfcloudinit-vnf2-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.25.107; osm-ext=172.21.248.45 | ubuntu20.04 | simple_requires-1-1-flv | | 93268cc8-5b0a-475a-81e4-424a30be8276 | hfcloudinit-vnf1-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.93.184; hfcloudinit-internal=192.168.217.254 | ubuntu20.04 | simple_requires-1-1-flv | | 80d3476a-92a0-4c18-990d-57adf1b8c987 | hfcloudinit-vnf1-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.217.99; osm-ext=172.21.249.20 | ubuntu20.04 | simple_requires-1-1-flv | | 5cbcb4bf-0374-4af7-a3a0-359f8423d611 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.229.227; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 06609b29-e999-46e3-b894-d3eb5a1fe761 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.229.204; osm-ext=172.21.248.76 | ubuntu18.04 | simple_requires-1-1-flv | | adc8e2d9-3288-41ee-b5bf-ca94de41020a | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.4 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | f80e7ba6-3dd2-417b-bd25-0f545b8479b0 | 2024-04-03T02:24: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} = f80e7ba6-3dd2-417b-bd25-0f545b8479b0 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = f80e7ba6-3dd2-417b-bd25-0f545b8479b0 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 f80e7ba6-3dd2-417b-bd25-0f545b8479b0 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.20 ${stdout} Logs the given message with the given level. 172.21.249.20 ${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.20 ${ip_addr} Logs the given message with the given level. 172.21.249.20 ${VNF_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. ${VNF_IP_ADDR} = 172.21.249.20 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.20: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 Wed Apr 3 02:26:13 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.20 Swap usage: 0% IPv4 address for ens4: 192.168.217.99 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.20: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 Wed Apr 3 02:26:15 UTC 2024 System load: 0.4 Processes: 104 Usage of /: 14.2% of 9.52GB Users logged in: 0 Memory usage: 21% IPv4 address for ens3: 172.21.249.20 Swap usage: 0% IPv4 address for ens4: 192.168.217.99 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: Wed Apr 3 02:26: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@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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------------------------+-------------+-------------------------+ | fdeacd49-f4c2-46d7-8c7c-88d006823f16 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.229.155; osm-ext=172.21.249.202 | ubuntu18.04 | simple_requires-1-1-flv | | e830ed9c-fb7f-42c1-b824-b625af68d31b | hfcloudinit-vnf2-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.93.10; hfcloudinit-internal=192.168.25.172 | ubuntu20.04 | simple_requires-1-1-flv | | d75019c8-dbaf-412b-9997-ffba64ce629e | hfcloudinit-vnf2-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.25.107; osm-ext=172.21.248.45 | ubuntu20.04 | simple_requires-1-1-flv | | 93268cc8-5b0a-475a-81e4-424a30be8276 | hfcloudinit-vnf1-dataVM-0 | ACTIVE | hfcloudinit-datanet=192.168.93.184; hfcloudinit-internal=192.168.217.254 | ubuntu20.04 | simple_requires-1-1-flv | | 80d3476a-92a0-4c18-990d-57adf1b8c987 | hfcloudinit-vnf1-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.217.99; osm-ext=172.21.249.20 | ubuntu20.04 | simple_requires-1-1-flv | | 5cbcb4bf-0374-4af7-a3a0-359f8423d611 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.229.227; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 06609b29-e999-46e3-b894-d3eb5a1fe761 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.229.204; osm-ext=172.21.248.76 | ubuntu18.04 | simple_requires-1-1-flv | | adc8e2d9-3288-41ee-b5bf-ca94de41020a | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.4 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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 | +--------------------------------------+-----------------------------------------------+--------+------------------------------------------------------------+-------------+-------------------------+ | fdeacd49-f4c2-46d7-8c7c-88d006823f16 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.229.155; osm-ext=172.21.249.202 | ubuntu18.04 | simple_requires-1-1-flv | | e830ed9c-fb7f-42c1-b824-b625af68d31b | hfcloudinit-vnf2-dataVM-0 | ACTIVE | hfcloudinit-internal=192.168.25.172 | ubuntu20.04 | simple_requires-1-1-flv | | d75019c8-dbaf-412b-9997-ffba64ce629e | hfcloudinit-vnf2-mgmtVM-0 | ACTIVE | hfcloudinit-internal=192.168.25.107; osm-ext=172.21.248.45 | ubuntu20.04 | simple_requires-1-1-flv | | 93268cc8-5b0a-475a-81e4-424a30be8276 | hfcloudinit-vnf1-dataVM-0 | ACTIVE | | ubuntu20.04 | simple_requires-1-1-flv | | 80d3476a-92a0-4c18-990d-57adf1b8c987 | hfcloudinit-vnf1-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.20 | ubuntu20.04 | simple_requires-1-1-flv | | 5cbcb4bf-0374-4af7-a3a0-359f8423d611 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.229.227; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 06609b29-e999-46e3-b894-d3eb5a1fe761 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.229.204; osm-ext=172.21.248.76 | ubuntu18.04 | simple_requires-1-1-flv | | adc8e2d9-3288-41ee-b5bf-ca94de41020a | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.4 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 hfcloudinit 2>&1'. ${rc} = 0 ${stdout} = hfcloudinit ${rc},${stdout} Logs the given message with the given level. 0,hfcloudinit ${stdout} ${ns} Fails if objects are equal after converting them to strings. hfcloudinit == hfcloudinit ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | ID... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | fdeacd49-f4c2-46d7-8c7c-88d006823f16 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.229.155; osm-ext=172.21.249.202 | ubuntu18.04 | simple_requires-1-1-flv | | 5cbcb4bf-0374-4af7-a3a0-359f8423d611 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.229.227; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 06609b29-e999-46e3-b894-d3eb5a1fe761 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.229.204; osm-ext=172.21.248.76 | ubuntu18.04 | simple_requires-1-1-flv | | adc8e2d9-3288-41ee-b5bf-ca94de41020a | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.4 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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 61e972c4-fd62-4035-bf06-12d5fd3ddf4e ${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} = 61e972c4-fd62-4035-bf06-12d5fd3ddf4e ${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 8550132a-2db6-44c4-871a-cebf126a7ff2 ${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} = 8550132a-2db6-44c4-871a-cebf126a7ff2 ${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} = 9c2bf4e8-3b34-4217-ad12-d4dcd101ba2a ${stdout} Logs the given message with the given level. 9c2bf4e8-3b34-4217-ad12-d4dcd101ba2a ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 9c2bf4e8-3b34-4217-ad12-d4dcd101ba2a ${ns_id} Logs the given message with the given level. 9c2bf4e8-3b34-4217-ad12-d4dcd101ba2a ${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 | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | fdeacd49-f4c2-46d7-8c7c-88d006823f16 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.229.155; osm-ext=172.21.249.202 | ubuntu18.04 | simple_requires-1-1-flv | | 5cbcb4bf-0374-4af7-a3a0-359f8423d611 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.229.227; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 06609b29-e999-46e3-b894-d3eb5a1fe761 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.229.204; osm-ext=172.21.248.76 | ubuntu18.04 | simple_requires-1-1-flv | | adc8e2d9-3288-41ee-b5bf-ca94de41020a | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.4 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 9c2bf4e8-3b34-4217-ad12-d4dcd101ba2a | 2024-04-03T02:27:09 | BUILDING | INSTANTIATING (230e5beb-692e-4b52-924a-9928acd65472) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | 9c2bf4e8-3b34-4217-ad12-d4dcd101ba2a | 2024-04-03T02:27:09 | BUILDING | INSTANTIATING (230e5beb-692e-4b52-924a-9928acd65472) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+-----------------------------------------------+--------+------------------------------------------------------------------------+-------------+-------------------------+ | fd7933a3-9205-484b-af80-b45560420adc | hfmultivdu-vnf2-dataVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 840eff52-06ea-4385-bf18-e5f2008b187c | hfmultivdu-vnf2-mgmtVM-0 | BUILD | | ubuntu20.04 | simple_requires-1-1-flv | | 0c51a5e4-37cb-415d-86c5-567ecdb9ebbb | hfmultivdu-vnf1-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.169.190; hfmultivdu-internal=192.168.135.57 | ubuntu20.04 | simple_requires-1-1-flv | | 10e8985d-37b6-4afe-9e8b-5cd4cb2bd7d8 | hfmultivdu-vnf1-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.135.151; osm-ext=172.21.249.40 | ubuntu20.04 | simple_requires-1-1-flv | | fdeacd49-f4c2-46d7-8c7c-88d006823f16 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.229.155; osm-ext=172.21.249.202 | ubuntu18.04 | simple_requires-1-1-flv | | 5cbcb4bf-0374-4af7-a3a0-359f8423d611 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.229.227; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 06609b29-e999-46e3-b894-d3eb5a1fe761 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.229.204; osm-ext=172.21.248.76 | ubuntu18.04 | simple_requires-1-1-flv | | adc8e2d9-3288-41ee-b5bf-ca94de41020a | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.4 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 9c2bf4e8-3b34-4217-ad12-d4dcd101ba2a | 2024-04-03T02:27:09 | BUILDING | INSTANTIATING (230e5beb-692e-4b52-924a-9928acd65472) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | 9c2bf4e8-3b34-4217-ad12-d4dcd101ba2a | 2024-04-03T02:27:09 | BUILDING | INSTANTIATING (230e5beb-692e-4b52-924a-9928acd65472) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+-----------------------------------------------+--------+------------------------------------------------------------------------+-------------+-------------------------+ | fd7933a3-9205-484b-af80-b45560420adc | hfmultivdu-vnf2-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.169.4; hfmultivdu-internal=192.168.35.12 | ubuntu20.04 | simple_requires-1-1-flv | | 840eff52-06ea-4385-bf18-e5f2008b187c | hfmultivdu-vnf2-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.35.184; osm-ext=172.21.248.84 | ubuntu20.04 | simple_requires-1-1-flv | | 0c51a5e4-37cb-415d-86c5-567ecdb9ebbb | hfmultivdu-vnf1-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.169.190; hfmultivdu-internal=192.168.135.57 | ubuntu20.04 | simple_requires-1-1-flv | | 10e8985d-37b6-4afe-9e8b-5cd4cb2bd7d8 | hfmultivdu-vnf1-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.135.151; osm-ext=172.21.249.40 | ubuntu20.04 | simple_requires-1-1-flv | | fdeacd49-f4c2-46d7-8c7c-88d006823f16 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.229.155; osm-ext=172.21.249.202 | ubuntu18.04 | simple_requires-1-1-flv | | 5cbcb4bf-0374-4af7-a3a0-359f8423d611 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.229.227; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 06609b29-e999-46e3-b894-d3eb5a1fe761 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.229.204; osm-ext=172.21.248.76 | ubuntu18.04 | simple_requires-1-1-flv | | adc8e2d9-3288-41ee-b5bf-ca94de41020a | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.4 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 9c2bf4e8-3b34-4217-ad12-d4dcd101ba2a | 2024-04-03T02:27:09 | 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 | +--------------------------------------+-----------------------------------------------+--------+------------------------------------------------------------------------+-------------+-------------------------+ | fd7933a3-9205-484b-af80-b45560420adc | hfmultivdu-vnf2-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.169.4; hfmultivdu-internal=192.168.35.12 | ubuntu20.04 | simple_requires-1-1-flv | | 840eff52-06ea-4385-bf18-e5f2008b187c | hfmultivdu-vnf2-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.35.184; osm-ext=172.21.248.84 | ubuntu20.04 | simple_requires-1-1-flv | | 0c51a5e4-37cb-415d-86c5-567ecdb9ebbb | hfmultivdu-vnf1-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.169.190; hfmultivdu-internal=192.168.135.57 | ubuntu20.04 | simple_requires-1-1-flv | | 10e8985d-37b6-4afe-9e8b-5cd4cb2bd7d8 | hfmultivdu-vnf1-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.135.151; osm-ext=172.21.249.40 | ubuntu20.04 | simple_requires-1-1-flv | | fdeacd49-f4c2-46d7-8c7c-88d006823f16 | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.229.155; osm-ext=172.21.249.202 | ubuntu18.04 | simple_requires-1-1-flv | | 5cbcb4bf-0374-4af7-a3a0-359f8423d611 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.229.227; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 06609b29-e999-46e3-b894-d3eb5a1fe761 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.229.204; osm-ext=172.21.248.76 | ubuntu18.04 | simple_requires-1-1-flv | | adc8e2d9-3288-41ee-b5bf-ca94de41020a | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.4 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 9c2bf4e8-3b34-4217-ad12-d4dcd101ba2a | 2024-04-03T02:27:09 | 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} = 9c2bf4e8-3b34-4217-ad12-d4dcd101ba2a ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 9c2bf4e8-3b34-4217-ad12-d4dcd101ba2a ${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 9c2bf4e8-3b34-4217-ad12-d4dcd101ba2a | 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_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.40 2>&1'. ${rc} = 0 ${stdout} = PING 172.21.249.40 (172.21.249.40) 56(84) bytes of data. 64 bytes from 172.21.249.40: icmp_seq=1 ttl=63 time=2.85 ms 64 bytes from 172.21.249.40: icmp_seq=2 ttl=63 time=0.887 ms --- 172.21.249.40 pin... ${stdout} Logs the given message with the given level. PING 172.21.249.40 (172.21.249.40) 56(84) bytes of data. 64 bytes from 172.21.249.40: icmp_seq=1 ttl=63 time=2.85 ms 64 bytes from 172.21.249.40: icmp_seq=2 ttl=63 time=0.887 ms --- 172.21.249.40 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1002ms rtt min/avg/max/mdev = 0.887/1.867/2.847/0.980 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.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 Wed Apr 3 02:29:13 UTC 2024 System load: 0.65 Processes: 105 Usage of /: 14.0% of 9.52GB Users logged in: 0 Memory usage: 21% IPv4 address for ens3: 172.21.249.40 Swap usage: 0% IPv4 address for ens4: 192.168.135.151 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 | +--------------------------------------+-----------------------------------------------+---------+------------------------------------------------------------------------+-------------+-------------------------+ | fd7933a3-9205-484b-af80-b45560420adc | hfmultivdu-vnf2-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.169.4; hfmultivdu-internal=192.168.35.12 | ubuntu20.04 | simple_requires-1-1-flv | | 840eff52-06ea-4385-bf18-e5f2008b187c | hfmultivdu-vnf2-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.35.184; osm-ext=172.21.248.84 | ubuntu20.04 | simple_requires-1-1-flv | | 0c51a5e4-37cb-415d-86c5-567ecdb9ebbb | hfmultivdu-vnf1-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.169.190; hfmultivdu-internal=192.168.135.57 | ubuntu20.04 | simple_requires-1-1-flv | | 10e8985d-37b6-4afe-9e8b-5cd4cb2bd7d8 | hfmultivdu-vnf1-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.135.151; osm-ext=172.21.249.40 | ubuntu20.04 | simple_requires-1-1-flv | | fdeacd49-f4c2-46d7-8c7c-88d006823f16 | heal_03-charm_vnf-mgmtVM-2 | SHUTOFF | heal_03-datanet=192.168.229.155; osm-ext=172.21.249.202 | ubuntu18.04 | simple_requires-1-1-flv | | 5cbcb4bf-0374-4af7-a3a0-359f8423d611 | heal_03-charm_vnf-mgmtVM-1 | SHUTOFF | heal_03-datanet=192.168.229.227; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 06609b29-e999-46e3-b894-d3eb5a1fe761 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.229.204; osm-ext=172.21.248.76 | ubuntu18.04 | simple_requires-1-1-flv | | adc8e2d9-3288-41ee-b5bf-ca94de41020a | heal_03-several_volumes_-several_volumes-VM-0 | SHUTOFF | osm-ext=172.21.248.4 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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 | +--------------------------------------+-----------------------------------------------+---------+-----------------------------------------------------------+-------------+-------------------------+ | fd7933a3-9205-484b-af80-b45560420adc | hfmultivdu-vnf2-dataVM-0 | ACTIVE | hfmultivdu-internal=192.168.35.12 | ubuntu20.04 | simple_requires-1-1-flv | | 840eff52-06ea-4385-bf18-e5f2008b187c | hfmultivdu-vnf2-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.35.184; osm-ext=172.21.248.84 | ubuntu20.04 | simple_requires-1-1-flv | | 0c51a5e4-37cb-415d-86c5-567ecdb9ebbb | hfmultivdu-vnf1-dataVM-0 | ACTIVE | | ubuntu20.04 | simple_requires-1-1-flv | | fdeacd49-f4c2-46d7-8c7c-88d006823f16 | heal_03-charm_vnf-mgmtVM-2 | SHUTOFF | heal_03-datanet=192.168.229.155; osm-ext=172.21.249.202 | ubuntu18.04 | simple_requires-1-1-flv | | 5cbcb4bf-0374-4af7-a3a0-359f8423d611 | heal_03-charm_vnf-mgmtVM-1 | SHUTOFF | heal_03-datanet=192.168.229.227; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | 06609b29-e999-46e3-b894-d3eb5a1fe761 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.229.204; osm-ext=172.21.248.76 | ubuntu18.04 | simple_requires-1-1-flv | | adc8e2d9-3288-41ee-b5bf-ca94de41020a | heal_03-several_volumes_-several_volumes-VM-0 | SHUTOFF | osm-ext=172.21.248.4 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | 29847b5b-99cf-49c0-b01c-10064a3178cc | heal_03-charm_vnf-mgmtVM-2 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 0da5b7a6-e8a7-4af1-9cf8-f0b4ae8bac86 | heal_03-charm_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | cee5ddf7-c4f2-4e17-ab20-2acbcff9c073 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.4 | ubuntu20.04 | several_volumes-VM-flv | | 06609b29-e999-46e3-b894-d3eb5a1fe761 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.229.204; osm-ext=172.21.248.76 | ubuntu18.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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 04fd1c07-b91a-44d4-9a68-35b60bdf42d4 ${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} = 04fd1c07-b91a-44d4-9a68-35b60bdf42d4 ${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 aef80a4a-7091-4a88-8710-5645abfd4f59 ${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} = aef80a4a-7091-4a88-8710-5645abfd4f59 ${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 0ee0cfd8-aca0-482d-9240-c1dcebb6625d ${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} = 0ee0cfd8-aca0-482d-9240-c1dcebb6625d ${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} = 7b62798b-1cf9-4480-92d1-abdb2eabc3b0 ${stdout} Logs the given message with the given level. 7b62798b-1cf9-4480-92d1-abdb2eabc3b0 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 7b62798b-1cf9-4480-92d1-abdb2eabc3b0 ${ns_id} Logs the given message with the given level. 7b62798b-1cf9-4480-92d1-abdb2eabc3b0 ${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 | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | 29847b5b-99cf-49c0-b01c-10064a3178cc | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.229.155; osm-ext=172.21.249.202 | ubuntu18.04 | simple_requires-1-1-flv | | 0da5b7a6-e8a7-4af1-9cf8-f0b4ae8bac86 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.229.227; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | cee5ddf7-c4f2-4e17-ab20-2acbcff9c073 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.4 | ubuntu20.04 | several_volumes-VM-flv | | 06609b29-e999-46e3-b894-d3eb5a1fe761 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.229.204; osm-ext=172.21.248.76 | ubuntu18.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 7b62798b-1cf9-4480-92d1-abdb2eabc3b0 | 2024-04-03T02:30:09 | BUILDING | INSTANTIATING (bbc53a75-c495-4495-b7e4-109d1d1aa0cd) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | 7b62798b-1cf9-4480-92d1-abdb2eabc3b0 | 2024-04-03T02:30:09 | BUILDING | INSTANTIATING (bbc53a75-c495-4495-b7e4-109d1d1aa0cd) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | ec5bf831-099f-4bda-affa-043382b40a36 | heal_01-manual_scale_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 763e8918-798d-43ee-851c-a3f2dbe8e51b | heal_01-manual_scale_vnf-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 47bd1094-e373-4f2a-88b1-54e5f3b2016c | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.55 | ubuntu20.04 | several_volumes-VM-flv | | 29847b5b-99cf-49c0-b01c-10064a3178cc | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.229.155; osm-ext=172.21.249.202 | ubuntu18.04 | simple_requires-1-1-flv | | 0da5b7a6-e8a7-4af1-9cf8-f0b4ae8bac86 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.229.227; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | cee5ddf7-c4f2-4e17-ab20-2acbcff9c073 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.4 | ubuntu20.04 | several_volumes-VM-flv | | 06609b29-e999-46e3-b894-d3eb5a1fe761 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.229.204; osm-ext=172.21.248.76 | ubuntu18.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 7b62798b-1cf9-4480-92d1-abdb2eabc3b0 | 2024-04-03T02:30:09 | BUILDING | INSTANTIATING (bbc53a75-c495-4495-b7e4-109d1d1aa0cd) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | 7b62798b-1cf9-4480-92d1-abdb2eabc3b0 | 2024-04-03T02:30:09 | BUILDING | INSTANTIATING (bbc53a75-c495-4495-b7e4-109d1d1aa0cd) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | ec5bf831-099f-4bda-affa-043382b40a36 | heal_01-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.217.102; osm-ext=172.21.249.103 | ubuntu18.04 | simple_requires-1-1-flv | | 763e8918-798d-43ee-851c-a3f2dbe8e51b | heal_01-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.217.92; osm-ext=172.21.248.30 | ubuntu18.04 | simple_requires-1-1-flv | | 47bd1094-e373-4f2a-88b1-54e5f3b2016c | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.55 | ubuntu20.04 | several_volumes-VM-flv | | 29847b5b-99cf-49c0-b01c-10064a3178cc | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.229.155; osm-ext=172.21.249.202 | ubuntu18.04 | simple_requires-1-1-flv | | 0da5b7a6-e8a7-4af1-9cf8-f0b4ae8bac86 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.229.227; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | cee5ddf7-c4f2-4e17-ab20-2acbcff9c073 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.4 | ubuntu20.04 | several_volumes-VM-flv | | 06609b29-e999-46e3-b894-d3eb5a1fe761 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.229.204; osm-ext=172.21.248.76 | ubuntu18.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 7b62798b-1cf9-4480-92d1-abdb2eabc3b0 | 2024-04-03T02:30:09 | 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 | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | ec5bf831-099f-4bda-affa-043382b40a36 | heal_01-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.217.102; osm-ext=172.21.249.103 | ubuntu18.04 | simple_requires-1-1-flv | | 763e8918-798d-43ee-851c-a3f2dbe8e51b | heal_01-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.217.92; osm-ext=172.21.248.30 | ubuntu18.04 | simple_requires-1-1-flv | | 47bd1094-e373-4f2a-88b1-54e5f3b2016c | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.55 | ubuntu20.04 | several_volumes-VM-flv | | 29847b5b-99cf-49c0-b01c-10064a3178cc | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.229.155; osm-ext=172.21.249.202 | ubuntu18.04 | simple_requires-1-1-flv | | 0da5b7a6-e8a7-4af1-9cf8-f0b4ae8bac86 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.229.227; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | cee5ddf7-c4f2-4e17-ab20-2acbcff9c073 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.4 | ubuntu20.04 | several_volumes-VM-flv | | 06609b29-e999-46e3-b894-d3eb5a1fe761 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.229.204; osm-ext=172.21.248.76 | ubuntu18.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 7b62798b-1cf9-4480-92d1-abdb2eabc3b0 | 2024-04-03T02:30:09 | 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} = 7b62798b-1cf9-4480-92d1-abdb2eabc3b0 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 7b62798b-1cf9-4480-92d1-abdb2eabc3b0 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} = 7b62798b-1cf9-4480-92d1-abdb2eabc3b0 ${stdout} Logs the given message with the given level. 7b62798b-1cf9-4480-92d1-abdb2eabc3b0 ${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} = 7b62798b-1cf9-4480-92d1-abdb2eabc3b0 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 7b62798b-1cf9-4480-92d1-abdb2eabc3b0 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 7b62798b-1cf9-4480-92d1-abdb2eabc3b0 | grep 7b62798b-1cf9-4480-92d1-abdb2eabc3b0 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 8fd0e336-df8e-4137-af01-82138dbda671 c1075b40-3171-4edd-8f66-d4f15227deda ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 8fd0e336-df8e-4137-af01-82138dbda671 | c1075b40-3171-4edd-8f66-d4f15227deda ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List length is 2 and it contains following items: 0: 8fd0e336-df8e-4137-af01-82138dbda671 1: c1075b40-3171-4edd-8f66-d4f15227deda @{vnf_list} @{vnf_id_list} = [ 8fd0e336-df8e-4137-af01-82138dbda671 | c1075b40-3171-4edd-8f66-d4f15227deda ] ${vnf_id_list} Logs the given message with the given level. ['8fd0e336-df8e-4137-af01-82138dbda671', 'c1075b40-3171-4edd-8f66-d4f15227deda'] ${vnf_id} @{vnf_id_list} 8fd0e336-df8e-4137-af01-82138dbda671 ${vnf_id} Logs the given message with the given level. 8fd0e336-df8e-4137-af01-82138dbda671 ${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 8fd0e336-df8e-4137-af01-82138dbda671 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 47bd1094-e373-4f2a-88b1-54e5f3b2016c ${stdout} Logs the given message with the given level. 47bd1094-e373-4f2a-88b1-54e5f3b2016c ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 47bd1094-e373-4f2a-88b1-54e5f3b2016c @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ 47bd1094-e373-4f2a-88b1-54e5f3b2016c ] ${VIM_VDUS} @{vdu_ids} Adds ``values`` to the end of ``list``. c1075b40-3171-4edd-8f66-d4f15227deda ${vnf_id} Logs the given message with the given level. c1075b40-3171-4edd-8f66-d4f15227deda ${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 c1075b40-3171-4edd-8f66-d4f15227deda --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 763e8918-798d-43ee-851c-a3f2dbe8e51b ec5bf831-099f-4bda-affa-043382b40a36 ${stdout} Logs the given message with the given level. 763e8918-798d-43ee-851c-a3f2dbe8e51b ec5bf831-099f-4bda-affa-043382b40a36 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 763e8918-798d-43ee-851c-a3f2dbe8e51b ec5bf831-099f-4bda-affa-043382b40a36 @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ 763e8918-798d-43ee-851c-a3f2dbe8e51b | ec5bf831-099f-4bda-affa-043382b40a36 ] ${VIM_VDUS} @{vdu_ids} Adds ``values`` to the end of ``list``. ${vdu_id} @{VIM_VDUS} 47bd1094-e373-4f2a-88b1-54e5f3b2016c ${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 47bd1094-e373-4f2a-88b1-54e5f3b2016c -c volumes_attached -f value 2>&1'. ${rc} = 0 ${stdout} = [{'device': None, 'id': '0b662db7-f182-4130-a125-8ca268cb9ab7', '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': '0b662db7-f182-4130-a125-8ca268cb9ab7', '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': '0b662db7-f182-4130-a125-8ca268cb9ab7', '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} = ['0b662db7-f182-4130-a125-8ca268cb9ab7'] ${VIM_VOLUMES} ${match}[0] Adds ``values`` to the end of ``list``. 763e8918-798d-43ee-851c-a3f2dbe8e51b ${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 763e8918-798d-43ee-851c-a3f2dbe8e51b -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``. ec5bf831-099f-4bda-affa-043382b40a36 ${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 ec5bf831-099f-4bda-affa-043382b40a36 -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. 47bd1094-e373-4f2a-88b1-54e5f3b2016c 763e8918-798d-43ee-851c-a3f2dbe8e51b ec5bf831-099f-4bda-affa-043382b40a36 @{VIM_VOLUMES} Logs the given messages as separate entries using the INFO level. 0b662db7-f182-4130-a125-8ca268cb9ab7 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 7b62798b-1cf9-4480-92d1-abdb2eabc3b0 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.55 ${stdout} Logs the given message with the given level. 172.21.248.55 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ip_addr} = 172.21.248.55 ${ip_addr} Logs the given message with the given level. 172.21.248.55 ${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.55 ${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 7b62798b-1cf9-4480-92d1-abdb2eabc3b0 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = 8fd0e336-df8e-4137-af01-82138dbda671 ${stdout} Logs the given message with the given level. 8fd0e336-df8e-4137-af01-82138dbda671 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${vnf_id} = 8fd0e336-df8e-4137-af01-82138dbda671 ${VNF_VOLUMES_ID} ${vnf_id} Makes a variable available everywhere within the scope of the current suite. ${VNF_VOLUMES_ID} = 8fd0e336-df8e-4137-af01-82138dbda671 ${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 8fd0e336-df8e-4137-af01-82138dbda671 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 47bd1094-e373-4f2a-88b1-54e5f3b2016c ${stdout} Logs the given message with the given level. 47bd1094-e373-4f2a-88b1-54e5f3b2016c ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 47bd1094-e373-4f2a-88b1-54e5f3b2016c ${VDU_VOLUMES_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${VDU_VOLUMES_ID} = 47bd1094-e373-4f2a-88b1-54e5f3b2016c ${VDU_VOLUMES_ID} Logs the given message with the given level. 47bd1094-e373-4f2a-88b1-54e5f3b2016c @{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 8fd0e336-df8e-4137-af01-82138dbda671 --literal | yq -r '.vdur[].interfaces[]."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.55 ${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.55 ] @{ip} @{VOLUMES_IP_LIST} = [ 172.21.248.55 ] @{VOLUMES_IP_LIST} @{VOLUMES_IP_LIST} Makes a variable available everywhere within the scope of the current suite. @{VOLUMES_IP_LIST} = [ 172.21.248.55 ] @{VOLUMES_IP_LIST} Logs the given message with the given level. 172.21.248.55 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 47bd1094-e373-4f2a-88b1-54e5f3b2016c -c volumes_attached -f value 2>&1'. ${rc} = 0 ${stdout} = [{'device': None, 'id': '0b662db7-f182-4130-a125-8ca268cb9ab7', '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': '0b662db7-f182-4130-a125-8ca268cb9ab7', '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': '0b662db7-f182-4130-a125-8ca268cb9ab7', '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} = ['0b662db7-f182-4130-a125-8ca268cb9ab7'] ${VOLUME_ID} ${match}[0] Makes a variable available everywhere within the scope of the current suite. ${VOLUME_ID} = 0b662db7-f182-4130-a125-8ca268cb9ab7 Get number of volumes from the VNF descriptor and get the attached volumes from the VDU instance. cluster_heal daily heal_01 regression ${VNF_VOLUMES_IP_ADDR} msg=VNF is not available Fails unless the given variable exists within the current scope. 20 seconds Wait for SSH daemon to be up Pauses the test executed for the given time. Slept 20 seconds Wait for SSH daemon to be up ${stdout} ${VNF_VOLUMES_IP_ADDR} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} sudo lsblk -l Execute via SSH a command in a remote host and, if the command succeeds, return the output. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.248.55: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 Wed Apr 3 02:32:04 UTC 2024 System load: 0.66 Processes: 104 Usage of /: 14.0% of 9.52GB Users logged in: 0 Memory usage: 21% IPv4 address for ens3: 172.21.248.55 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 47bd1094-e373-4f2a-88b1-54e5f3b2016c 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 7b62798b-1cf9-4480-92d1-abdb2eabc3b0 --vnf 8fd0e336-df8e-4137-af01-82138dbda671 --cause "Heal VM of volumes_vnf" --vdu several_volumes-VM 2>&1'. ${rc} = 0 ${stdout} = c42fd0df-720d-4b62-a399-0fc56854e21c ${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 c42fd0df-720d-4b62-a399-0fc56854e21c --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 c42fd0df-720d-4b62-a399-0fc56854e21c ${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 c42fd0df-720d-4b62-a399-0fc56854e21c --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 c42fd0df-720d-4b62-a399-0fc56854e21c ${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 c42fd0df-720d-4b62-a399-0fc56854e21c --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 c42fd0df-720d-4b62-a399-0fc56854e21c --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 8fd0e336-df8e-4137-af01-82138dbda671 --literal | yq -r '.vdur[].interfaces[]."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.55 ${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.55 ] @{ip} @{ip_list} = [ 172.21.248.55 ] @{ip_list} Logs the given message with the given level. 172.21.248.55 ${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 8fd0e336-df8e-4137-af01-82138dbda671 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = b87a85f1-b7e4-4dbc-a565-67113516e585 ${stdout} Logs the given message with the given level. b87a85f1-b7e4-4dbc-a565-67113516e585 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = b87a85f1-b7e4-4dbc-a565-67113516e585 ${id} Logs the given message with the given level. b87a85f1-b7e4-4dbc-a565-67113516e585 ${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 b87a85f1-b7e4-4dbc-a565-67113516e585 -c volumes_attached -f value 2>&1'. ${rc} = 0 ${stdout} = [{'device': None, 'id': '0b662db7-f182-4130-a125-8ca268cb9ab7', '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': '0b662db7-f182-4130-a125-8ca268cb9ab7', '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': '0b662db7-f182-4130-a125-8ca268cb9ab7', '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} = ['0b662db7-f182-4130-a125-8ca268cb9ab7'] ${match}[0] ${VOLUME_ID} Volume id has changed after healing Fails if the given objects are unequal. 30 seconds Wait for SSH daemon to be up Pauses the test executed for the given time. Slept 30 seconds Wait for SSH daemon to be up ${stdout} ${VNF_VOLUMES_IP_ADDR} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} sudo lsblk -l Execute via SSH a command in a remote host and, if the command succeeds, return the output. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.248.55: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 Wed Apr 3 02:33:39 UTC 2024 System load: 0.99 Processes: 106 Usage of /: 14.0% of 9.52GB Users logged in: 0 Memory usage: 21% IPv4 address for ens3: 172.21.248.55 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 7b62798b-1cf9-4480-92d1-abdb2eabc3b0 | grep 7b62798b-1cf9-4480-92d1-abdb2eabc3b0 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 8fd0e336-df8e-4137-af01-82138dbda671 c1075b40-3171-4edd-8f66-d4f15227deda ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 8fd0e336-df8e-4137-af01-82138dbda671 | c1075b40-3171-4edd-8f66-d4f15227deda ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List length is 2 and it contains following items: 0: 8fd0e336-df8e-4137-af01-82138dbda671 1: c1075b40-3171-4edd-8f66-d4f15227deda @{vnf_list} @{vnf_id_list} = [ 8fd0e336-df8e-4137-af01-82138dbda671 | c1075b40-3171-4edd-8f66-d4f15227deda ] ${vnf_id} @{vnf_id_list} 8fd0e336-df8e-4137-af01-82138dbda671 ${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 8fd0e336-df8e-4137-af01-82138dbda671 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = b87a85f1-b7e4-4dbc-a565-67113516e585 ${stdout} Logs the given message with the given level. b87a85f1-b7e4-4dbc-a565-67113516e585 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = b87a85f1-b7e4-4dbc-a565-67113516e585 @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ b87a85f1-b7e4-4dbc-a565-67113516e585 ] ${vdu_updated} @{vdu_ids} Adds ``values`` to the end of ``list``. ${id} @{vdu_ids} b87a85f1-b7e4-4dbc-a565-67113516e585 ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. c1075b40-3171-4edd-8f66-d4f15227deda ${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 c1075b40-3171-4edd-8f66-d4f15227deda --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 763e8918-798d-43ee-851c-a3f2dbe8e51b ec5bf831-099f-4bda-affa-043382b40a36 ${stdout} Logs the given message with the given level. 763e8918-798d-43ee-851c-a3f2dbe8e51b ec5bf831-099f-4bda-affa-043382b40a36 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 763e8918-798d-43ee-851c-a3f2dbe8e51b ec5bf831-099f-4bda-affa-043382b40a36 @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ 763e8918-798d-43ee-851c-a3f2dbe8e51b | ec5bf831-099f-4bda-affa-043382b40a36 ] ${vdu_updated} @{vdu_ids} Adds ``values`` to the end of ``list``. ${id} @{vdu_ids} 763e8918-798d-43ee-851c-a3f2dbe8e51b ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. ec5bf831-099f-4bda-affa-043382b40a36 ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. ${vdu_id} @{vdu_updated} b87a85f1-b7e4-4dbc-a565-67113516e585 ${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 b87a85f1-b7e4-4dbc-a565-67113516e585 -c volumes_attached -f value 2>&1'. ${rc} = 0 ${stdout} = [{'device': None, 'id': '0b662db7-f182-4130-a125-8ca268cb9ab7', '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': '0b662db7-f182-4130-a125-8ca268cb9ab7', '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': '0b662db7-f182-4130-a125-8ca268cb9ab7', '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} = ['0b662db7-f182-4130-a125-8ca268cb9ab7'] ${VIM_VOLUMES} ${match}[0] Adds ``values`` to the end of ``list``. 763e8918-798d-43ee-851c-a3f2dbe8e51b ${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 763e8918-798d-43ee-851c-a3f2dbe8e51b -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``. ec5bf831-099f-4bda-affa-043382b40a36 ${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 ec5bf831-099f-4bda-affa-043382b40a36 -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. 47bd1094-e373-4f2a-88b1-54e5f3b2016c 763e8918-798d-43ee-851c-a3f2dbe8e51b ec5bf831-099f-4bda-affa-043382b40a36 b87a85f1-b7e4-4dbc-a565-67113516e585 @{VIM_VOLUMES} Logs the given messages as separate entries using the INFO level. 0b662db7-f182-4130-a125-8ca268cb9ab7 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} = +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | ID... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | b87a85f1-b7e4-4dbc-a565-67113516e585 | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.55 | ubuntu20.04 | several_volumes-VM-flv | | ec5bf831-099f-4bda-affa-043382b40a36 | heal_01-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.217.102; osm-ext=172.21.249.103 | ubuntu18.04 | simple_requires-1-1-flv | | 763e8918-798d-43ee-851c-a3f2dbe8e51b | heal_01-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.217.92; osm-ext=172.21.248.30 | ubuntu18.04 | simple_requires-1-1-flv | | 29847b5b-99cf-49c0-b01c-10064a3178cc | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.229.155; osm-ext=172.21.249.202 | ubuntu18.04 | simple_requires-1-1-flv | | 0da5b7a6-e8a7-4af1-9cf8-f0b4ae8bac86 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.229.227; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | cee5ddf7-c4f2-4e17-ab20-2acbcff9c073 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.4 | ubuntu20.04 | several_volumes-VM-flv | | 06609b29-e999-46e3-b894-d3eb5a1fe761 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.229.204; osm-ext=172.21.248.76 | ubuntu18.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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} = +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | ID... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | 29847b5b-99cf-49c0-b01c-10064a3178cc | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.229.155; osm-ext=172.21.249.202 | ubuntu18.04 | simple_requires-1-1-flv | | 0da5b7a6-e8a7-4af1-9cf8-f0b4ae8bac86 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.229.227; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | cee5ddf7-c4f2-4e17-ab20-2acbcff9c073 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.4 | ubuntu20.04 | several_volumes-VM-flv | | 06609b29-e999-46e3-b894-d3eb5a1fe761 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.229.204; osm-ext=172.21.248.76 | ubuntu18.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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} = +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | ID... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | 29847b5b-99cf-49c0-b01c-10064a3178cc | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.229.155; osm-ext=172.21.249.202 | ubuntu18.04 | simple_requires-1-1-flv | | 0da5b7a6-e8a7-4af1-9cf8-f0b4ae8bac86 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.229.227; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | cee5ddf7-c4f2-4e17-ab20-2acbcff9c073 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.4 | ubuntu20.04 | several_volumes-VM-flv | | 06609b29-e999-46e3-b894-d3eb5a1fe761 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.229.204; osm-ext=172.21.248.76 | ubuntu18.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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} 0b662db7-f182-4130-a125-8ca268cb9ab7 Checking if volume ${vol_id} is still in VIM Logs the given message with the given level. Checking if volume 0b662db7-f182-4130-a125-8ca268cb9ab7 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 0b662db7-f182-4130-a125-8ca268cb9ab7 | 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} 47bd1094-e373-4f2a-88b1-54e5f3b2016c Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 47bd1094-e373-4f2a-88b1-54e5f3b2016c 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 47bd1094-e373-4f2a-88b1-54e5f3b2016c -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 47bd1094-e373-4f2a-88b1-54e5f3b2016c ${stdout} Logs the given message with the given level. No Server found for 47bd1094-e373-4f2a-88b1-54e5f3b2016c ${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. 763e8918-798d-43ee-851c-a3f2dbe8e51b Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 763e8918-798d-43ee-851c-a3f2dbe8e51b 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 763e8918-798d-43ee-851c-a3f2dbe8e51b -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 763e8918-798d-43ee-851c-a3f2dbe8e51b ${stdout} Logs the given message with the given level. No Server found for 763e8918-798d-43ee-851c-a3f2dbe8e51b ${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. ec5bf831-099f-4bda-affa-043382b40a36 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server ec5bf831-099f-4bda-affa-043382b40a36 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 ec5bf831-099f-4bda-affa-043382b40a36 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for ec5bf831-099f-4bda-affa-043382b40a36 ${stdout} Logs the given message with the given level. No Server found for ec5bf831-099f-4bda-affa-043382b40a36 ${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. b87a85f1-b7e4-4dbc-a565-67113516e585 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server b87a85f1-b7e4-4dbc-a565-67113516e585 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 b87a85f1-b7e4-4dbc-a565-67113516e585 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for b87a85f1-b7e4-4dbc-a565-67113516e585 ${stdout} Logs the given message with the given level. No Server found for b87a85f1-b7e4-4dbc-a565-67113516e585 ${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 17ccdd91-506a-4364-8669-e71d04064a24 ${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} = 17ccdd91-506a-4364-8669-e71d04064a24 ${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 777ad74d-79da-4726-a926-51d3e903d58c ${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} = 777ad74d-79da-4726-a926-51d3e903d58c ${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 b96187ac-e8ed-4c1e-9197-9de3c330872d ${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} = b96187ac-e8ed-4c1e-9197-9de3c330872d ${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} = 957285 ${flavor_name} SEPARATOR=_ ${FLAVOR_NAME_PREFIX} ${rand} Catenates the given items together and returns the resulted string. ${flavor_name} = osm.heal02_957285 ${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_957285 --ram 1024 --disk 10 --vcpus 1 -c id -f value 2>&1'. ${rc} = 0 ${flavor_id} = 030df7db-8fd9-4413-a4ff-151e7f5039f7 ${flavor_id} Logs the given message with the given level. 030df7db-8fd9-4413-a4ff-151e7f5039f7 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${flavor_id} ${id} = 030df7db-8fd9-4413-a4ff-151e7f5039f7 ${FLAVOR_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${FLAVOR_ID} = 030df7db-8fd9-4413-a4ff-151e7f5039f7 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: 030df7db-8fd9-4413-a4ff-151e7f5039f7}]}] } ${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: 030df7db-8fd9-4413-a4ff-151e7f5039f7}]}] }' ${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: 030df7db-8fd9-4413-a4ff-151e7f5039f7}]}] }' --ssh_keys /root/.ssh/id_rsa.pub 2>&1'. ${rc} = 0 ${stdout} = 3b369bde-64a1-4641-8a01-b91ef8818501 ${stdout} Logs the given message with the given level. 3b369bde-64a1-4641-8a01-b91ef8818501 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 3b369bde-64a1-4641-8a01-b91ef8818501 ${ns_id} Logs the given message with the given level. 3b369bde-64a1-4641-8a01-b91ef8818501 ${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 | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | 29847b5b-99cf-49c0-b01c-10064a3178cc | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.229.155; osm-ext=172.21.249.202 | ubuntu18.04 | simple_requires-1-1-flv | | 0da5b7a6-e8a7-4af1-9cf8-f0b4ae8bac86 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.229.227; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | cee5ddf7-c4f2-4e17-ab20-2acbcff9c073 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.4 | ubuntu20.04 | several_volumes-VM-flv | | 06609b29-e999-46e3-b894-d3eb5a1fe761 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.229.204; osm-ext=172.21.248.76 | ubuntu18.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 3b369bde-64a1-4641-8a01-b91ef8818501 | 2024-04-03T02:34:55 | BUILDING | INSTANTIATING (f4592a53-b17b-4aac-82db-bc570d60d8f4) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | 3b369bde-64a1-4641-8a01-b91ef8818501 | 2024-04-03T02:34:55 | BUILDING | INSTANTIATING (f4592a53-b17b-4aac-82db-bc570d60d8f4) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | 6a2a7a49-eca4-4940-bf98-7b475727f261 | heal_02-manual_scale_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | osm.heal02_957285 | | 3d869f54-f82d-4b42-a4ad-07103ea7cf28 | heal_02-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.252.103; osm-ext=172.21.249.115 | ubuntu18.04 | osm.heal02_957285 | | 4fdc36bf-a90f-40ae-8c9d-f418a275c472 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.88 | ubuntu20.04 | several_volumes-VM-flv | | 29847b5b-99cf-49c0-b01c-10064a3178cc | heal_03-charm_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.229.155; osm-ext=172.21.249.202 | ubuntu18.04 | simple_requires-1-1-flv | | 0da5b7a6-e8a7-4af1-9cf8-f0b4ae8bac86 | heal_03-charm_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.229.227; osm-ext=172.21.248.44 | ubuntu18.04 | simple_requires-1-1-flv | | cee5ddf7-c4f2-4e17-ab20-2acbcff9c073 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.4 | ubuntu20.04 | several_volumes-VM-flv | | 06609b29-e999-46e3-b894-d3eb5a1fe761 | heal_03-charm_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.229.204; osm-ext=172.21.248.76 | ubuntu18.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 3b369bde-64a1-4641-8a01-b91ef8818501 | 2024-04-03T02:34:55 | BUILDING | INSTANTIATING (f4592a53-b17b-4aac-82db-bc570d60d8f4) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | 3b369bde-64a1-4641-8a01-b91ef8818501 | 2024-04-03T02:34:55 | BUILDING | INSTANTIATING (f4592a53-b17b-4aac-82db-bc570d60d8f4) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+------------------------+ | 6a2a7a49-eca4-4940-bf98-7b475727f261 | heal_02-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.252.215; osm-ext=172.21.249.107 | ubuntu18.04 | osm.heal02_957285 | | 3d869f54-f82d-4b42-a4ad-07103ea7cf28 | heal_02-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.252.103; osm-ext=172.21.249.115 | ubuntu18.04 | osm.heal02_957285 | | 4fdc36bf-a90f-40ae-8c9d-f418a275c472 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.88 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 3b369bde-64a1-4641-8a01-b91ef8818501 | 2024-04-03T02:34:55 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+------------------------+ | 6a2a7a49-eca4-4940-bf98-7b475727f261 | heal_02-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_02-datanet=192.168.252.215; osm-ext=172.21.249.107 | ubuntu18.04 | osm.heal02_957285 | | 3d869f54-f82d-4b42-a4ad-07103ea7cf28 | heal_02-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_02-datanet=192.168.252.103; osm-ext=172.21.249.115 | ubuntu18.04 | osm.heal02_957285 | | 4fdc36bf-a90f-40ae-8c9d-f418a275c472 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.88 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 3b369bde-64a1-4641-8a01-b91ef8818501 | 2024-04-03T02:34:55 | READY | IDLE (None) | N/A | +------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} BROKEN Fails if ``container`` contains ``item`` one or more times. ${ns_id} ${id} = 3b369bde-64a1-4641-8a01-b91ef8818501 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 3b369bde-64a1-4641-8a01-b91ef8818501 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}': '030df7db-8fd9-4413-a4ff-151e7f503... ${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} = 3b369bde-64a1-4641-8a01-b91ef8818501 ${stdout} Logs the given message with the given level. 3b369bde-64a1-4641-8a01-b91ef8818501 ${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} = 3b369bde-64a1-4641-8a01-b91ef8818501 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 3b369bde-64a1-4641-8a01-b91ef8818501 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 3b369bde-64a1-4641-8a01-b91ef8818501 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = 9f69b495-7630-4bb4-bf21-ac517d36a1f1 ${stdout} Logs the given message with the given level. 9f69b495-7630-4bb4-bf21-ac517d36a1f1 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${vnf_id} = 9f69b495-7630-4bb4-bf21-ac517d36a1f1 ${VNF_MANUALSCALE_ID} ${vnf_id} Makes a variable available everywhere within the scope of the current suite. ${VNF_MANUALSCALE_ID} = 9f69b495-7630-4bb4-bf21-ac517d36a1f1 @{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 9f69b495-7630-4bb4-bf21-ac517d36a1f1 --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} = 06e74c0e-5340-4ca7-9296-6459c133db7e ${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 06e74c0e-5340-4ca7-9296-6459c133db7e --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 06e74c0e-5340-4ca7-9296-6459c133db7e ${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 06e74c0e-5340-4ca7-9296-6459c133db7e --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 06e74c0e-5340-4ca7-9296-6459c133db7e ${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 06e74c0e-5340-4ca7-9296-6459c133db7e --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 06e74c0e-5340-4ca7-9296-6459c133db7e --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 9f69b495-7630-4bb4-bf21-ac517d36a1f1 --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 3b369bde-64a1-4641-8a01-b91ef8818501 | grep 3b369bde-64a1-4641-8a01-b91ef8818501 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 2e569b81-1e4d-4514-8e6d-5d850d164cad 9f69b495-7630-4bb4-bf21-ac517d36a1f1 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 2e569b81-1e4d-4514-8e6d-5d850d164cad | 9f69b495-7630-4bb4-bf21-ac517d36a1f1 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List length is 2 and it contains following items: 0: 2e569b81-1e4d-4514-8e6d-5d850d164cad 1: 9f69b495-7630-4bb4-bf21-ac517d36a1f1 @{vnf_list} @{vnf_id_list} = [ 2e569b81-1e4d-4514-8e6d-5d850d164cad | 9f69b495-7630-4bb4-bf21-ac517d36a1f1 ] ${vnf_id_list} Logs the given message with the given level. ['2e569b81-1e4d-4514-8e6d-5d850d164cad', '9f69b495-7630-4bb4-bf21-ac517d36a1f1'] ${vnf_id} @{vnf_id_list} 2e569b81-1e4d-4514-8e6d-5d850d164cad ${vnf_id} Logs the given message with the given level. 2e569b81-1e4d-4514-8e6d-5d850d164cad ${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 2e569b81-1e4d-4514-8e6d-5d850d164cad --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 4fdc36bf-a90f-40ae-8c9d-f418a275c472 ${stdout} Logs the given message with the given level. 4fdc36bf-a90f-40ae-8c9d-f418a275c472 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 4fdc36bf-a90f-40ae-8c9d-f418a275c472 @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ 4fdc36bf-a90f-40ae-8c9d-f418a275c472 ] ${VIM_VDUS} @{vdu_ids} Adds ``values`` to the end of ``list``. 9f69b495-7630-4bb4-bf21-ac517d36a1f1 ${vnf_id} Logs the given message with the given level. 9f69b495-7630-4bb4-bf21-ac517d36a1f1 ${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 9f69b495-7630-4bb4-bf21-ac517d36a1f1 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 3d869f54-f82d-4b42-a4ad-07103ea7cf28 6a2a7a49-eca4-4940-bf98-7b475727f261 a654f12e-c260-4397-8fa3-1c77c7f04d6a ${stdout} Logs the given message with the given level. 3d869f54-f82d-4b42-a4ad-07103ea7cf28 6a2a7a49-eca4-4940-bf98-7b475727f261 a654f12e-c260-4397-8fa3-1c77c7f04d6a ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 3d869f54-f82d-4b42-a4ad-07103ea7cf28 6a2a7a49-eca4-4940-bf98-7b475727f261 a654f12e-c260-4397-8fa3-1c77c7f04d6a @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ 3d869f54-f82d-4b42-a4ad-07103ea7cf28 | 6a2a7a49-eca4-4940-bf98-7b475727f261 | a654f12e-c260-4397-8fa3-1c77c7f04d6a ] ${VIM_VDUS} @{vdu_ids} Adds ``values`` to the end of ``list``. ${vdu_id} @{VIM_VDUS} 4fdc36bf-a90f-40ae-8c9d-f418a275c472 ${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 4fdc36bf-a90f-40ae-8c9d-f418a275c472 -c volumes_attached -f value 2>&1'. ${rc} = 0 ${stdout} = [{'device': None, 'id': '5754dc1f-c724-41c3-9355-d4a481d73b17', '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': '5754dc1f-c724-41c3-9355-d4a481d73b17', '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': '5754dc1f-c724-41c3-9355-d4a481d73b17', '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} = ['5754dc1f-c724-41c3-9355-d4a481d73b17'] ${VIM_VOLUMES} ${match}[0] Adds ``values`` to the end of ``list``. 3d869f54-f82d-4b42-a4ad-07103ea7cf28 ${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 3d869f54-f82d-4b42-a4ad-07103ea7cf28 -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``. 6a2a7a49-eca4-4940-bf98-7b475727f261 ${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 6a2a7a49-eca4-4940-bf98-7b475727f261 -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``. a654f12e-c260-4397-8fa3-1c77c7f04d6a ${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 a654f12e-c260-4397-8fa3-1c77c7f04d6a -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. 4fdc36bf-a90f-40ae-8c9d-f418a275c472 3d869f54-f82d-4b42-a4ad-07103ea7cf28 6a2a7a49-eca4-4940-bf98-7b475727f261 a654f12e-c260-4397-8fa3-1c77c7f04d6a @{VIM_VOLUMES} Logs the given messages as separate entries using the INFO level. 5754dc1f-c724-41c3-9355-d4a481d73b17 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}': '030df7db-8fd9-4413-a4ff-151e7f503... ${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 9f69b495-7630-4bb4-bf21-ac517d36a1f1 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 3d869f54-f82d-4b42-a4ad-07103ea7cf28 6a2a7a49-eca4-4940-bf98-7b475727f261 a654f12e-c260-4397-8fa3-1c77c7f04d6a ${stdout} Logs the given message with the given level. 3d869f54-f82d-4b42-a4ad-07103ea7cf28 6a2a7a49-eca4-4940-bf98-7b475727f261 a654f12e-c260-4397-8fa3-1c77c7f04d6a ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 3d869f54-f82d-4b42-a4ad-07103ea7cf28 6a2a7a49-eca4-4940-bf98-7b475727f261 a654f12e-c260-4397-8fa3-1c77c7f04d6a @{vdu_manualscale_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_manualscale_ids} = [ 3d869f54-f82d-4b42-a4ad-07103ea7cf28 | 6a2a7a49-eca4-4940-bf98-7b475727f261 | a654f12e-c260-4397-8fa3-1c77c7f04d6a ] @{VDU_MANUALSCALE_IDS} @{vdu_manualscale_ids} Makes a variable available everywhere within the scope of the current suite. @{VDU_MANUALSCALE_IDS} = [ 3d869f54-f82d-4b42-a4ad-07103ea7cf28 | 6a2a7a49-eca4-4940-bf98-7b475727f261 | a654f12e-c260-4397-8fa3-1c77c7f04d6a ] ${VDU_MANUALSCALE_IDS}[1] Logs the given message with the given level. 6a2a7a49-eca4-4940-bf98-7b475727f261 @{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 9f69b495-7630-4bb4-bf21-ac517d36a1f1 --literal | yq -r '.vdur[].interfaces[]."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.115 192.168.252.103 172.21.249.107 192.168.252.215 172.21.249.255 192.168.252.190 ${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.115 | 192.168.252.103 | 172.21.249.107 | 192.168.252.215 | 172.21.249.255 | 192.168.252.190 ] @{ip} @{manualscale_ip_list} = [ 172.21.249.115 | 192.168.252.103 | 172.21.249.107 | 192.168.252.215 | 172.21.249.255 | 192.168.252.190 ] @{MANUALSCALE_IP_LIST} @{manualscale_ip_list} Makes a variable available everywhere within the scope of the current suite. @{MANUALSCALE_IP_LIST} = [ 172.21.249.115 | 192.168.252.103 | 172.21.249.107 | 192.168.252.215 | 172.21.249.255 | 192.168.252.190 ] 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 6a2a7a49-eca4-4940-bf98-7b475727f261 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 3b369bde-64a1-4641-8a01-b91ef8818501 --vnf 9f69b495-7630-4bb4-bf21-ac517d36a1f1 --cause "Heal VM of manual_scale_vnf" --vdu mgmtVM --count-index 1 --run-day1 2>&1'. ${rc} = 0 ${stdout} = f510e699-bb01-429d-baf7-2526de0a51b1 ${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 f510e699-bb01-429d-baf7-2526de0a51b1 --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 f510e699-bb01-429d-baf7-2526de0a51b1 ${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 f510e699-bb01-429d-baf7-2526de0a51b1 --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 f510e699-bb01-429d-baf7-2526de0a51b1 ${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 f510e699-bb01-429d-baf7-2526de0a51b1 --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 f510e699-bb01-429d-baf7-2526de0a51b1 --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 9f69b495-7630-4bb4-bf21-ac517d36a1f1 --literal | yq -r '.vdur[].interfaces[]."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.115 192.168.252.103 172.21.249.107 192.168.252.215 172.21.249.255 192.168.252.190 ${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.115 | 192.168.252.103 | 172.21.249.107 | 192.168.252.215 | 172.21.249.255 | 192.168.252.190 ] @{ip} @{ip_list} = [ 172.21.249.115 | 192.168.252.103 | 172.21.249.107 | 192.168.252.215 | 172.21.249.255 | 192.168.252.190 ] ${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 9f69b495-7630-4bb4-bf21-ac517d36a1f1 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 3d869f54-f82d-4b42-a4ad-07103ea7cf28 52d64e98-9205-4263-93bb-2d25cb898e79 a654f12e-c260-4397-8fa3-1c77c7f04d6a ${stdout} Logs the given message with the given level. 3d869f54-f82d-4b42-a4ad-07103ea7cf28 52d64e98-9205-4263-93bb-2d25cb898e79 a654f12e-c260-4397-8fa3-1c77c7f04d6a ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 3d869f54-f82d-4b42-a4ad-07103ea7cf28 52d64e98-9205-4263-93bb-2d25cb898e79 a654f12e-c260-4397-8fa3-1c77c7f04d6a @{ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{ids} = [ 3d869f54-f82d-4b42-a4ad-07103ea7cf28 | 52d64e98-9205-4263-93bb-2d25cb898e79 | a654f12e-c260-4397-8fa3-1c77c7f04d6a ] ${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 9f69b495-7630-4bb4-bf21-ac517d36a1f1 --literal | yq '.vdur[] | select(."count-index" == 1)' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.107 ${rc} ${SUCCESS_RETURN_CODE} msg=${stdout} values=False Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ip} = 172.21.249.107 ${stdout} ${ip} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} sudo ls ${VNF_MANUALSCALE_CLOUDINIT_FILE} Execute via SSH a command in a remote host and, if the command succeeds, return the output. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.249.107:22' as 'ubuntu'. NoValidConnectionsError: [Errno None] Unable to connect to port 22 on 172.21.249.107 ${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.249.107 ${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 3b369bde-64a1-4641-8a01-b91ef8818501 | grep 3b369bde-64a1-4641-8a01-b91ef8818501 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 2e569b81-1e4d-4514-8e6d-5d850d164cad 9f69b495-7630-4bb4-bf21-ac517d36a1f1 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 2e569b81-1e4d-4514-8e6d-5d850d164cad | 9f69b495-7630-4bb4-bf21-ac517d36a1f1 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List length is 2 and it contains following items: 0: 2e569b81-1e4d-4514-8e6d-5d850d164cad 1: 9f69b495-7630-4bb4-bf21-ac517d36a1f1 @{vnf_list} @{vnf_id_list} = [ 2e569b81-1e4d-4514-8e6d-5d850d164cad | 9f69b495-7630-4bb4-bf21-ac517d36a1f1 ] ${vnf_id} @{vnf_id_list} 2e569b81-1e4d-4514-8e6d-5d850d164cad ${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 2e569b81-1e4d-4514-8e6d-5d850d164cad --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 4fdc36bf-a90f-40ae-8c9d-f418a275c472 ${stdout} Logs the given message with the given level. 4fdc36bf-a90f-40ae-8c9d-f418a275c472 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 4fdc36bf-a90f-40ae-8c9d-f418a275c472 @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ 4fdc36bf-a90f-40ae-8c9d-f418a275c472 ] ${vdu_updated} @{vdu_ids} Adds ``values`` to the end of ``list``. ${id} @{vdu_ids} 4fdc36bf-a90f-40ae-8c9d-f418a275c472 ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. 9f69b495-7630-4bb4-bf21-ac517d36a1f1 ${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 9f69b495-7630-4bb4-bf21-ac517d36a1f1 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 3d869f54-f82d-4b42-a4ad-07103ea7cf28 52d64e98-9205-4263-93bb-2d25cb898e79 a654f12e-c260-4397-8fa3-1c77c7f04d6a ${stdout} Logs the given message with the given level. 3d869f54-f82d-4b42-a4ad-07103ea7cf28 52d64e98-9205-4263-93bb-2d25cb898e79 a654f12e-c260-4397-8fa3-1c77c7f04d6a ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 3d869f54-f82d-4b42-a4ad-07103ea7cf28 52d64e98-9205-4263-93bb-2d25cb898e79 a654f12e-c260-4397-8fa3-1c77c7f04d6a @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ 3d869f54-f82d-4b42-a4ad-07103ea7cf28 | 52d64e98-9205-4263-93bb-2d25cb898e79 | a654f12e-c260-4397-8fa3-1c77c7f04d6a ] ${vdu_updated} @{vdu_ids} Adds ``values`` to the end of ``list``. ${id} @{vdu_ids} 3d869f54-f82d-4b42-a4ad-07103ea7cf28 ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. 52d64e98-9205-4263-93bb-2d25cb898e79 ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. a654f12e-c260-4397-8fa3-1c77c7f04d6a ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. ${vdu_id} @{vdu_updated} 4fdc36bf-a90f-40ae-8c9d-f418a275c472 ${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 4fdc36bf-a90f-40ae-8c9d-f418a275c472 -c volumes_attached -f value 2>&1'. ${rc} = 0 ${stdout} = [{'device': None, 'id': '5754dc1f-c724-41c3-9355-d4a481d73b17', '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': '5754dc1f-c724-41c3-9355-d4a481d73b17', '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': '5754dc1f-c724-41c3-9355-d4a481d73b17', '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} = ['5754dc1f-c724-41c3-9355-d4a481d73b17'] ${VIM_VOLUMES} ${match}[0] Adds ``values`` to the end of ``list``. 3d869f54-f82d-4b42-a4ad-07103ea7cf28 ${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 3d869f54-f82d-4b42-a4ad-07103ea7cf28 -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``. 52d64e98-9205-4263-93bb-2d25cb898e79 ${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 52d64e98-9205-4263-93bb-2d25cb898e79 -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``. a654f12e-c260-4397-8fa3-1c77c7f04d6a ${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 a654f12e-c260-4397-8fa3-1c77c7f04d6a -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. 4fdc36bf-a90f-40ae-8c9d-f418a275c472 3d869f54-f82d-4b42-a4ad-07103ea7cf28 6a2a7a49-eca4-4940-bf98-7b475727f261 a654f12e-c260-4397-8fa3-1c77c7f04d6a 52d64e98-9205-4263-93bb-2d25cb898e79 @{VIM_VOLUMES} Logs the given messages as separate entries using the INFO level. 5754dc1f-c724-41c3-9355-d4a481d73b17 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 | +--------------------------------------+-----------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ | 52d64e98-9205-4263-93bb-2d25cb898e79 | heal_02-manual_scale_vnf-mgmtVM-1 | ACTIVE | osm-ext=172.21.249.107 | ubuntu18.04 | osm.heal02_957285 | | d1ecbd27-030b-4cf3-99bc-794445747ee5 | heal_04-autoheal-basic-1-autoheal_vnfd-VM-0 | ERROR | osm-ext=172.21.249.208 | ubuntu20.04 | autoheal_vnfd-VM-autoheal-basic-1-1-flv | | a654f12e-c260-4397-8fa3-1c77c7f04d6a | heal_02-manual_scale_vnf-mgmtVM-2 | ACTIVE | osm-ext=172.21.249.255 | ubuntu18.04 | osm.heal02_957285 | | 3d869f54-f82d-4b42-a4ad-07103ea7cf28 | heal_02-manual_scale_vnf-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.115 | ubuntu18.04 | osm.heal02_957285 | | 4fdc36bf-a90f-40ae-8c9d-f418a275c472 | heal_02-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.88 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 heal_02 2>&1'. ${rc} = 0 ${stdout} = heal_02 ${rc},${stdout} Logs the given message with the given level. 0,heal_02 ${stdout} ${ns} Fails if objects are equal after converting them to strings. heal_02 == heal_02 ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+---------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+---------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ | d1ecbd27-030b-4cf3-99bc-794445747ee5 | heal_04-autoheal-basic-1-autoheal_vnfd-VM-0 | ERROR | osm-ext=172.21.249.208 | ubuntu20.04 | autoheal_vnfd-VM-autoheal-basic-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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 030df7db-8fd9-4413-a4ff-151e7f5039f7 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} 5754dc1f-c724-41c3-9355-d4a481d73b17 Checking if volume ${vol_id} is still in VIM Logs the given message with the given level. Checking if volume 5754dc1f-c724-41c3-9355-d4a481d73b17 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 5754dc1f-c724-41c3-9355-d4a481d73b17 | 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} 4fdc36bf-a90f-40ae-8c9d-f418a275c472 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 4fdc36bf-a90f-40ae-8c9d-f418a275c472 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 4fdc36bf-a90f-40ae-8c9d-f418a275c472 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 4fdc36bf-a90f-40ae-8c9d-f418a275c472 ${stdout} Logs the given message with the given level. No Server found for 4fdc36bf-a90f-40ae-8c9d-f418a275c472 ${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. 3d869f54-f82d-4b42-a4ad-07103ea7cf28 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 3d869f54-f82d-4b42-a4ad-07103ea7cf28 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 3d869f54-f82d-4b42-a4ad-07103ea7cf28 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 3d869f54-f82d-4b42-a4ad-07103ea7cf28 ${stdout} Logs the given message with the given level. No Server found for 3d869f54-f82d-4b42-a4ad-07103ea7cf28 ${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. 6a2a7a49-eca4-4940-bf98-7b475727f261 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 6a2a7a49-eca4-4940-bf98-7b475727f261 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 6a2a7a49-eca4-4940-bf98-7b475727f261 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 6a2a7a49-eca4-4940-bf98-7b475727f261 ${stdout} Logs the given message with the given level. No Server found for 6a2a7a49-eca4-4940-bf98-7b475727f261 ${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. a654f12e-c260-4397-8fa3-1c77c7f04d6a Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server a654f12e-c260-4397-8fa3-1c77c7f04d6a 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 a654f12e-c260-4397-8fa3-1c77c7f04d6a -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for a654f12e-c260-4397-8fa3-1c77c7f04d6a ${stdout} Logs the given message with the given level. No Server found for a654f12e-c260-4397-8fa3-1c77c7f04d6a ${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. 52d64e98-9205-4263-93bb-2d25cb898e79 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 52d64e98-9205-4263-93bb-2d25cb898e79 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 52d64e98-9205-4263-93bb-2d25cb898e79 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 52d64e98-9205-4263-93bb-2d25cb898e79 ${stdout} Logs the given message with the given level. No Server found for 52d64e98-9205-4263-93bb-2d25cb898e79 ${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} = +--------------------------------------+---------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+---------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ | d1ecbd27-030b-4cf3-99bc-794445747ee5 | heal_04-autoheal-basic-1-autoheal_vnfd-VM-0 | ERROR | osm-ext=172.21.249.208 | ubuntu20.04 | autoheal_vnfd-VM-autoheal-basic-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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 030df7db-8fd9-4413-a4ff-151e7f5039f7 2>&1'. ${rc} = 1 ${stdout} = Failed to delete flavor with name or ID '030df7db-8fd9-4413-a4ff-151e7f5039f7': No Flavor found for 030df7db-8fd9-4413-a4ff-151e7f5039f7 1 of 1 flavors failed to delete. ${stdout} Logs the given message with the given level. Failed to delete flavor with name or ID '030df7db-8fd9-4413-a4ff-151e7f5039f7': No Flavor found for 030df7db-8fd9-4413-a4ff-151e7f5039f7 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} 5754dc1f-c724-41c3-9355-d4a481d73b17 Checking if volume ${vol_id} is still in VIM Logs the given message with the given level. Checking if volume 5754dc1f-c724-41c3-9355-d4a481d73b17 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 5754dc1f-c724-41c3-9355-d4a481d73b17 | 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} 4fdc36bf-a90f-40ae-8c9d-f418a275c472 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 4fdc36bf-a90f-40ae-8c9d-f418a275c472 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 4fdc36bf-a90f-40ae-8c9d-f418a275c472 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 4fdc36bf-a90f-40ae-8c9d-f418a275c472 ${stdout} Logs the given message with the given level. No Server found for 4fdc36bf-a90f-40ae-8c9d-f418a275c472 ${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. 3d869f54-f82d-4b42-a4ad-07103ea7cf28 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 3d869f54-f82d-4b42-a4ad-07103ea7cf28 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 3d869f54-f82d-4b42-a4ad-07103ea7cf28 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 3d869f54-f82d-4b42-a4ad-07103ea7cf28 ${stdout} Logs the given message with the given level. No Server found for 3d869f54-f82d-4b42-a4ad-07103ea7cf28 ${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. 6a2a7a49-eca4-4940-bf98-7b475727f261 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 6a2a7a49-eca4-4940-bf98-7b475727f261 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 6a2a7a49-eca4-4940-bf98-7b475727f261 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 6a2a7a49-eca4-4940-bf98-7b475727f261 ${stdout} Logs the given message with the given level. No Server found for 6a2a7a49-eca4-4940-bf98-7b475727f261 ${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. a654f12e-c260-4397-8fa3-1c77c7f04d6a Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server a654f12e-c260-4397-8fa3-1c77c7f04d6a 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 a654f12e-c260-4397-8fa3-1c77c7f04d6a -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for a654f12e-c260-4397-8fa3-1c77c7f04d6a ${stdout} Logs the given message with the given level. No Server found for a654f12e-c260-4397-8fa3-1c77c7f04d6a ${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. 52d64e98-9205-4263-93bb-2d25cb898e79 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 52d64e98-9205-4263-93bb-2d25cb898e79 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 52d64e98-9205-4263-93bb-2d25cb898e79 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 52d64e98-9205-4263-93bb-2d25cb898e79 ${stdout} Logs the given message with the given level. No Server found for 52d64e98-9205-4263-93bb-2d25cb898e79 ${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 e2a6d3a6-3415-462f-a6fc-0fc3997e2bdf ${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} = e2a6d3a6-3415-462f-a6fc-0fc3997e2bdf ${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 4d0b4863-a640-4205-91ca-a99fb8d508dc ${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} = 4d0b4863-a640-4205-91ca-a99fb8d508dc ${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 5b8821b8-5a31-475c-babd-71d38271767b ${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} = 5b8821b8-5a31-475c-babd-71d38271767b ${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} = 9f988e01-f2af-4d95-80a0-02f1faebf317 ${stdout} Logs the given message with the given level. 9f988e01-f2af-4d95-80a0-02f1faebf317 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 9f988e01-f2af-4d95-80a0-02f1faebf317 ${ns_id} Logs the given message with the given level. 9f988e01-f2af-4d95-80a0-02f1faebf317 ${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 | +--------------------------------------+---------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ | d1ecbd27-030b-4cf3-99bc-794445747ee5 | heal_04-autoheal-basic-1-autoheal_vnfd-VM-0 | ERROR | osm-ext=172.21.249.208 | ubuntu20.04 | autoheal_vnfd-VM-autoheal-basic-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 9f988e01-f2af-4d95-80a0-02f1faebf317 | 2024-04-03T02:40:05 | BUILDING | INSTANTIATING (2d4d18f6-2a7b-4683-8d58-41a4baba1177) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | 9f988e01-f2af-4d95-80a0-02f1faebf317 | 2024-04-03T02:40:05 | BUILDING | INSTANTIATING (2d4d18f6-2a7b-4683-8d58-41a4baba1177) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-----------------------------------------+ | 3390d154-b40a-4df2-97ab-282a523c197c | heal_03-manual_scale_vnf-mgmtVM-1 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 54378cf3-a123-4001-95ab-787d061b71bc | heal_03-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.226.153; osm-ext=172.21.249.61 | ubuntu18.04 | simple_requires-1-1-flv | | 50e51ca8-d70e-433e-8f39-13ab35044f53 | heal_04-autoheal-basic-1-autoheal_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.208 | ubuntu20.04 | autoheal_vnfd-VM-autoheal-basic-1-1-flv | | d2b99df9-4e1a-4148-abcc-17b7d653fc80 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.141 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 9f988e01-f2af-4d95-80a0-02f1faebf317 | 2024-04-03T02:40:05 | BUILDING | INSTANTIATING (2d4d18f6-2a7b-4683-8d58-41a4baba1177) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | 9f988e01-f2af-4d95-80a0-02f1faebf317 | 2024-04-03T02:40:05 | BUILDING | INSTANTIATING (2d4d18f6-2a7b-4683-8d58-41a4baba1177) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | 3390d154-b40a-4df2-97ab-282a523c197c | heal_03-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.226.2; osm-ext=172.21.248.178 | ubuntu18.04 | simple_requires-1-1-flv | | 54378cf3-a123-4001-95ab-787d061b71bc | heal_03-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.226.153; osm-ext=172.21.249.61 | ubuntu18.04 | simple_requires-1-1-flv | | d2b99df9-4e1a-4148-abcc-17b7d653fc80 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.141 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 9f988e01-f2af-4d95-80a0-02f1faebf317 | 2024-04-03T02:40:05 | 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------+-------------+-------------------------+ | 3390d154-b40a-4df2-97ab-282a523c197c | heal_03-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.226.2; osm-ext=172.21.248.178 | ubuntu18.04 | simple_requires-1-1-flv | | 54378cf3-a123-4001-95ab-787d061b71bc | heal_03-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.226.153; osm-ext=172.21.249.61 | ubuntu18.04 | simple_requires-1-1-flv | | d2b99df9-4e1a-4148-abcc-17b7d653fc80 | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.141 | ubuntu20.04 | several_volumes-VM-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 9f988e01-f2af-4d95-80a0-02f1faebf317 | 2024-04-03T02:40:05 | 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} = 9f988e01-f2af-4d95-80a0-02f1faebf317 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 9f988e01-f2af-4d95-80a0-02f1faebf317 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} = 9f988e01-f2af-4d95-80a0-02f1faebf317 ${stdout} Logs the given message with the given level. 9f988e01-f2af-4d95-80a0-02f1faebf317 ${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} = 9f988e01-f2af-4d95-80a0-02f1faebf317 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 9f988e01-f2af-4d95-80a0-02f1faebf317 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 9f988e01-f2af-4d95-80a0-02f1faebf317 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = ca078b03-b64d-4e9a-bb78-acfeaaec6d50 ${stdout} Logs the given message with the given level. ca078b03-b64d-4e9a-bb78-acfeaaec6d50 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${vnf_id} = ca078b03-b64d-4e9a-bb78-acfeaaec6d50 ${VNF_MANUALSCALE_ID} ${vnf_id} Makes a variable available everywhere within the scope of the current suite. ${VNF_MANUALSCALE_ID} = ca078b03-b64d-4e9a-bb78-acfeaaec6d50 @{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 ca078b03-b64d-4e9a-bb78-acfeaaec6d50 --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} = 93f69d9f-fc50-4bab-bc3f-94807723dc0f ${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 93f69d9f-fc50-4bab-bc3f-94807723dc0f --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 93f69d9f-fc50-4bab-bc3f-94807723dc0f ${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 93f69d9f-fc50-4bab-bc3f-94807723dc0f --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 93f69d9f-fc50-4bab-bc3f-94807723dc0f ${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 93f69d9f-fc50-4bab-bc3f-94807723dc0f --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 93f69d9f-fc50-4bab-bc3f-94807723dc0f --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 ca078b03-b64d-4e9a-bb78-acfeaaec6d50 --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 9f988e01-f2af-4d95-80a0-02f1faebf317 | grep 9f988e01-f2af-4d95-80a0-02f1faebf317 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | e7b6cfb6-fe97-41d5-9722-702f77c49388 ca078b03-b64d-4e9a-bb78-acfeaaec6d50 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ e7b6cfb6-fe97-41d5-9722-702f77c49388 | ca078b03-b64d-4e9a-bb78-acfeaaec6d50 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List length is 2 and it contains following items: 0: e7b6cfb6-fe97-41d5-9722-702f77c49388 1: ca078b03-b64d-4e9a-bb78-acfeaaec6d50 @{vnf_list} @{vnf_id_list} = [ e7b6cfb6-fe97-41d5-9722-702f77c49388 | ca078b03-b64d-4e9a-bb78-acfeaaec6d50 ] ${vnf_id_list} Logs the given message with the given level. ['e7b6cfb6-fe97-41d5-9722-702f77c49388', 'ca078b03-b64d-4e9a-bb78-acfeaaec6d50'] ${vnf_id} @{vnf_id_list} e7b6cfb6-fe97-41d5-9722-702f77c49388 ${vnf_id} Logs the given message with the given level. e7b6cfb6-fe97-41d5-9722-702f77c49388 ${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 e7b6cfb6-fe97-41d5-9722-702f77c49388 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = d2b99df9-4e1a-4148-abcc-17b7d653fc80 ${stdout} Logs the given message with the given level. d2b99df9-4e1a-4148-abcc-17b7d653fc80 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = d2b99df9-4e1a-4148-abcc-17b7d653fc80 @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ d2b99df9-4e1a-4148-abcc-17b7d653fc80 ] ${VIM_VDUS} @{vdu_ids} Adds ``values`` to the end of ``list``. ca078b03-b64d-4e9a-bb78-acfeaaec6d50 ${vnf_id} Logs the given message with the given level. ca078b03-b64d-4e9a-bb78-acfeaaec6d50 ${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 ca078b03-b64d-4e9a-bb78-acfeaaec6d50 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 54378cf3-a123-4001-95ab-787d061b71bc 3390d154-b40a-4df2-97ab-282a523c197c 1b0ee5ce-c6b0-45a7-b24d-8910138f147d ${stdout} Logs the given message with the given level. 54378cf3-a123-4001-95ab-787d061b71bc 3390d154-b40a-4df2-97ab-282a523c197c 1b0ee5ce-c6b0-45a7-b24d-8910138f147d ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 54378cf3-a123-4001-95ab-787d061b71bc 3390d154-b40a-4df2-97ab-282a523c197c 1b0ee5ce-c6b0-45a7-b24d-8910138f147d @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ 54378cf3-a123-4001-95ab-787d061b71bc | 3390d154-b40a-4df2-97ab-282a523c197c | 1b0ee5ce-c6b0-45a7-b24d-8910138f147d ] ${VIM_VDUS} @{vdu_ids} Adds ``values`` to the end of ``list``. ${vdu_id} @{VIM_VDUS} d2b99df9-4e1a-4148-abcc-17b7d653fc80 ${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 d2b99df9-4e1a-4148-abcc-17b7d653fc80 -c volumes_attached -f value 2>&1'. ${rc} = 0 ${stdout} = [{'device': None, 'id': '18ff4ce3-a7a0-4fd4-a158-17046daaa6e5', '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': '18ff4ce3-a7a0-4fd4-a158-17046daaa6e5', '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': '18ff4ce3-a7a0-4fd4-a158-17046daaa6e5', '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} = ['18ff4ce3-a7a0-4fd4-a158-17046daaa6e5'] ${VIM_VOLUMES} ${match}[0] Adds ``values`` to the end of ``list``. 54378cf3-a123-4001-95ab-787d061b71bc ${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 54378cf3-a123-4001-95ab-787d061b71bc -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``. 3390d154-b40a-4df2-97ab-282a523c197c ${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 3390d154-b40a-4df2-97ab-282a523c197c -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``. 1b0ee5ce-c6b0-45a7-b24d-8910138f147d ${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 1b0ee5ce-c6b0-45a7-b24d-8910138f147d -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. d2b99df9-4e1a-4148-abcc-17b7d653fc80 54378cf3-a123-4001-95ab-787d061b71bc 3390d154-b40a-4df2-97ab-282a523c197c 1b0ee5ce-c6b0-45a7-b24d-8910138f147d @{VIM_VOLUMES} Logs the given messages as separate entries using the INFO level. 18ff4ce3-a7a0-4fd4-a158-17046daaa6e5 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 ca078b03-b64d-4e9a-bb78-acfeaaec6d50 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 54378cf3-a123-4001-95ab-787d061b71bc 3390d154-b40a-4df2-97ab-282a523c197c 1b0ee5ce-c6b0-45a7-b24d-8910138f147d ${stdout} Logs the given message with the given level. 54378cf3-a123-4001-95ab-787d061b71bc 3390d154-b40a-4df2-97ab-282a523c197c 1b0ee5ce-c6b0-45a7-b24d-8910138f147d ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 54378cf3-a123-4001-95ab-787d061b71bc 3390d154-b40a-4df2-97ab-282a523c197c 1b0ee5ce-c6b0-45a7-b24d-8910138f147d @{vdu_manualscale_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_manualscale_ids} = [ 54378cf3-a123-4001-95ab-787d061b71bc | 3390d154-b40a-4df2-97ab-282a523c197c | 1b0ee5ce-c6b0-45a7-b24d-8910138f147d ] @{VDU_MANUALSCALE_IDS} @{vdu_manualscale_ids} Makes a variable available everywhere within the scope of the current suite. @{VDU_MANUALSCALE_IDS} = [ 54378cf3-a123-4001-95ab-787d061b71bc | 3390d154-b40a-4df2-97ab-282a523c197c | 1b0ee5ce-c6b0-45a7-b24d-8910138f147d ] ${VDU_MANUALSCALE_IDS}[1] Logs the given message with the given level. 3390d154-b40a-4df2-97ab-282a523c197c @{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 ca078b03-b64d-4e9a-bb78-acfeaaec6d50 --literal | yq -r '.vdur[].interfaces[]."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.61 192.168.226.153 172.21.248.178 192.168.226.2 172.21.248.128 192.168.226.247 ${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.61 | 192.168.226.153 | 172.21.248.178 | 192.168.226.2 | 172.21.248.128 | 192.168.226.247 ] @{ip} @{manualscale_ip_list} = [ 172.21.249.61 | 192.168.226.153 | 172.21.248.178 | 192.168.226.2 | 172.21.248.128 | 192.168.226.247 ] @{MANUALSCALE_IP_LIST} @{manualscale_ip_list} Makes a variable available everywhere within the scope of the current suite. @{MANUALSCALE_IP_LIST} = [ 172.21.249.61 | 192.168.226.153 | 172.21.248.178 | 192.168.226.2 | 172.21.248.128 | 192.168.226.247 ] 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 9f988e01-f2af-4d95-80a0-02f1faebf317 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.141 ${stdout} Logs the given message with the given level. 172.21.248.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.248.141 ${ip_addr} Logs the given message with the given level. 172.21.248.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.248.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 9f988e01-f2af-4d95-80a0-02f1faebf317 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = e7b6cfb6-fe97-41d5-9722-702f77c49388 ${stdout} Logs the given message with the given level. e7b6cfb6-fe97-41d5-9722-702f77c49388 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${vnf_id} = e7b6cfb6-fe97-41d5-9722-702f77c49388 ${VNF_VOLUMES_ID} ${vnf_id} Makes a variable available everywhere within the scope of the current suite. ${VNF_VOLUMES_ID} = e7b6cfb6-fe97-41d5-9722-702f77c49388 ${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 e7b6cfb6-fe97-41d5-9722-702f77c49388 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = d2b99df9-4e1a-4148-abcc-17b7d653fc80 ${stdout} Logs the given message with the given level. d2b99df9-4e1a-4148-abcc-17b7d653fc80 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = d2b99df9-4e1a-4148-abcc-17b7d653fc80 ${VDU_VOLUMES_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${VDU_VOLUMES_ID} = d2b99df9-4e1a-4148-abcc-17b7d653fc80 ${VDU_VOLUMES_ID} Logs the given message with the given level. d2b99df9-4e1a-4148-abcc-17b7d653fc80 @{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 e7b6cfb6-fe97-41d5-9722-702f77c49388 --literal | yq -r '.vdur[].interfaces[]."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.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.248.141 ] @{ip} @{volumes_ip_list} = [ 172.21.248.141 ] @{VOLUMES_IP_LIST} @{volumes_ip_list} Makes a variable available everywhere within the scope of the current suite. @{VOLUMES_IP_LIST} = [ 172.21.248.141 ] @{VOLUMES_IP_LIST} Logs the given message with the given level. 172.21.248.141 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 3390d154-b40a-4df2-97ab-282a523c197c 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 1b0ee5ce-c6b0-45a7-b24d-8910138f147d 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 d2b99df9-4e1a-4148-abcc-17b7d653fc80 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 9f988e01-f2af-4d95-80a0-02f1faebf317 --vnf e7b6cfb6-fe97-41d5-9722-702f77c49388 --cause "Heal myvdu1 of several_volumes_vnf" --vdu several_volumes-VM --vnf ca078b03-b64d-4e9a-bb78-acfeaaec6d50 --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} = 3fa0e5f7-95ba-4ab8-bc13-e9612a58e59e ${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 3fa0e5f7-95ba-4ab8-bc13-e9612a58e59e --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 3fa0e5f7-95ba-4ab8-bc13-e9612a58e59e ${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 3fa0e5f7-95ba-4ab8-bc13-e9612a58e59e --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 3fa0e5f7-95ba-4ab8-bc13-e9612a58e59e ${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 3fa0e5f7-95ba-4ab8-bc13-e9612a58e59e --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 3fa0e5f7-95ba-4ab8-bc13-e9612a58e59e ${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 3fa0e5f7-95ba-4ab8-bc13-e9612a58e59e --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 3fa0e5f7-95ba-4ab8-bc13-e9612a58e59e --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 ca078b03-b64d-4e9a-bb78-acfeaaec6d50 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 54378cf3-a123-4001-95ab-787d061b71bc 76901373-549b-41d4-a1d9-0eedacb46685 653ada61-48db-43b7-90af-9f7cd84836fc ${stdout} Logs the given message with the given level. 54378cf3-a123-4001-95ab-787d061b71bc 76901373-549b-41d4-a1d9-0eedacb46685 653ada61-48db-43b7-90af-9f7cd84836fc ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 54378cf3-a123-4001-95ab-787d061b71bc 76901373-549b-41d4-a1d9-0eedacb46685 653ada61-48db-43b7-90af-9f7cd84836fc @{ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{ids} = [ 54378cf3-a123-4001-95ab-787d061b71bc | 76901373-549b-41d4-a1d9-0eedacb46685 | 653ada61-48db-43b7-90af-9f7cd84836fc ] ${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 e7b6cfb6-fe97-41d5-9722-702f77c49388 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 176ccfd3-a3df-464a-a200-cf333eb02d4e ${stdout} Logs the given message with the given level. 176ccfd3-a3df-464a-a200-cf333eb02d4e ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 176ccfd3-a3df-464a-a200-cf333eb02d4e ${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 ca078b03-b64d-4e9a-bb78-acfeaaec6d50 --literal | yq '.vdur[] | select(."count-index" == 1)' | yq -r '."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.178 ${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.178 ${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.178: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 Wed Apr 3 02:43:56 UTC 2024 System load: 0.49 Processes: 88 Usage of /: 11.5% of 9.52GB Users logged in: 0 Memory usage: 12% IP address for ens3: 172.21.248.178 Swap usage: 0% 0 updates can be applied immediately. The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@heal-03-manual-scale-vnf-mgmtvm-1:~$ ${stdout} ${rc} ${command} return_rc=True return_stdout=True Executes ``command`` on the remote machine and returns its outputs. Executing command 'sudo ls /root/helloworld.txt'. Command exited with return code 0. ${stdout} = /root/helloworld.txt ${rc} = 0 ${rc} Logs the given message with the given level. 0 ${stdout} Logs the given message with the given level. /root/helloworld.txt Closes all open connections. ${rc} 0 Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${stdout} = /root/helloworld.txt ${stdout} Logs the given message with the given level. /root/helloworld.txt ${ip} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} ${VNF_MANUALSCALE_DAY1_FILE} Check via SSH if a file exists in in the remote host, using the user and credentials passed as arguments. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.248.178: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 Wed Apr 3 02:43:58 UTC 2024 System load: 0.49 Processes: 87 Usage of /: 11.8% of 9.52GB Users logged in: 0 Memory usage: 12% IP address for ens3: 172.21.248.178 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: Wed Apr 3 02:43:57 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 9f988e01-f2af-4d95-80a0-02f1faebf317 | grep 9f988e01-f2af-4d95-80a0-02f1faebf317 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | e7b6cfb6-fe97-41d5-9722-702f77c49388 ca078b03-b64d-4e9a-bb78-acfeaaec6d50 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ e7b6cfb6-fe97-41d5-9722-702f77c49388 | ca078b03-b64d-4e9a-bb78-acfeaaec6d50 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List length is 2 and it contains following items: 0: e7b6cfb6-fe97-41d5-9722-702f77c49388 1: ca078b03-b64d-4e9a-bb78-acfeaaec6d50 @{vnf_list} @{vnf_id_list} = [ e7b6cfb6-fe97-41d5-9722-702f77c49388 | ca078b03-b64d-4e9a-bb78-acfeaaec6d50 ] ${vnf_id} @{vnf_id_list} e7b6cfb6-fe97-41d5-9722-702f77c49388 ${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 e7b6cfb6-fe97-41d5-9722-702f77c49388 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 176ccfd3-a3df-464a-a200-cf333eb02d4e ${stdout} Logs the given message with the given level. 176ccfd3-a3df-464a-a200-cf333eb02d4e ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 176ccfd3-a3df-464a-a200-cf333eb02d4e @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ 176ccfd3-a3df-464a-a200-cf333eb02d4e ] ${vdu_updated} @{vdu_ids} Adds ``values`` to the end of ``list``. ${id} @{vdu_ids} 176ccfd3-a3df-464a-a200-cf333eb02d4e ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. ca078b03-b64d-4e9a-bb78-acfeaaec6d50 ${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 ca078b03-b64d-4e9a-bb78-acfeaaec6d50 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 54378cf3-a123-4001-95ab-787d061b71bc 76901373-549b-41d4-a1d9-0eedacb46685 653ada61-48db-43b7-90af-9f7cd84836fc ${stdout} Logs the given message with the given level. 54378cf3-a123-4001-95ab-787d061b71bc 76901373-549b-41d4-a1d9-0eedacb46685 653ada61-48db-43b7-90af-9f7cd84836fc ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 54378cf3-a123-4001-95ab-787d061b71bc 76901373-549b-41d4-a1d9-0eedacb46685 653ada61-48db-43b7-90af-9f7cd84836fc @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ 54378cf3-a123-4001-95ab-787d061b71bc | 76901373-549b-41d4-a1d9-0eedacb46685 | 653ada61-48db-43b7-90af-9f7cd84836fc ] ${vdu_updated} @{vdu_ids} Adds ``values`` to the end of ``list``. ${id} @{vdu_ids} 54378cf3-a123-4001-95ab-787d061b71bc ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. 76901373-549b-41d4-a1d9-0eedacb46685 ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. 653ada61-48db-43b7-90af-9f7cd84836fc ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. ${vdu_id} @{vdu_updated} 176ccfd3-a3df-464a-a200-cf333eb02d4e ${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 176ccfd3-a3df-464a-a200-cf333eb02d4e -c volumes_attached -f value 2>&1'. ${rc} = 0 ${stdout} = [{'device': None, 'id': '18ff4ce3-a7a0-4fd4-a158-17046daaa6e5', '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': '18ff4ce3-a7a0-4fd4-a158-17046daaa6e5', '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': '18ff4ce3-a7a0-4fd4-a158-17046daaa6e5', '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} = ['18ff4ce3-a7a0-4fd4-a158-17046daaa6e5'] ${VIM_VOLUMES} ${match}[0] Adds ``values`` to the end of ``list``. 54378cf3-a123-4001-95ab-787d061b71bc ${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 54378cf3-a123-4001-95ab-787d061b71bc -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``. 76901373-549b-41d4-a1d9-0eedacb46685 ${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 76901373-549b-41d4-a1d9-0eedacb46685 -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``. 653ada61-48db-43b7-90af-9f7cd84836fc ${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 653ada61-48db-43b7-90af-9f7cd84836fc -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. d2b99df9-4e1a-4148-abcc-17b7d653fc80 54378cf3-a123-4001-95ab-787d061b71bc 3390d154-b40a-4df2-97ab-282a523c197c 1b0ee5ce-c6b0-45a7-b24d-8910138f147d 176ccfd3-a3df-464a-a200-cf333eb02d4e 76901373-549b-41d4-a1d9-0eedacb46685 653ada61-48db-43b7-90af-9f7cd84836fc @{VIM_VOLUMES} Logs the given messages as separate entries using the INFO level. 18ff4ce3-a7a0-4fd4-a158-17046daaa6e5 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} = +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | ID... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+---------------------------------------------------------+-------------+-------------------------+ | 653ada61-48db-43b7-90af-9f7cd84836fc | heal_03-manual_scale_vnf-mgmtVM-2 | ACTIVE | heal_03-datanet=192.168.226.247; osm-ext=172.21.248.128 | ubuntu18.04 | simple_requires-1-1-flv | | 76901373-549b-41d4-a1d9-0eedacb46685 | heal_03-manual_scale_vnf-mgmtVM-1 | ACTIVE | heal_03-datanet=192.168.226.2; osm-ext=172.21.248.178 | ubuntu18.04 | simple_requires-1-1-flv | | 176ccfd3-a3df-464a-a200-cf333eb02d4e | heal_03-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.141 | ubuntu20.04 | several_volumes-VM-flv | | 54378cf3-a123-4001-95ab-787d061b71bc | heal_03-manual_scale_vnf-mgmtVM-0 | ACTIVE | heal_03-datanet=192.168.226.153; osm-ext=172.21.249.61 | ubuntu18.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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 | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------+--------+------------------------+-------------+-------------------------+ | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | BUILD | | ubuntu22.04 | osm.sanity | | 653ada61-48db-43b7-90af-9f7cd84836fc | heal_03-manual_scale_vnf-mgmtVM-2 | ACTIVE | osm-ext=172.21.248.128 | ubuntu18.04 | simple_requires-1-1-flv | | 76901373-549b-41d4-a1d9-0eedacb46685 | heal_03-manual_scale_vnf-mgmtVM-1 | ACTIVE | osm-ext=172.21.248.178 | ubuntu18.04 | simple_requires-1-1-flv | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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 | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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} 18ff4ce3-a7a0-4fd4-a158-17046daaa6e5 Checking if volume ${vol_id} is still in VIM Logs the given message with the given level. Checking if volume 18ff4ce3-a7a0-4fd4-a158-17046daaa6e5 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 18ff4ce3-a7a0-4fd4-a158-17046daaa6e5 | 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} d2b99df9-4e1a-4148-abcc-17b7d653fc80 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server d2b99df9-4e1a-4148-abcc-17b7d653fc80 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 d2b99df9-4e1a-4148-abcc-17b7d653fc80 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for d2b99df9-4e1a-4148-abcc-17b7d653fc80 ${stdout} Logs the given message with the given level. No Server found for d2b99df9-4e1a-4148-abcc-17b7d653fc80 ${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. 54378cf3-a123-4001-95ab-787d061b71bc Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 54378cf3-a123-4001-95ab-787d061b71bc 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 54378cf3-a123-4001-95ab-787d061b71bc -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 54378cf3-a123-4001-95ab-787d061b71bc ${stdout} Logs the given message with the given level. No Server found for 54378cf3-a123-4001-95ab-787d061b71bc ${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. 3390d154-b40a-4df2-97ab-282a523c197c Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 3390d154-b40a-4df2-97ab-282a523c197c 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 3390d154-b40a-4df2-97ab-282a523c197c -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 3390d154-b40a-4df2-97ab-282a523c197c ${stdout} Logs the given message with the given level. No Server found for 3390d154-b40a-4df2-97ab-282a523c197c ${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. 1b0ee5ce-c6b0-45a7-b24d-8910138f147d Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 1b0ee5ce-c6b0-45a7-b24d-8910138f147d 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 1b0ee5ce-c6b0-45a7-b24d-8910138f147d -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 1b0ee5ce-c6b0-45a7-b24d-8910138f147d ${stdout} Logs the given message with the given level. No Server found for 1b0ee5ce-c6b0-45a7-b24d-8910138f147d ${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. 176ccfd3-a3df-464a-a200-cf333eb02d4e Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 176ccfd3-a3df-464a-a200-cf333eb02d4e 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 176ccfd3-a3df-464a-a200-cf333eb02d4e -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 176ccfd3-a3df-464a-a200-cf333eb02d4e ${stdout} Logs the given message with the given level. No Server found for 176ccfd3-a3df-464a-a200-cf333eb02d4e ${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. 76901373-549b-41d4-a1d9-0eedacb46685 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 76901373-549b-41d4-a1d9-0eedacb46685 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 76901373-549b-41d4-a1d9-0eedacb46685 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 76901373-549b-41d4-a1d9-0eedacb46685 ${stdout} Logs the given message with the given level. No Server found for 76901373-549b-41d4-a1d9-0eedacb46685 ${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. 653ada61-48db-43b7-90af-9f7cd84836fc Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 653ada61-48db-43b7-90af-9f7cd84836fc 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 653ada61-48db-43b7-90af-9f7cd84836fc -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 653ada61-48db-43b7-90af-9f7cd84836fc ${stdout} Logs the given message with the given level. No Server found for 653ada61-48db-43b7-90af-9f7cd84836fc ${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 | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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 4e00e735-2281-4e6c-a94c-5d3694c63c80 ${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} = 4e00e735-2281-4e6c-a94c-5d3694c63c80 ${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 d75199e2-52f1-47a4-a29d-e92c76806076 ${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} = d75199e2-52f1-47a4-a29d-e92c76806076 ${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} = 974b718c-302d-4f6b-8311-f2678d269b71 ${stdout} Logs the given message with the given level. 974b718c-302d-4f6b-8311-f2678d269b71 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 974b718c-302d-4f6b-8311-f2678d269b71 ${ns_id} Logs the given message with the given level. 974b718c-302d-4f6b-8311-f2678d269b71 ${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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 974b718c-302d-4f6b-8311-f2678d269b71 | 2024-04-03T02:45:34 | BUILDING | INSTANTIATING (8d3b2d52-e7f9-456d-8ba5-21ca0ab8aec3) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | 974b718c-302d-4f6b-8311-f2678d269b71 | 2024-04-03T02:45:34 | BUILDING | INSTANTIATING (8d3b2d52-e7f9-456d-8ba5-21ca0ab8aec3) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+---------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ | 4d519def-9560-42a5-997a-f4df914be1c6 | heal_04-autoheal-basic-1-autoheal_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.108 | ubuntu20.04 | autoheal_vnfd-VM-autoheal-basic-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 974b718c-302d-4f6b-8311-f2678d269b71 | 2024-04-03T02:45: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} = +--------------------------------------+---------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ | ID ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+---------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ | 4d519def-9560-42a5-997a-f4df914be1c6 | heal_04-autoheal-basic-1-autoheal_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.108 | ubuntu20.04 | autoheal_vnfd-VM-autoheal-basic-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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="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 | 974b718c-302d-4f6b-8311-f2678d269b71 | 2024-04-03T02:45: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} = 974b718c-302d-4f6b-8311-f2678d269b71 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 974b718c-302d-4f6b-8311-f2678d269b71 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} = 974b718c-302d-4f6b-8311-f2678d269b71 ${stdout} Logs the given message with the given level. 974b718c-302d-4f6b-8311-f2678d269b71 ${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} = 974b718c-302d-4f6b-8311-f2678d269b71 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 974b718c-302d-4f6b-8311-f2678d269b71 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 974b718c-302d-4f6b-8311-f2678d269b71 | grep 974b718c-302d-4f6b-8311-f2678d269b71 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | b7517d5e-ee01-42b3-b9cd-28ddae97d425 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ b7517d5e-ee01-42b3-b9cd-28ddae97d425 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: b7517d5e-ee01-42b3-b9cd-28ddae97d425 @{vnf_list} @{vnf_id_list} = [ b7517d5e-ee01-42b3-b9cd-28ddae97d425 ] ${vnf_id_list} Logs the given message with the given level. ['b7517d5e-ee01-42b3-b9cd-28ddae97d425'] ${vnf_id} @{vnf_id_list} b7517d5e-ee01-42b3-b9cd-28ddae97d425 ${vnf_id} Logs the given message with the given level. b7517d5e-ee01-42b3-b9cd-28ddae97d425 ${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 b7517d5e-ee01-42b3-b9cd-28ddae97d425 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 4d519def-9560-42a5-997a-f4df914be1c6 ${stdout} Logs the given message with the given level. 4d519def-9560-42a5-997a-f4df914be1c6 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 4d519def-9560-42a5-997a-f4df914be1c6 @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ 4d519def-9560-42a5-997a-f4df914be1c6 ] ${VIM_VDUS} @{vdu_ids} Adds ``values`` to the end of ``list``. @{VIM_VDUS} Logs the given messages as separate entries using the INFO level. 4d519def-9560-42a5-997a-f4df914be1c6 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 974b718c-302d-4f6b-8311-f2678d269b71 | 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_addr} = 172.21.249.108 ${ip_addr} Logs the given message with the given level. 172.21.249.108 ${VNF_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. ${VNF_IP_ADDR} = 172.21.249.108 ${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 974b718c-302d-4f6b-8311-f2678d269b71 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = b7517d5e-ee01-42b3-b9cd-28ddae97d425 ${stdout} Logs the given message with the given level. b7517d5e-ee01-42b3-b9cd-28ddae97d425 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${vnf_id} = b7517d5e-ee01-42b3-b9cd-28ddae97d425 ${VNF_AUTOHEAL_ID} ${vnf_id} Makes a variable available everywhere within the scope of the current suite. ${VNF_AUTOHEAL_ID} = b7517d5e-ee01-42b3-b9cd-28ddae97d425 ${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 b7517d5e-ee01-42b3-b9cd-28ddae97d425 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 4d519def-9560-42a5-997a-f4df914be1c6 ${stdout} Logs the given message with the given level. 4d519def-9560-42a5-997a-f4df914be1c6 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 4d519def-9560-42a5-997a-f4df914be1c6 ${VDU_AUTOHEAL_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${VDU_AUTOHEAL_ID} = 4d519def-9560-42a5-997a-f4df914be1c6 ${VDU_AUTOHEAL_ID} Logs the given message with the given level. 4d519def-9560-42a5-997a-f4df914be1c6 @{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 b7517d5e-ee01-42b3-b9cd-28ddae97d425 --literal | yq -r '.vdur[].interfaces[]."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.108 ${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.108 ] @{ip} @{AUTOHEAL_IP_LIST} = [ 172.21.249.108 ] @{AUTOHEAL_IP_LIST} @{AUTOHEAL_IP_LIST} Makes a variable available everywhere within the scope of the current suite. @{AUTOHEAL_IP_LIST} = [ 172.21.249.108 ] @{AUTOHEAL_IP_LIST} Logs the given message with the given level. 172.21.249.108 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 4d519def-9560-42a5-997a-f4df914be1c6 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 974b718c-302d-4f6b-8311-f2678d269b71 | 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 974b718c-302d-4f6b-8311-f2678d269b71 | 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 974b718c-302d-4f6b-8311-f2678d269b71 | 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 974b718c-302d-4f6b-8311-f2678d269b71 | 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 974b718c-302d-4f6b-8311-f2678d269b71 | 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 974b718c-302d-4f6b-8311-f2678d269b71 | 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 974b718c-302d-4f6b-8311-f2678d269b71 | 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 974b718c-302d-4f6b-8311-f2678d269b71 | 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 974b718c-302d-4f6b-8311-f2678d269b71 | 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 974b718c-302d-4f6b-8311-f2678d269b71 | 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 974b718c-302d-4f6b-8311-f2678d269b71 | 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 974b718c-302d-4f6b-8311-f2678d269b71 | 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 974b718c-302d-4f6b-8311-f2678d269b71 | 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 974b718c-302d-4f6b-8311-f2678d269b71 | 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 974b718c-302d-4f6b-8311-f2678d269b71 | 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 974b718c-302d-4f6b-8311-f2678d269b71 | 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 974b718c-302d-4f6b-8311-f2678d269b71 | 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 974b718c-302d-4f6b-8311-f2678d269b71 | 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 974b718c-302d-4f6b-8311-f2678d269b71 | 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 974b718c-302d-4f6b-8311-f2678d269b71 | 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 974b718c-302d-4f6b-8311-f2678d269b71 | 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 974b718c-302d-4f6b-8311-f2678d269b71 | 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 974b718c-302d-4f6b-8311-f2678d269b71 | grep heal | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = b7ce5ec0-1af2-4cd2-9f1d-91fb45f036fa ${stdout} Logs the given message with the given level. b7ce5ec0-1af2-4cd2-9f1d-91fb45f036fa ${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 974b718c-302d-4f6b-8311-f2678d269b71 | grep heal | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = b7ce5ec0-1af2-4cd2-9f1d-91fb45f036fa ${stdout} Logs the given message with the given level. b7ce5ec0-1af2-4cd2-9f1d-91fb45f036fa ${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} = b7ce5ec0-1af2-4cd2-9f1d-91fb45f036fa ${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 b7ce5ec0-1af2-4cd2-9f1d-91fb45f036fa --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 b7ce5ec0-1af2-4cd2-9f1d-91fb45f036fa ${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 b7ce5ec0-1af2-4cd2-9f1d-91fb45f036fa --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 b7ce5ec0-1af2-4cd2-9f1d-91fb45f036fa --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 b7517d5e-ee01-42b3-b9cd-28ddae97d425 --literal | yq -r '.vdur[].interfaces[]."ip-address"' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.108 ${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.108 ] @{ip} @{ip_list} = [ 172.21.249.108 ] @{ip_list} Logs the given message with the given level. 172.21.249.108 ${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 b7517d5e-ee01-42b3-b9cd-28ddae97d425 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 35a19a32-106b-4ecb-925c-7d310a01363a ${stdout} Logs the given message with the given level. 35a19a32-106b-4ecb-925c-7d310a01363a ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 35a19a32-106b-4ecb-925c-7d310a01363a ${id} Logs the given message with the given level. 35a19a32-106b-4ecb-925c-7d310a01363a ${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 974b718c-302d-4f6b-8311-f2678d269b71 | grep 974b718c-302d-4f6b-8311-f2678d269b71 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | b7517d5e-ee01-42b3-b9cd-28ddae97d425 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ b7517d5e-ee01-42b3-b9cd-28ddae97d425 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: b7517d5e-ee01-42b3-b9cd-28ddae97d425 @{vnf_list} @{vnf_id_list} = [ b7517d5e-ee01-42b3-b9cd-28ddae97d425 ] ${vnf_id} @{vnf_id_list} b7517d5e-ee01-42b3-b9cd-28ddae97d425 ${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 b7517d5e-ee01-42b3-b9cd-28ddae97d425 --literal | yq -r '.vdur[]."vim-id"' 2>&1'. ${rc} = 0 ${stdout} = 35a19a32-106b-4ecb-925c-7d310a01363a ${stdout} Logs the given message with the given level. 35a19a32-106b-4ecb-925c-7d310a01363a ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = 35a19a32-106b-4ecb-925c-7d310a01363a @{vdu_ids} ${id} Splits the ``string`` using ``separator`` as a delimiter string. @{vdu_ids} = [ 35a19a32-106b-4ecb-925c-7d310a01363a ] ${id} @{vdu_ids} 35a19a32-106b-4ecb-925c-7d310a01363a ${VIM_VDUS} ${id} Adds ``values`` to the end of ``list``. @{VIM_VDUS} Logs the given messages as separate entries using the INFO level. 4d519def-9560-42a5-997a-f4df914be1c6 35a19a32-106b-4ecb-925c-7d310a01363a 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 | +--------------------------------------+---------------------------------------------+--------+------------------------+-------------+-----------------------------------------+ | 35a19a32-106b-4ecb-925c-7d310a01363a | heal_04-autoheal-basic-1-autoheal_vnfd-VM-0 | ACTIVE | osm-ext=172.21.249.108 | ubuntu20.04 | autoheal_vnfd-VM-autoheal-basic-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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 | Name ... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 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} 4d519def-9560-42a5-997a-f4df914be1c6 Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 4d519def-9560-42a5-997a-f4df914be1c6 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 4d519def-9560-42a5-997a-f4df914be1c6 -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 4d519def-9560-42a5-997a-f4df914be1c6 ${stdout} Logs the given message with the given level. No Server found for 4d519def-9560-42a5-997a-f4df914be1c6 ${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. 35a19a32-106b-4ecb-925c-7d310a01363a Checking if server ${vdu_id} is still in VIM Logs the given message with the given level. Checking if server 35a19a32-106b-4ecb-925c-7d310a01363a 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 35a19a32-106b-4ecb-925c-7d310a01363a -c id -f value 2>&1'. ${rc} = 1 ${stdout} = No Server found for 35a19a32-106b-4ecb-925c-7d310a01363a ${stdout} Logs the given message with the given level. No Server found for 35a19a32-106b-4ecb-925c-7d310a01363a ${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} = 315863 ${VIM_NAME} SEPARATOR=_ ${vim_name_prefix} ${rand} Catenates the given items together and returns the resulted string. ${VIM_NAME} = basic01_315863 ${VIM_NAME} Makes a variable available everywhere within the scope of the current suite. ${VIM_NAME} = basic01_315863 ${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_315863 --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_315863 --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} = 30cf6e1b-da8a-4893-a347-7a1fd6be4c82 ${stdout} Logs the given message with the given level. 30cf6e1b-da8a-4893-a347-7a1fd6be4c82 ${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} = 30cf6e1b-da8a-4893-a347-7a1fd6be4c82 ${CREATED_VIM_ACCOUNT_ID} Makes a variable available everywhere within the scope of the current suite. ${CREATED_VIM_ACCOUNT_ID} = 30cf6e1b-da8a-4893-a347-7a1fd6be4c82 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_315863 --k8s-nets '{"net1": "osm-ext"}' k8s02 --description "Robot cluster" 2>&1'. ${rc} = 0 ${stdout} = 7670474f-527d-442c-9a04-6b664d8e63ec ${stdout} Logs the given message with the given level. 7670474f-527d-442c-9a04-6b664d8e63ec ${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 | 7670474f-527d-442c-9a04-6b664d8e63ec | basic01_315863 | 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 | 7670474f-527d-442c-9a04-6b664d8e63ec | basic01_315863 | 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 | 7670474f-527d-442c-9a04-6b664d8e63ec | basic01_315863 | 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 | 7670474f-527d-442c-9a04-6b664d8e63ec | basic01_315863 | 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_315863 " | awk '{print $4}' 2>&1'. ${rc} = 0 ${stdout} = 30cf6e1b-da8a-4893-a347-7a1fd6be4c82 ${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} = 30cf6e1b-da8a-4893-a347-7a1fd6be4c82 ${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 30cf6e1b-da8a-4893-a347-7a1fd6be4c82 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 30cf6e1b-da8a-4893-a347-7a1fd6be4c82 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 78f32878-8c8c-4d20-bcb0-c1c685d6d910 ${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} = 78f32878-8c8c-4d20-bcb0-c1c685d6d910 ${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 5b68d860-9562-449b-8715-3d89310faf59 ${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} = 5b68d860-9562-449b-8715-3d89310faf59 ${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} = 636ca116-69ed-45c9-b91e-96c7e441a1d8 ${stdout} Logs the given message with the given level. 636ca116-69ed-45c9-b91e-96c7e441a1d8 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 636ca116-69ed-45c9-b91e-96c7e441a1d8 ${ns_id} Logs the given message with the given level. 636ca116-69ed-45c9-b91e-96c7e441a1d8 ${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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | 636ca116-69ed-45c9-b91e-96c7e441a1d8 | 2024-04-03T02:54:28 | BUILDING | INSTANTIATING (552d0e7a-7578-4806-a7a5-87aa68fa0b88) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | 636ca116-69ed-45c9-b91e-96c7e441a1d8 | 2024-04-03T02:54:28 | BUILDING | INSTANTIATING (552d0e7a-7578-4806-a7a5-87aa68fa0b88) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | 636ca116-69ed-45c9-b91e-96c7e441a1d8 | 2024-04-03T02:54:28 | BROKEN | IDLE (None) | Operation: INSTANTIATING.552d0e7a-7578- | | | | | | | 4806-a7a5-87aa68fa0b88, Stage 2/5: | | | | | | | deployment of KDUs, VMs and execution | | | | | | | environments. | | | | | | | Detail: Deploying KDU ldap: E0403 | | | | | | | 02:54:29.834477 181 memcache.go:265] | | | | | | | couldn't get current server API group | | | | | | | list: the server has asked for the | | | | | | | client to provide credentials | | | | | | | E0403 02:54:29.838763 181 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 02:54:29.841708 181 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 02:54:29.845839 181 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 02:54:29.848553 181 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | error: You must be logged in to the | | | | | | | server (the server has asked for the | | | | | | | client to provide credentials) | +------------------+--------------------------------------+---------------------+----------+-------------------+------------------------------------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting 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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | 636ca116-69ed-45c9-b91e-96c7e441a1d8 | 2024-04-03T02:54:28 | BROKEN | IDLE (None) | Operation: INSTANTIATING.552d0e7a-7578- | | | | | | | 4806-a7a5-87aa68fa0b88, Stage 2/5: | | | | | | | deployment of KDUs, VMs and execution | | | | | | | environments. | | | | | | | Detail: Deploying KDU ldap: E0403 | | | | | | | 02:54:29.834477 181 memcache.go:265] | | | | | | | couldn't get current server API group | | | | | | | list: the server has asked for the | | | | | | | client to provide credentials | | | | | | | E0403 02:54:29.838763 181 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 02:54:29.841708 181 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 02:54:29.845839 181 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 02:54:29.848553 181 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | error: You must be logged in to the | | | | | | | server (the server has asked for the | | | | | | | client to provide credentials) | +------------------+--------------------------------------+---------------------+----------+-------------------+------------------------------------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} BROKEN Fails if ``container`` contains ``item`` one or more times. '+------------------+--------------------------------------+---------------------+----------+-------------------+------------------------------------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+------------------------------------------+ | ldap | 636ca116-69ed-45c9-b91e-96c7e441a1d8 | 2024-04-03T02:54:28 | BROKEN | IDLE (None) | Operation: INSTANTIATING.552d0e7a-7578- | | | | | | | 4806-a7a5-87aa68fa0b88, Stage 2/5: | | | | | | | deployment of KDUs, VMs and execution | | | | | | | environments. | | | | | | | Detail: Deploying KDU ldap: E0403 | | | | | | | 02:54:29.834477 181 memcache.go:265] | | | | | | | couldn't get current server API group | | | | | | | list: the server has asked for the | | | | | | | client to provide credentials | | | | | | | E0403 02:54:29.838763 181 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 02:54:29.841708 181 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 02:54:29.845839 181 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 02:54:29.848553 181 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | error: You must be logged in to the | | | | | | | server (the server has asked for the | | | | | | | client to provide credentials) | +------------------+--------------------------------------+---------------------+----------+-------------------+------------------------------------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' contains 'BROKEN' ${ns_id} ${id} Logs the given message with the given level. Instantiate NS for the testsuite. azure cluster_k8s daily k8s_04 prepare regression sanity '+------------------+--------------------------------------+---------------------+----------+-------------------+------------------------------------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+-------------------+------------------------------------------+ | ldap | 636ca116-69ed-45c9-b91e-96c7e441a1d8 | 2024-04-03T02:54:28 | BROKEN | IDLE (None) | Operation: INSTANTIATING.552d0e7a-7578- | | | | | | | 4806-a7a5-87aa68fa0b88, Stage 2/5: | | | | | | | deployment of KDUs, VMs and execution | | | | | | | environments. | | | | | | | Detail: Deploying KDU ldap: E0403 | | | | | | | 02:54:29.834477 181 memcache.go:265] | | | | | | | couldn't get current server API group ... [ Message content over the limit has been removed. ] ...| | | E0403 02:54:29.848553 181 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | error: You must be logged in to the | | | | | | | server (the server has asked for the | | | | | | | client to provide credentials) | +------------------+--------------------------------------+---------------------+----------+-------------------+------------------------------------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' contains 'BROKEN' ${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} = 636ca116-69ed-45c9-b91e-96c7e441a1d8 | ${stdout} Logs the given message with the given level. 636ca116-69ed-45c9-b91e-96c7e441a1d8 | ${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 38 ${stdout} ${id} = 636ca116-69ed-45c9-b91e-96c7e441a1d8 | ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 636ca116-69ed-45c9-b91e-96c7e441a1d8 | 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 38 ${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 636ca116-69ed-45c9-b91e-96c7e441a1d8 | | grep 636ca116-69ed-45c9-b91e-96c7e441a1d8 | | awk '{print $2}' 2>&1'. ${rc} = 2 ${stdout} = +--------------------------------------+------+--------------------------------------+------------------+--------------+--------------------------------------+------------+ | vnf id ... ${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 id | name | ns id | vnf member index | vnfd name | vim account id | ip address | +--------------------------------------+------+--------------------------------------+------------------+--------------+--------------------------------------+------------+ | 4ed1f42d-bbbd-4a71-905d-aa08bd877a38 | - | 636ca116-69ed-45c9-b91e-96c7e441a1d8 | openldap | openldap_knf | 7a8df917-c55f-4ae7-a49d-b123d795de17 | None | +--------------------------------------+------+--------------------------------------+------------------+--------------+--------------------------------------+------------+ @{vdur} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{vdur} ${vnfr_list} Logs the length and contents of the ``list`` using given ``level``. ${VNF_ID} ${vnfr_list}[0] Makes a variable available everywhere within the scope of the current suite. Retrieve NF instance id to be used later on. azure cluster_k8s daily k8s_04 regression sanity verify +--------------------------------------+------+--------------------------------------+------------------+--------------+--------------------------------------+------------+ | vnf id | name | ns id | vnf member index | vnfd name | vim account id | ip address | +--------------------------------------+------+--------------------------------------+------------------+--------------+--------------------------------------+------------+ | 4ed1f42d-bbbd-4a71-905d-aa08bd877a38 | - | 636ca116-69ed-45c9-b91e-96c7e441a1d8 | openldap | openldap_knf | 7a8df917-c55f-4ae7-a49d-b123d795de17 | None | +--------------------------------------+------+--------------------------------------+------------------+--------------+--------------------------------------+------------+ ${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} = c565c020-d3c2-454d-9d82-7a0e86592714 ${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 c565c020-d3c2-454d-9d82-7a0e86592714 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = FAILED ${stdout} Logs the given message with the given level. FAILED ${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 c565c020-d3c2-454d-9d82-7a0e86592714 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = FAILED ${stdout} Logs the given message with the given level. FAILED ${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. The ns-action with id c565c020-d3c2-454d-9d82-7a0e86592714 was not completed ${stdout} ${ns_op_id} Logs the given message with the given level. Perform OSM action to upgrade the number of replicas of a deployment in the CNF. azure cluster_k8s daily k8s_04 regression sanity verify The ns-action with id c565c020-d3c2-454d-9d82-7a0e86592714 was not completed ${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. Variable '${VNF_ID}' not found. Did you mean: ${VNFD_PKG} ${NS_ID} ${count} Logs the given message with the given level. ${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 Variable '${VNF_ID}' not found. Did you mean: ${VNFD_PKG} ${NS_ID} ${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} = 91eb4323-747a-41ec-a12e-00d2ec6d6655 ${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 91eb4323-747a-41ec-a12e-00d2ec6d6655 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = FAILED ${stdout} Logs the given message with the given level. FAILED ${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 91eb4323-747a-41ec-a12e-00d2ec6d6655 --literal | yq -r .operationState 2>&1'. ${rc} = 0 ${stdout} = FAILED ${stdout} Logs the given message with the given level. FAILED ${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. The ns-action with id 91eb4323-747a-41ec-a12e-00d2ec6d6655 was not completed ${stdout} ${ns_op_id} Logs the given message with the given level. Perform OSM action to rollback the previous upgrade of the CNF. azure cluster_k8s daily k8s_04 regression sanity verify The ns-action with id 91eb4323-747a-41ec-a12e-00d2ec6d6655 was not completed ${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. Variable '${VNF_ID}' not found. Did you mean: ${VNFD_PKG} ${NS_ID} ${count} Logs the given message with the given level. ${count} Verifies that the given item is empty. Check that the number of replcias after the rollback is the expected one. azure cluster_k8s daily k8s_04 regression sanity verify Variable '${VNF_ID}' not found. Did you mean: ${VNFD_PKG} ${NS_ID} ${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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | +--------------------------------------+--------------------------------+--------+------------------------+-------------+-------------------------+ | 2a8fc93b-75bf-400b-83b3-2e6f654d8f67 | k8s_05-k8s_proxy-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 5c383933-2d84-490d-80b7-4004d3ecc095 | k8s_05-k8s_proxy-vnf1-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | +--------------------------------------+--------------------------------+--------+----------------------------------------------------------------+-------------+-------------------------+ | 2a8fc93b-75bf-400b-83b3-2e6f654d8f67 | k8s_05-k8s_proxy-vnf2-mgmtVM-0 | ACTIVE | k8s_05-k8s_proxy-datanet=192.168.143.15; osm-ext=172.21.248.89 | ubuntu18.04 | simple_requires-1-1-flv | | 5c383933-2d84-490d-80b7-4004d3ecc095 | k8s_05-k8s_proxy-vnf1-mgmtVM-0 | ACTIVE | k8s_05-k8s_proxy-datanet=192.168.143.45; osm-ext=172.21.248.20 | ubuntu18.04 | simple_requires-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | +--------------------------------------+--------------------------------+--------+----------------------------------------------------------------+-------------+-------------------------+ | 2a8fc93b-75bf-400b-83b3-2e6f654d8f67 | k8s_05-k8s_proxy-vnf2-mgmtVM-0 | ACTIVE | k8s_05-k8s_proxy-datanet=192.168.143.15; osm-ext=172.21.248.89 | ubuntu18.04 | simple_requires-1-1-flv | | 5c383933-2d84-490d-80b7-4004d3ecc095 | k8s_05-k8s_proxy-vnf1-mgmtVM-0 | ACTIVE | k8s_05-k8s_proxy-datanet=192.168.143.45; osm-ext=172.21.248.20 | ubuntu18.04 | simple_requires-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | +--------------------------------------+--------------------------------+--------+----------------------------------------------------------------+-------------+-------------------------+ | 2a8fc93b-75bf-400b-83b3-2e6f654d8f67 | k8s_05-k8s_proxy-vnf2-mgmtVM-0 | ACTIVE | k8s_05-k8s_proxy-datanet=192.168.143.15; osm-ext=172.21.248.89 | ubuntu18.04 | simple_requires-1-1-flv | | 5c383933-2d84-490d-80b7-4004d3ecc095 | k8s_05-k8s_proxy-vnf1-mgmtVM-0 | ACTIVE | k8s_05-k8s_proxy-datanet=192.168.143.45; osm-ext=172.21.248.20 | ubuntu18.04 | simple_requires-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 Keyword 'Check For NS Instance To Be Deleted' failed after retrying for 4 minutes. The last error was: ldap == ldap Delete NS instance. azure cleanup cluster_k8s daily k8s_04 regression sanity Keyword 'Check For NS Instance To Be Deleted' failed after retrying for 4 minutes. The last error was: ldap == ldap ${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} = 1 ${stdout} = ERROR: Error 409: { "code": "CONFLICT", "status": 409, "detail": "There is at least one NS instance using this descriptor" } ${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. ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. Delete NS package from OSM. azure cleanup cluster_k8s daily k8s_04 regression sanity 1 != 0 ${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} = 1 ${stdout} = ERROR: Error 409: { "code": "CONFLICT", "status": 409, "detail": "There is at least one VNF instance using this descriptor" } ${stdout} Logs the given message with the given level. ERROR: Error 409: { "code": "CONFLICT", "status": 409, "detail": "There is at least one VNF instance using this descriptor" } ${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. Delete NF package from OSM. azure cleanup cluster_k8s daily k8s_04 regression sanity 1 != 0 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 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 | +--------------------------------------+--------------------------------+--------+----------------------------------------------------------------+-------------+-------------------------+ | 2a8fc93b-75bf-400b-83b3-2e6f654d8f67 | k8s_05-k8s_proxy-vnf2-mgmtVM-0 | ACTIVE | k8s_05-k8s_proxy-datanet=192.168.143.15; osm-ext=172.21.248.89 | ubuntu18.04 | simple_requires-1-1-flv | | 5c383933-2d84-490d-80b7-4004d3ecc095 | k8s_05-k8s_proxy-vnf1-mgmtVM-0 | ACTIVE | k8s_05-k8s_proxy-datanet=192.168.143.45; osm-ext=172.21.248.20 | ubuntu18.04 | simple_requires-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | +--------------------------------------+--------------------------------+--------+----------------------------------------------------------------+-------------+-------------------------+ | 2a8fc93b-75bf-400b-83b3-2e6f654d8f67 | k8s_05-k8s_proxy-vnf2-mgmtVM-0 | ACTIVE | k8s_05-k8s_proxy-datanet=192.168.143.15; osm-ext=172.21.248.89 | ubuntu18.04 | simple_requires-1-1-flv | | 5c383933-2d84-490d-80b7-4004d3ecc095 | k8s_05-k8s_proxy-vnf1-mgmtVM-0 | ACTIVE | k8s_05-k8s_proxy-datanet=192.168.143.45; osm-ext=172.21.248.20 | ubuntu18.04 | simple_requires-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | +--------------------------------------+--------------------------------+--------+----------------------------------------------------------------+-------------+-------------------------+ | 2a8fc93b-75bf-400b-83b3-2e6f654d8f67 | k8s_05-k8s_proxy-vnf2-mgmtVM-0 | ACTIVE | k8s_05-k8s_proxy-datanet=192.168.143.15; osm-ext=172.21.248.89 | ubuntu18.04 | simple_requires-1-1-flv | | 5c383933-2d84-490d-80b7-4004d3ecc095 | k8s_05-k8s_proxy-vnf1-mgmtVM-0 | ACTIVE | k8s_05-k8s_proxy-datanet=192.168.143.45; osm-ext=172.21.248.20 | ubuntu18.04 | simple_requires-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | +--------------------------------------+--------------------------------+--------+----------------------------------------------------------------+-------------+-------------------------+ | 2a8fc93b-75bf-400b-83b3-2e6f654d8f67 | k8s_05-k8s_proxy-vnf2-mgmtVM-0 | ACTIVE | k8s_05-k8s_proxy-datanet=192.168.143.15; osm-ext=172.21.248.89 | ubuntu18.04 | simple_requires-1-1-flv | | 5c383933-2d84-490d-80b7-4004d3ecc095 | k8s_05-k8s_proxy-vnf1-mgmtVM-0 | ACTIVE | k8s_05-k8s_proxy-datanet=192.168.143.45; osm-ext=172.21.248.20 | ubuntu18.04 | simple_requires-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | +--------------------------------------+--------------------------------+--------+----------------------------------------------------------------+-------------+-------------------------+ | 2a8fc93b-75bf-400b-83b3-2e6f654d8f67 | k8s_05-k8s_proxy-vnf2-mgmtVM-0 | ACTIVE | k8s_05-k8s_proxy-datanet=192.168.143.15; osm-ext=172.21.248.89 | ubuntu18.04 | simple_requires-1-1-flv | | 5c383933-2d84-490d-80b7-4004d3ecc095 | k8s_05-k8s_proxy-vnf1-mgmtVM-0 | ACTIVE | k8s_05-k8s_proxy-datanet=192.168.143.45; osm-ext=172.21.248.20 | ubuntu18.04 | simple_requires-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | +--------------------------------------+--------------------------------+--------+----------------------------------------------------------------+-------------+-------------------------+ | 2a8fc93b-75bf-400b-83b3-2e6f654d8f67 | k8s_05-k8s_proxy-vnf2-mgmtVM-0 | ACTIVE | k8s_05-k8s_proxy-datanet=192.168.143.15; osm-ext=172.21.248.89 | ubuntu18.04 | simple_requires-1-1-flv | | 5c383933-2d84-490d-80b7-4004d3ecc095 | k8s_05-k8s_proxy-vnf1-mgmtVM-0 | ACTIVE | k8s_05-k8s_proxy-datanet=192.168.143.45; osm-ext=172.21.248.20 | ubuntu18.04 | simple_requires-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | +--------------------------------------+--------------------------------+--------+----------------------------------------------------------------+-------------+-------------------------+ | 2a8fc93b-75bf-400b-83b3-2e6f654d8f67 | k8s_05-k8s_proxy-vnf2-mgmtVM-0 | ACTIVE | k8s_05-k8s_proxy-datanet=192.168.143.15; osm-ext=172.21.248.89 | ubuntu18.04 | simple_requires-1-1-flv | | 5c383933-2d84-490d-80b7-4004d3ecc095 | k8s_05-k8s_proxy-vnf1-mgmtVM-0 | ACTIVE | k8s_05-k8s_proxy-datanet=192.168.143.45; osm-ext=172.21.248.20 | ubuntu18.04 | simple_requires-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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} = +--------------------------------------+------------------------------------------------+--------+------------------------------------------------------------------+-------------+---------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------------+--------+------------------------------------------------------------------+-------------+-----------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------------+--------+------------------------------------------------------------------+-------------+-----------------------------------+ | ad4a8db7-3661-4f87-b64a-74de03a61777 | k8s_06-nopasswd_-vnf2-mgmtVM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | fa156ef1-3cc4-41b1-821f-012eab7a7a92 | basic_05_instant-vnf-ubuntu_cloudinit-vnf-VM-0 | BUILD | | ubuntu18.04 | ubuntu_cloudinit-vnf-VM-vnf-1-flv | | 9644c4b6-23bf-44a2-b43f-a1c433f8cbdf | k8s_06-nopasswd_-vnf1-mgmtVM-0 | ACTIVE | k8s_06-nopasswd_-datanet=192.168.129.188; osm-ext=172.21.248.139 | ubuntu18.04 | simple_requires-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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} = +--------------------------------------+------------------------------------------------+--------+------------------------------------------------------------------+-------------+---------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+------------------------------------------------+--------+------------------------------------------------------------------+-------------+-----------------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+------------------------------------------------+--------+------------------------------------------------------------------+-------------+-----------------------------------+ | ad4a8db7-3661-4f87-b64a-74de03a61777 | k8s_06-nopasswd_-vnf2-mgmtVM-0 | ACTIVE | k8s_06-nopasswd_-datanet=192.168.129.31; osm-ext=172.21.249.122 | ubuntu18.04 | simple_requires-1-1-flv | | fa156ef1-3cc4-41b1-821f-012eab7a7a92 | basic_05_instant-vnf-ubuntu_cloudinit-vnf-VM-0 | ACTIVE | osm-ext=172.21.248.246 | ubuntu18.04 | ubuntu_cloudinit-vnf-VM-vnf-1-flv | | 9644c4b6-23bf-44a2-b43f-a1c433f8cbdf | k8s_06-nopasswd_-vnf1-mgmtVM-0 | ACTIVE | k8s_06-nopasswd_-datanet=192.168.129.188; osm-ext=172.21.248.139 | ubuntu18.04 | simple_requires-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 Keyword 'Check For NS Instance To Be Deleted' failed after retrying for 4 minutes. The last error was: ldap == ldap 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 openldap_ns 2>&1'. ${rc} = 1 ${stdout} = ERROR: Error 409: { "code": "CONFLICT", "status": 409, "detail": "There is at least one NS instance using this descriptor" } ${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: Error 409: { "code": "CONFLICT", "status": 409, "detail": "There is at least one NS instance using this descriptor" } ${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} = 0 ${stdout} = openldap_ns ${rc},${stdout} Logs the given message with the given level. 0,openldap_ns ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. openldap_ns == openldap_ns ${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} = 0 ${stdout} = openldap_ns ${rc},${stdout} Logs the given message with the given level. 0,openldap_ns ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. openldap_ns == openldap_ns ${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} = 0 ${stdout} = openldap_ns ${rc},${stdout} Logs the given message with the given level. 0,openldap_ns ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. openldap_ns == openldap_ns ${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} = 0 ${stdout} = openldap_ns ${rc},${stdout} Logs the given message with the given level. 0,openldap_ns ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. openldap_ns == openldap_ns ${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} = 0 ${stdout} = openldap_ns ${rc},${stdout} Logs the given message with the given level. 0,openldap_ns ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. openldap_ns == openldap_ns Keyword 'Check For NSD' failed after retrying for 1 minute. The last error was: openldap_ns == openldap_ns Delete VNFD ${VNFD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete openldap_knf 2>&1'. ${rc} = 1 ${stdout} = ERROR: Error 409: { "code": "CONFLICT", "status": 409, "detail": "There is at least one VNF instance using this descriptor" } ${stdout} Logs the given message with the given level. ERROR: Error 409: { "code": "CONFLICT", "status": 409, "detail": "There is at least one VNF instance using this descriptor" } ${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 openldap_knf 2>&1'. ${rc} = 0 ${stdout} = openldap_knf ${rc},${stdout} Logs the given message with the given level. 0,openldap_knf ${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. openldap_knf == openldap_knf ${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} = 0 ${stdout} = openldap_knf ${rc},${stdout} Logs the given message with the given level. 0,openldap_knf ${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. openldap_knf == openldap_knf ${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} = 0 ${stdout} = openldap_knf ${rc},${stdout} Logs the given message with the given level. 0,openldap_knf ${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. openldap_knf == openldap_knf ${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} = 0 ${stdout} = openldap_knf ${rc},${stdout} Logs the given message with the given level. 0,openldap_knf ${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. openldap_knf == openldap_knf ${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} = 0 ${stdout} = openldap_knf ${rc},${stdout} Logs the given message with the given level. 0,openldap_knf ${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. openldap_knf == openldap_knf Keyword 'Check For VNFD' failed after retrying for 1 minute. The last error was: openldap_knf == openldap_knf [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} = 1 ${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 ERROR: Error 409: { "code": "CONFLICT", "status": 409, "detail": "vnfd with id 'openldap_knf' already exists for this project" } ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${lines} ${stdout} Returns and logs the number of lines in the given string. ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} Upload NF package for the testsuite. azure cluster_k8s daily k8s_07 regression 1 != 0 '%{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} = 1 ${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 ERROR: Error 409: { "code": "CONFLICT", "status": 409, "detail": "nsd with id 'openldap_ns' already exists for this project" } ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${lines} ${stdout} Returns and logs the number of lines in the given string. ${last} ${lines} - 1 Evaluates the given expression in Python and returns the result. ${id} ${stdout} ${last} Returns the specified line from the given ``string``. ${id} Upload NS package for the testsuite. azure cluster_k8s daily k8s_07 regression 1 != 0 ${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} = ba54a551-ceae-4c1d-94f4-7c80daa8a7f0 ${stdout} Logs the given message with the given level. ba54a551-ceae-4c1d-94f4-7c80daa8a7f0 ${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} = ba54a551-ceae-4c1d-94f4-7c80daa8a7f0 ${created_vim_account_id} Logs the given message with the given level. ba54a551-ceae-4c1d-94f4-7c80daa8a7f0 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} = e8f67ec7-c9fc-4c43-b38f-2f625239df03 ${stdout} Logs the given message with the given level. e8f67ec7-c9fc-4c43-b38f-2f625239df03 ${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 | e8f67ec7-c9fc-4c43-b38f-2f625239df03 | 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 | e8f67ec7-c9fc-4c43-b38f-2f625239df03 | 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 | e8f67ec7-c9fc-4c43-b38f-2f625239df03 | 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 | e8f67ec7-c9fc-4c43-b38f-2f625239df03 | 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} = 88947844-0671-4026-8e01-f945ec62a776 ${stdout} Logs the given message with the given level. 88947844-0671-4026-8e01-f945ec62a776 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 88947844-0671-4026-8e01-f945ec62a776 ${ns_id} Logs the given message with the given level. 88947844-0671-4026-8e01-f945ec62a776 ${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 | +--------------------------------------+--------------------------------+--------+-------------------------------------------------------------------------------------+-------------+-------------------------+ | c72b3a79-d66c-4f95-9f06-3d7af040fe1e | basic_08_disable-vnf2-dataVM-0 | ACTIVE | basic_08_disable-datanet=192.168.168.182; basic_08_disable-internal=192.168.115.120 | ubuntu20.04 | simple_requires-1-1-flv | | 09923b02-c108-48fd-b39e-bacccbc2fbf7 | basic_08_disable-vnf2-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.115.245; osm-ext=172.21.248.69 | ubuntu20.04 | simple_requires-1-1-flv | | c9a7ca56-347d-4a52-975b-a7c82bd94058 | basic_08_disable-vnf1-dataVM-0 | ACTIVE | basic_08_disable-datanet=192.168.168.54; basic_08_disable-internal=192.168.110.197 | ubuntu20.04 | simple_requires-1-1-flv | | 82ba7d0e-4b5d-4f32-bda9-918e63e1f81c | basic_08_disable-vnf1-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.110.78; osm-ext=172.21.249.141 | ubuntu20.04 | simple_requires-1-1-flv | | ad4a8db7-3661-4f87-b64a-74de03a61777 | k8s_06-nopasswd_-vnf2-mgmtVM-0 | ACTIVE | k8s_06-nopasswd_-datanet=192.168.129.31; osm-ext=172.21.249.122 | ubuntu18.04 | simple_requires-1-1-flv | | 9644c4b6-23bf-44a2-b43f-a1c433f8cbdf | k8s_06-nopasswd_-vnf1-mgmtVM-0 | ACTIVE | k8s_06-nopasswd_-datanet=192.168.129.188; osm-ext=172.21.248.139 | ubuntu18.04 | simple_requires-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 inst... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+------------------------------------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+------------------------------------------+ | ldap | 636ca116-69ed-45c9-b91e-96c7e441a1d8 | 2024-04-03T02:54:28 | BROKEN | IDLE (None) | Operation: TERMINATING.e5d28a71-3d52- | | | | | | | 4486-a50c-a999a0845ede, Stage 3/3 delete | | | | | | | all.. | | | | | | | Detail: Terminating KDU 'ldap': Error: | | | | | | | Kubernetes cluster unreachable: the | | | | | | | server has asked for the client to | | | | | | | provide credentials | | ldap | 88947844-0671-4026-8e01-f945ec62a776 | 2024-04-03T03:06:48 | BUILDING | INSTANTIATING (666e2969-29a2-4170-8734-e9c3cf200e3f) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+------------------------------------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting 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 | +--------------------------------------+--------------------------------+--------+-------------------------------------------------------------------------------------+-------------+-------------------------+ | c72b3a79-d66c-4f95-9f06-3d7af040fe1e | basic_08_disable-vnf2-dataVM-0 | ACTIVE | basic_08_disable-datanet=192.168.168.182; basic_08_disable-internal=192.168.115.120 | ubuntu20.04 | simple_requires-1-1-flv | | 09923b02-c108-48fd-b39e-bacccbc2fbf7 | basic_08_disable-vnf2-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.115.245; osm-ext=172.21.248.69 | ubuntu20.04 | simple_requires-1-1-flv | | c9a7ca56-347d-4a52-975b-a7c82bd94058 | basic_08_disable-vnf1-dataVM-0 | ACTIVE | basic_08_disable-datanet=192.168.168.54; basic_08_disable-internal=192.168.110.197 | ubuntu20.04 | simple_requires-1-1-flv | | 82ba7d0e-4b5d-4f32-bda9-918e63e1f81c | basic_08_disable-vnf1-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.110.78; osm-ext=172.21.249.141 | ubuntu20.04 | simple_requires-1-1-flv | | ad4a8db7-3661-4f87-b64a-74de03a61777 | k8s_06-nopasswd_-vnf2-mgmtVM-0 | ACTIVE | k8s_06-nopasswd_-datanet=192.168.129.31; osm-ext=172.21.249.122 | ubuntu18.04 | simple_requires-1-1-flv | | 9644c4b6-23bf-44a2-b43f-a1c433f8cbdf | k8s_06-nopasswd_-vnf1-mgmtVM-0 | ACTIVE | k8s_06-nopasswd_-datanet=192.168.129.188; osm-ext=172.21.248.139 | ubuntu18.04 | simple_requires-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 inst... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+------------------------------------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+------------------------------------------+ | ldap | 636ca116-69ed-45c9-b91e-96c7e441a1d8 | 2024-04-03T02:54:28 | BROKEN | IDLE (None) | Operation: TERMINATING.e5d28a71-3d52- | | | | | | | 4486-a50c-a999a0845ede, Stage 3/3 delete | | | | | | | all.. | | | | | | | Detail: Terminating KDU 'ldap': Error: | | | | | | | Kubernetes cluster unreachable: the | | | | | | | server has asked for the client to | | | | | | | provide credentials | | ldap | 88947844-0671-4026-8e01-f945ec62a776 | 2024-04-03T03:06:48 | BUILDING | INSTANTIATING (666e2969-29a2-4170-8734-e9c3cf200e3f) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+------------------------------------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} BROKEN Fails if ``container`` contains ``item`` one or more times. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+------------------------------------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+------------------------------------------+ | ldap | 636ca116-69ed-45c9-b91e-96c7e441a1d8 | 2024-04-03T02:54:28 | BROKEN | IDLE (None) | Operation: TERMINATING.e5d28a71-3d52- | | | | | | | 4486-a50c-a999a0845ede, Stage 3/3 delete | | | | | | | all.. | | | | | | | Detail: Terminating KDU 'ldap': Error: | | | | | | | Kubernetes cluster unreachable: the | | | | | | | server has asked for the client to | | | | | | | provide credentials | | ldap | 88947844-0671-4026-8e01-f945ec62a776 | 2024-04-03T03:06:48 | BUILDING | INSTANTIATING (666e2969-29a2-4170-8734-e9c3cf200e3f) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+------------------------------------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' contains 'BROKEN' ${ns_id} ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. Instantiate NS for the testsuite. azure cluster_k8s daily k8s_07 regression '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+------------------------------------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+------------------------------------------+ | ldap | 636ca116-69ed-45c9-b91e-96c7e441a1d8 | 2024-04-03T02:54:28 | BROKEN | IDLE (None) | Operation: TERMINATING.e5d28a71-3d52- | | | | | | | 4486-a50c-a999a0845ede, Stage 3/3 delete | | | | | | | all.. | | | | | | | Detail: Terminating KDU 'ldap': Error: | | | | | | | Kubernetes cluster unreachable: the | | | | | | | server has asked for the client to | | | | | | | provide credentials | | ldap | 88947844-0671-4026-8e01-f945ec62a776 | 2024-04-03T03:06:48 | BUILDING | INSTANTIATING (666e2969-29a2-4170-8734-e9c3cf200e3f) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+------------------------------------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' contains 'BROKEN' ${NS_NAME} Delete a NS instance. ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} ${ns_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${ns_delete_max_wait_time} = 240.0 ${ns_delete_max_wait_time} Logs the given message with the given level. 240.0 ${rc} ${stdout} osm ns-delete ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-delete ldap 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${ns_delete_max_wait_time} ${NS_DELETE_POL_TIME} Check For NS Instance To Be Deleted ${ns} Runs the specified keyword and retries if it fails. ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------+--------+-------------------------------------------------------------------------------------+-------------+------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------+--------+-------------------------------------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------+--------+-------------------------------------------------------------------------------------+-------------+-------------------------+ | c72b3a79-d66c-4f95-9f06-3d7af040fe1e | basic_08_disable-vnf2-dataVM-0 | ACTIVE | basic_08_disable-datanet=192.168.168.182; basic_08_disable-internal=192.168.115.120 | ubuntu20.04 | simple_requires-1-1-flv | | 09923b02-c108-48fd-b39e-bacccbc2fbf7 | basic_08_disable-vnf2-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.115.245; osm-ext=172.21.248.69 | ubuntu20.04 | simple_requires-1-1-flv | | c9a7ca56-347d-4a52-975b-a7c82bd94058 | basic_08_disable-vnf1-dataVM-0 | ACTIVE | basic_08_disable-datanet=192.168.168.54; basic_08_disable-internal=192.168.110.197 | ubuntu20.04 | simple_requires-1-1-flv | | 82ba7d0e-4b5d-4f32-bda9-918e63e1f81c | basic_08_disable-vnf1-mgmtVM-0 | ACTIVE | basic_08_disable-internal=192.168.110.78; osm-ext=172.21.249.141 | ubuntu20.04 | simple_requires-1-1-flv | | ad4a8db7-3661-4f87-b64a-74de03a61777 | k8s_06-nopasswd_-vnf2-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.122 | ubuntu18.04 | simple_requires-1-1-flv | | 9644c4b6-23bf-44a2-b43f-a1c433f8cbdf | k8s_06-nopasswd_-vnf1-mgmtVM-0 | ACTIVE | osm-ext=172.21.248.139 | ubuntu18.04 | simple_requires-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 ldap ${rc},${stdout} Logs the given message with the given level. 0,ldap ldap ${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} = 1 ${stdout} = ERROR: Error 409: { "code": "CONFLICT", "status": 409, "detail": "There is at least one VNF using this k8scluster" } ${stdout} Logs the given message with the given level. ERROR: Error 409: { "code": "CONFLICT", "status": 409, "detail": "There is at least one VNF using this k8scluster" } ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${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. Remove K8s cluster from OSM. azure cleanup cluster_k8s daily k8s_07 regression 1 != 0 ${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} = 1 ${stdout} = ERROR: Error 409: { "code": "CONFLICT", "status": 409, "detail": "There is at least one VNF using this VIM account" } ${rc},${stdout} Logs the given message with the given level. 1,ERROR: Error 409: { "code": "CONFLICT", "status": 409, "detail": "There is at least one VNF using this VIM account" } ${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} = 0 ${stdout} = k8s07_dummy ${rc},${stdout} Logs the given message with the given level. 0,k8s07_dummy ${stdout} ${vim_name} Fails if objects are equal after converting them to strings. k8s07_dummy == k8s07_dummy ${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} = 0 ${stdout} = k8s07_dummy ${rc},${stdout} Logs the given message with the given level. 0,k8s07_dummy ${stdout} ${vim_name} Fails if objects are equal after converting them to strings. k8s07_dummy == k8s07_dummy ${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} = 0 ${stdout} = k8s07_dummy ${rc},${stdout} Logs the given message with the given level. 0,k8s07_dummy ${stdout} ${vim_name} Fails if objects are equal after converting them to strings. k8s07_dummy == k8s07_dummy ${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} = 0 ${stdout} = k8s07_dummy ${rc},${stdout} Logs the given message with the given level. 0,k8s07_dummy ${stdout} ${vim_name} Fails if objects are equal after converting them to strings. k8s07_dummy == k8s07_dummy ${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} = 0 ${stdout} = k8s07_dummy ${rc},${stdout} Logs the given message with the given level. 0,k8s07_dummy ${stdout} ${vim_name} Fails if objects are equal after converting them to strings. k8s07_dummy == k8s07_dummy Keyword 'Check For VIM Target' failed after retrying for 1 minute. The last error was: k8s07_dummy == k8s07_dummy Remove VIM from OSM. azure cleanup cluster_k8s daily k8s_07 regression Keyword 'Check For VIM Target' failed after retrying for 1 minute. The last error was: k8s07_dummy == k8s07_dummy ${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} = 1 ${stdout} = ERROR: Error 409: { "code": "CONFLICT", "status": 409, "detail": "There is at least one NS instance using this descriptor" } ${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. ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. Delete NS package from OSM. azure cleanup cluster_k8s daily k8s_07 regression 1 != 0 ${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} = 1 ${stdout} = ERROR: Error 409: { "code": "CONFLICT", "status": 409, "detail": "There is at least one VNF instance using this descriptor" } ${stdout} Logs the given message with the given level. ERROR: Error 409: { "code": "CONFLICT", "status": 409, "detail": "There is at least one VNF instance using this descriptor" } ${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. Delete NF package from OSM. azure cleanup cluster_k8s daily k8s_07 regression 1 != 0 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. ${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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 ldap ${rc},${stdout} Logs the given message with the given level. 0,ldap ldap ${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 openldap_ns 2>&1'. ${rc} = 1 ${stdout} = ERROR: Error 409: { "code": "CONFLICT", "status": 409, "detail": "There is at least one NS instance using this descriptor" } ${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: Error 409: { "code": "CONFLICT", "status": 409, "detail": "There is at least one NS instance using this descriptor" } ${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} = 0 ${stdout} = openldap_ns ${rc},${stdout} Logs the given message with the given level. 0,openldap_ns ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. openldap_ns == openldap_ns ${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} = 0 ${stdout} = openldap_ns ${rc},${stdout} Logs the given message with the given level. 0,openldap_ns ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. openldap_ns == openldap_ns ${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} = 0 ${stdout} = openldap_ns ${rc},${stdout} Logs the given message with the given level. 0,openldap_ns ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. openldap_ns == openldap_ns ${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} = 0 ${stdout} = openldap_ns ${rc},${stdout} Logs the given message with the given level. 0,openldap_ns ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. openldap_ns == openldap_ns ${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} = 0 ${stdout} = openldap_ns ${rc},${stdout} Logs the given message with the given level. 0,openldap_ns ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. openldap_ns == openldap_ns Keyword 'Check For NSD' failed after retrying for 1 minute. The last error was: openldap_ns == openldap_ns Delete VNFD ${VNFD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete openldap_knf 2>&1'. ${rc} = 1 ${stdout} = ERROR: Error 409: { "code": "CONFLICT", "status": 409, "detail": "There is at least one VNF instance using this descriptor" } ${stdout} Logs the given message with the given level. ERROR: Error 409: { "code": "CONFLICT", "status": 409, "detail": "There is at least one VNF instance using this descriptor" } ${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 openldap_knf 2>&1'. ${rc} = 0 ${stdout} = openldap_knf ${rc},${stdout} Logs the given message with the given level. 0,openldap_knf ${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. openldap_knf == openldap_knf ${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} = 0 ${stdout} = openldap_knf ${rc},${stdout} Logs the given message with the given level. 0,openldap_knf ${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. openldap_knf == openldap_knf ${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} = 0 ${stdout} = openldap_knf ${rc},${stdout} Logs the given message with the given level. 0,openldap_knf ${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. openldap_knf == openldap_knf ${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} = 0 ${stdout} = openldap_knf ${rc},${stdout} Logs the given message with the given level. 0,openldap_knf ${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. openldap_knf == openldap_knf ${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} = 0 ${stdout} = openldap_knf ${rc},${stdout} Logs the given message with the given level. 0,openldap_knf ${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. openldap_knf == openldap_knf Keyword 'Check For VNFD' failed after retrying for 1 minute. The last error was: openldap_knf == openldap_knf Delete K8s Cluster ${K8SCLUSTER_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${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} = 1 ${stdout} = ERROR: Error 409: { "code": "CONFLICT", "status": 409, "detail": "There is at least one VNF using this k8scluster" } ${stdout} Logs the given message with the given level. ERROR: Error 409: { "code": "CONFLICT", "status": 409, "detail": "There is at least one VNF using this k8scluster" } ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> 1 != 0 ${K8SCLUSTER_DELETE_MAX_WAIT_TIME} ${K8SCLUSTER_DELETE_POL_TIME} Check For K8s Cluster To Be Deleted ${k8scluster_name} Runs the specified keyword and retries if it fails. ${k8scluster_name} Check if a Kubernetes cluster identified by name is not present in OSM. ${rc} ${stdout} osm k8scluster-list --filter name="${k8scluster_name}" | awk '{print $2}' | grep ${k8scluster_name} Runs the given command in the system and returns the RC and output. Running command 'osm k8scluster-list --filter name="k8s07" | awk '{print $2}' | grep k8s07 2>&1'. ${rc} = 0 ${stdout} = k8s07 ${rc},${stdout} Logs the given message with the given level. 0,k8s07 ${stdout} Verifies that the given item is empty. Length is 5 'k8s07' should be empty. ${k8scluster_name} Check if a Kubernetes cluster identified by name is not present in OSM. ${rc} ${stdout} osm k8scluster-list --filter name="${k8scluster_name}" | awk '{print $2}' | grep ${k8scluster_name} Runs the given command in the system and returns the RC and output. Running command 'osm k8scluster-list --filter name="k8s07" | awk '{print $2}' | grep k8s07 2>&1'. ${rc} = 0 ${stdout} = k8s07 ${rc},${stdout} Logs the given message with the given level. 0,k8s07 ${stdout} Verifies that the given item is empty. Length is 5 'k8s07' should be empty. ${k8scluster_name} Check if a Kubernetes cluster identified by name is not present in OSM. ${rc} ${stdout} osm k8scluster-list --filter name="${k8scluster_name}" | awk '{print $2}' | grep ${k8scluster_name} Runs the given command in the system and returns the RC and output. Running command 'osm k8scluster-list --filter name="k8s07" | awk '{print $2}' | grep k8s07 2>&1'. ${rc} = 0 ${stdout} = k8s07 ${rc},${stdout} Logs the given message with the given level. 0,k8s07 ${stdout} Verifies that the given item is empty. Length is 5 'k8s07' should be empty. ${k8scluster_name} Check if a Kubernetes cluster identified by name is not present in OSM. ${rc} ${stdout} osm k8scluster-list --filter name="${k8scluster_name}" | awk '{print $2}' | grep ${k8scluster_name} Runs the given command in the system and returns the RC and output. Running command 'osm k8scluster-list --filter name="k8s07" | awk '{print $2}' | grep k8s07 2>&1'. ${rc} = 0 ${stdout} = k8s07 ${rc},${stdout} Logs the given message with the given level. 0,k8s07 ${stdout} Verifies that the given item is empty. Length is 5 'k8s07' should be empty. ${k8scluster_name} Check if a Kubernetes cluster identified by name is not present in OSM. ${rc} ${stdout} osm k8scluster-list --filter name="${k8scluster_name}" | awk '{print $2}' | grep ${k8scluster_name} Runs the given command in the system and returns the RC and output. Running command 'osm k8scluster-list --filter name="k8s07" | awk '{print $2}' | grep k8s07 2>&1'. ${rc} = 0 ${stdout} = k8s07 ${rc},${stdout} Logs the given message with the given level. 0,k8s07 ${stdout} Verifies that the given item is empty. Length is 5 'k8s07' should be empty. ${k8scluster_name} Check if a Kubernetes cluster identified by name is not present in OSM. ${rc} ${stdout} osm k8scluster-list --filter name="${k8scluster_name}" | awk '{print $2}' | grep ${k8scluster_name} Runs the given command in the system and returns the RC and output. Running command 'osm k8scluster-list --filter name="k8s07" | awk '{print $2}' | grep k8s07 2>&1'. ${rc} = 0 ${stdout} = k8s07 ${rc},${stdout} Logs the given message with the given level. 0,k8s07 ${stdout} Verifies that the given item is empty. Length is 5 'k8s07' should be empty. ${k8scluster_name} Check if a Kubernetes cluster identified by name is not present in OSM. ${rc} ${stdout} osm k8scluster-list --filter name="${k8scluster_name}" | awk '{print $2}' | grep ${k8scluster_name} Runs the given command in the system and returns the RC and output. Running command 'osm k8scluster-list --filter name="k8s07" | awk '{print $2}' | grep k8s07 2>&1'. ${rc} = 0 ${stdout} = k8s07 ${rc},${stdout} Logs the given message with the given level. 0,k8s07 ${stdout} Verifies that the given item is empty. Length is 5 'k8s07' should be empty. ${k8scluster_name} Check if a Kubernetes cluster identified by name is not present in OSM. ${rc} ${stdout} osm k8scluster-list --filter name="${k8scluster_name}" | awk '{print $2}' | grep ${k8scluster_name} Runs the given command in the system and returns the RC and output. Running command 'osm k8scluster-list --filter name="k8s07" | awk '{print $2}' | grep k8s07 2>&1'. ${rc} = 0 ${stdout} = k8s07 ${rc},${stdout} Logs the given message with the given level. 0,k8s07 ${stdout} Verifies that the given item is empty. Length is 5 'k8s07' should be empty. ${k8scluster_name} Check if a Kubernetes cluster identified by name is not present in OSM. ${rc} ${stdout} osm k8scluster-list --filter name="${k8scluster_name}" | awk '{print $2}' | grep ${k8scluster_name} Runs the given command in the system and returns the RC and output. Running command 'osm k8scluster-list --filter name="k8s07" | awk '{print $2}' | grep k8s07 2>&1'. ${rc} = 0 ${stdout} = k8s07 ${rc},${stdout} Logs the given message with the given level. 0,k8s07 ${stdout} Verifies that the given item is empty. Length is 5 'k8s07' should be empty. Keyword 'Check For K8s Cluster To Be Deleted' failed after retrying for 2 minutes. The last error was: 'k8s07' should be empty. Delete VIM Target ${VIM_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${VIM_NAME} Unregister/delete a VIM account from OSM. ${rc} ${stdout} Run And Return Rc And Output osm vim-delete ${vim_name} Runs the keyword and continues execution even if a failure occurs. osm vim-delete ${vim_name} Runs the given command in the system and returns the RC and output. Running command 'osm vim-delete k8s07_dummy 2>&1'. ${rc} = 1 ${stdout} = ERROR: Error 409: { "code": "CONFLICT", "status": 409, "detail": "There is at least one VNF using this VIM account" } ${rc},${stdout} Logs the given message with the given level. 1,ERROR: Error 409: { "code": "CONFLICT", "status": 409, "detail": "There is at least one VNF using this VIM account" } ${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} = 0 ${stdout} = k8s07_dummy ${rc},${stdout} Logs the given message with the given level. 0,k8s07_dummy ${stdout} ${vim_name} Fails if objects are equal after converting them to strings. k8s07_dummy == k8s07_dummy ${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} = 0 ${stdout} = k8s07_dummy ${rc},${stdout} Logs the given message with the given level. 0,k8s07_dummy ${stdout} ${vim_name} Fails if objects are equal after converting them to strings. k8s07_dummy == k8s07_dummy ${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} = 0 ${stdout} = k8s07_dummy ${rc},${stdout} Logs the given message with the given level. 0,k8s07_dummy ${stdout} ${vim_name} Fails if objects are equal after converting them to strings. k8s07_dummy == k8s07_dummy ${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} = 0 ${stdout} = k8s07_dummy ${rc},${stdout} Logs the given message with the given level. 0,k8s07_dummy ${stdout} ${vim_name} Fails if objects are equal after converting them to strings. k8s07_dummy == k8s07_dummy ${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} = 0 ${stdout} = k8s07_dummy ${rc},${stdout} Logs the given message with the given level. 0,k8s07_dummy ${stdout} ${vim_name} Fails if objects are equal after converting them to strings. k8s07_dummy == k8s07_dummy Keyword 'Check For VIM Target' failed after retrying for 1 minute. The last error was: k8s07_dummy == k8s07_dummy [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 f151e649-6c3e-4979-8263-4c6ca952f3a3 ${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} = f151e649-6c3e-4979-8263-4c6ca952f3a3 ${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 dd9216f0-25fd-4853-98f5-9d95f28b39f7 ${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} = dd9216f0-25fd-4853-98f5-9d95f28b39f7 ${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} = e84b2708-0364-4ee1-bfca-53abac693dad ${rc},${stdout} Logs the given message with the given level. 0,e84b2708-0364-4ee1-bfca-53abac693dad ${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} = 8c816366-0e1a-4dd7-91b6-bf26c59c1d94 ${stdout} Logs the given message with the given level. 8c816366-0e1a-4dd7-91b6-bf26c59c1d94 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 8c816366-0e1a-4dd7-91b6-bf26c59c1d94 ${ns_id} Logs the given message with the given level. 8c816366-0e1a-4dd7-91b6-bf26c59c1d94 ${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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 inst... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+------------------------------------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+------------------------------------------+ | ldap | 636ca116-69ed-45c9-b91e-96c7e441a1d8 | 2024-04-03T02:54:28 | BROKEN | IDLE (None) | Operation: TERMINATING.78b2b0d1-aa6b- | | | | | | | 472d-9737-c70590205ada, Stage 3/3 delete | | | | | | | all.. | | | | | | | Detail: Terminating KDU 'ldap': Error: | | | | | | | Kubernetes cluster unreachable: the | | | | | | | server has asked for the client to | | | | | | | provide credentials | | ldap | 88947844-0671-4026-8e01-f945ec62a776 | 2024-04-03T03:06:48 | BROKEN | IDLE (None) | Operation: INSTANTIATING.666e2969-29a2- | | | | | | | 4170-8734-e9c3cf200e3f, Stage 2/5: | | | | | | | deployment of KDUs, VMs and execution | | | | | | | environments. | | | | | | | Detail: Deploying KDU ldap: E0403 | | | | | | | 03:06:50.037863 242 memcache.go:265] | | | | | | | couldn't get current server API group | | | | | | | list: the server has asked for the | | | | | | | client to provide credentials | | | | | | | E0403 03:06:50.041464 242 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:06:50.043321 242 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:06:50.044859 242 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:06:50.046039 242 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | error: You must be logged in to the | | | | | | | server (the server has asked for the | | | | | | | client to provide credentials) | | ldap | 8c816366-0e1a-4dd7-91b6-bf26c59c1d94 | 2024-04-03T03:13:46 | BUILDING | INSTANTIATING (92d4c589-a8ea-42ec-92f3-ec413aaf86b7) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+------------------------------------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting 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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 inst... ${rc},${stdout} Logs the given message with the given level. 0,+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+------------------------------------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+------------------------------------------+ | ldap | 636ca116-69ed-45c9-b91e-96c7e441a1d8 | 2024-04-03T02:54:28 | BROKEN | IDLE (None) | Operation: TERMINATING.78b2b0d1-aa6b- | | | | | | | 472d-9737-c70590205ada, Stage 3/3 delete | | | | | | | all.. | | | | | | | Detail: Terminating KDU 'ldap': Error: | | | | | | | Kubernetes cluster unreachable: the | | | | | | | server has asked for the client to | | | | | | | provide credentials | | ldap | 88947844-0671-4026-8e01-f945ec62a776 | 2024-04-03T03:06:48 | BROKEN | IDLE (None) | Operation: INSTANTIATING.666e2969-29a2- | | | | | | | 4170-8734-e9c3cf200e3f, Stage 2/5: | | | | | | | deployment of KDUs, VMs and execution | | | | | | | environments. | | | | | | | Detail: Deploying KDU ldap: E0403 | | | | | | | 03:06:50.037863 242 memcache.go:265] | | | | | | | couldn't get current server API group | | | | | | | list: the server has asked for the | | | | | | | client to provide credentials | | | | | | | E0403 03:06:50.041464 242 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:06:50.043321 242 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:06:50.044859 242 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:06:50.046039 242 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | error: You must be logged in to the | | | | | | | server (the server has asked for the | | | | | | | client to provide credentials) | | ldap | 8c816366-0e1a-4dd7-91b6-bf26c59c1d94 | 2024-04-03T03:13:46 | BUILDING | INSTANTIATING (92d4c589-a8ea-42ec-92f3-ec413aaf86b7) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+------------------------------------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} BROKEN Fails if ``container`` contains ``item`` one or more times. '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+------------------------------------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+------------------------------------------+ | ldap | 636ca116-69ed-45c9-b91e-96c7e441a1d8 | 2024-04-03T02:54:28 | BROKEN | IDLE (None) | Operation: TERMINATING.78b2b0d1-aa6b- | | | | | | | 472d-9737-c70590205ada, Stage 3/3 delete | | | | | | | all.. | | | | | | | Detail: Terminating KDU 'ldap': Error: | | | | | | | Kubernetes cluster unreachable: the | | | | | | | server has asked for the client to | | | | | | | provide credentials | | ldap | 88947844-0671-4026-8e01-f945ec62a776 | 2024-04-03T03:06:48 | BROKEN | IDLE (None) | Operation: INSTANTIATING.666e2969-29a2- | | | | | | | 4170-8734-e9c3cf200e3f, Stage 2/5: | | | | | | | deployment of KDUs, VMs and execution | | | | | | | environments. | | | | | | | Detail: Deploying KDU ldap: E0403 | | | | | | | 03:06:50.037863 242 memcache.go:265] | | | | | | | couldn't get current server API group | | | | | | | list: the server has asked for the | | | | | | | client to provide credentials | | | | | | | E0403 03:06:50.041464 242 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:06:50.043321 242 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:06:50.044859 242 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:06:50.046039 242 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | error: You must be logged in to the | | | | | | | server (the server has asked for the | | | | | | | client to provide credentials) | | ldap | 8c816366-0e1a-4dd7-91b6-bf26c59c1d94 | 2024-04-03T03:13:46 | BUILDING | INSTANTIATING (92d4c589-a8ea-42ec-92f3-ec413aaf86b7) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+------------------------------------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' contains 'BROKEN' ${ns_id} ${id} Logs the given message with the given level. Create Network Service Instance azure cluster_k8s daily k8s_13 prepare '+------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+------------------------------------------+ | ns instance name | id | date | ns state | current operation | error details | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+------------------------------------------+ | ldap | 636ca116-69ed-45c9-b91e-96c7e441a1d8 | 2024-04-03T02:54:28 | BROKEN | IDLE (None) | Operation: TERMINATING.78b2b0d1-aa6b- | | | | | | | 472d-9737-c70590205ada, Stage 3/3 delete | | | | | | | all.. | | | | | | | Detai... [ Message content over the limit has been removed. ] ... | | | | credentials | | | | | | | error: You must be logged in to the | | | | | | | server (the server has asked for the | | | | | | | client to provide credentials) | | ldap | 8c816366-0e1a-4dd7-91b6-bf26c59c1d94 | 2024-04-03T03:13:46 | BUILDING | INSTANTIATING (92d4c589-a8ea-42ec-92f3-ec413aaf86b7) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+------------------------------------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID"' contains 'BROKEN' ${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} = 636ca116-69ed-45c9-b91e-96c7e441a1d8 | 88947844-0671-4026-8e01-f945ec62a776 | 8c816366-0e1a-4dd7-91b6-bf26c59c1d94 ${stdout} Logs the given message with the given level. 636ca116-69ed-45c9-b91e-96c7e441a1d8 | 88947844-0671-4026-8e01-f945ec62a776 | 8c816366-0e1a-4dd7-91b6-bf26c59c1d94 ${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 114 ${stdout} ${id} = 636ca116-69ed-45c9-b91e-96c7e441a1d8 | 88947844-0671-4026-8e01-f945ec62a776 | 8c816366-0e1a-4dd7-91b6-bf26c59c1d94 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 636ca116-69ed-45c9-b91e-96c7e441a1d8 | 88947844-0671-4026-8e01-f945ec62a776 | 8c816366-0e1a-4dd7-91b6-bf26c59c1d94 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 114 ${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 636ca116-69ed-45c9-b91e-96c7e441a1d8 | 88947844-0671-4026-8e01-f945ec62a776 | 8c816366-0e1a-4dd7-91b6-bf26c59c1d94 | grep 636ca116-69ed-45c9-b91e-96c7e441a1d8 | 88947844-0671-4026-8e01-f945ec62a776 | 8c816366-0e1a-4dd7-91b6-bf26c59c1d94 | awk '{print $2}' 2>&1'. ${rc} = 2 ${stdout} = +--------------------------------------+------+--------------------------------------+------------------+--------------+--------------------------------------+------------+ | vnf id ... ${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 id | name | ns id | vnf member index | vnfd name | vim account id | ip address | +--------------------------------------+------+--------------------------------------+------------------+--------------+--------------------------------------+------------+ | 4ed1f42d-bbbd-4a71-905d-aa08bd877a38 | - | 636ca116-69ed-45c9-b91e-96c7e441a1d8 | openldap | openldap_knf | 7a8df917-c55f-4ae7-a49d-b123d795de17 | None | +--------------------------------------+------+--------------------------------------+------------------+--------------+--------------------------------------+------------+ @{vdur} ${stdout} Splits the ``string`` using ``separator`` as a delimiter string. @{vdur} ${vnfr_list} Logs the length and contents of the ``list`` using given ``level``. ${VNF_ID} ${vnfr_list}[0] Makes a variable available everywhere within the scope of the current suite. Get ID of VNF azure cluster_k8s daily k8s_13 verify +--------------------------------------+------+--------------------------------------+------------------+--------------+--------------------------------------+------------+ | vnf id | name | ns id | vnf member index | vnfd name | vim account id | ip address | +--------------------------------------+------+--------------------------------------+------------------+--------------+--------------------------------------+------------+ | 4ed1f42d-bbbd-4a71-905d-aa08bd877a38 | - | 636ca116-69ed-45c9-b91e-96c7e441a1d8 | openldap | openldap_knf | 7a8df917-c55f-4ae7-a49d-b123d795de17 | None | +--------------------------------------+------+--------------------------------------+------------------+--------------+--------------------------------------+------------+ ${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} = 1 ${stdout} = ERROR: failed to exec operation ldap: error: Error 400: { "code": "BAD_REQUEST", "status": 400, "detail": "Invalid parameter member_vnf_index='two_helm_oci' is not one of the nsd:constitue... ${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: failed to exec operation ldap: error: Error 400: { "code": "BAD_REQUEST", "status": 400, "detail": "Invalid parameter member_vnf_index='two_helm_oci' is not one of the nsd:constituent-vnfd" } ${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 "COMPLETED" or not. ${stdout} ${ns_op_id} Logs the given message with the given level. Execute Upgrade Operation over first KDU azure cluster_k8s daily k8s_13 verify ERROR: failed to exec operation ldap: error: Error 400: { "code": "BAD_REQUEST", "status": 400, "detail": "Invalid parameter member_vnf_index='two_helm_oci' is not one of the nsd:constituent-vnfd" } ${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. Variable '${VNF_ID}' not found. Did you mean: ${VNFD_PKG} ${NS_ID} ${count} Logs the given message with the given level. ${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 Variable '${VNF_ID}' not found. Did you mean: ${VNFD_PKG} ${NS_ID} ${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} = 1 ${stdout} = ERROR: failed to exec operation ldap: error: Error 400: { "code": "BAD_REQUEST", "status": 400, "detail": "Invalid parameter member_vnf_index='two_helm_oci' is not one of the nsd:constitue... ${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: failed to exec operation ldap: error: Error 400: { "code": "BAD_REQUEST", "status": 400, "detail": "Invalid parameter member_vnf_index='two_helm_oci' is not one of the nsd:constituent-vnfd" } ${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 "COMPLETED" or not. ${stdout} ${ns_op_id} Logs the given message with the given level. Execute Rollback Operation over first KDU azure cluster_k8s daily k8s_13 verify ERROR: failed to exec operation ldap: error: Error 400: { "code": "BAD_REQUEST", "status": 400, "detail": "Invalid parameter member_vnf_index='two_helm_oci' is not one of the nsd:constituent-vnfd" } ${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. Variable '${VNF_ID}' not found. Did you mean: ${VNFD_PKG} ${NS_ID} ${count} Logs the given message with the given level. ${count} Verifies that the given item is empty. Check Replicas After Rollback Operation over first KDU azure cluster_k8s daily k8s_13 verify Variable '${VNF_ID}' not found. Did you mean: ${VNFD_PKG} ${NS_ID} ${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} = 1 ${stdout} = ERROR: failed to exec operation ldap: error: Error 400: { "code": "BAD_REQUEST", "status": 400, "detail": "Invalid parameter member_vnf_index='two_helm_oci' is not one of the nsd:constitue... ${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: failed to exec operation ldap: error: Error 400: { "code": "BAD_REQUEST", "status": 400, "detail": "Invalid parameter member_vnf_index='two_helm_oci' is not one of the nsd:constituent-vnfd" } ${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 "COMPLETED" or not. ${stdout} ${ns_op_id} Logs the given message with the given level. Execute Upgrade Operation over second KDU azure cluster_k8s daily k8s_13 verify ERROR: failed to exec operation ldap: error: Error 400: { "code": "BAD_REQUEST", "status": 400, "detail": "Invalid parameter member_vnf_index='two_helm_oci' is not one of the nsd:constituent-vnfd" } ${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. Variable '${VNF_ID}' not found. Did you mean: ${VNFD_PKG} ${NS_ID} ${count} Logs the given message with the given level. ${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 Variable '${VNF_ID}' not found. Did you mean: ${VNFD_PKG} ${NS_ID} ${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} = 1 ${stdout} = ERROR: failed to exec operation ldap: error: Error 400: { "code": "BAD_REQUEST", "status": 400, "detail": "Invalid parameter member_vnf_index='two_helm_oci' is not one of the nsd:constitue... ${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: failed to exec operation ldap: error: Error 400: { "code": "BAD_REQUEST", "status": 400, "detail": "Invalid parameter member_vnf_index='two_helm_oci' is not one of the nsd:constituent-vnfd" } ${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 "COMPLETED" or not. ${stdout} ${ns_op_id} Logs the given message with the given level. Execute Rollback Operation over second KDU azure cluster_k8s daily k8s_13 verify ERROR: failed to exec operation ldap: error: Error 400: { "code": "BAD_REQUEST", "status": 400, "detail": "Invalid parameter member_vnf_index='two_helm_oci' is not one of the nsd:constituent-vnfd" } ${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. Variable '${VNF_ID}' not found. Did you mean: ${VNFD_PKG} ${NS_ID} ${count} Logs the given message with the given level. ${count} Verifies that the given item is empty. Check Replicas After Rollback Operation over second KDU azure cluster_k8s daily k8s_13 verify Variable '${VNF_ID}' not found. Did you mean: ${VNFD_PKG} ${NS_ID} ${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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 ldap ldap ${rc},${stdout} Logs the given message with the given level. 0,ldap ldap ldap ${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} = 1 ${stdout} = ERROR: Error 409: { "code": "CONFLICT", "status": 409, "detail": "There is at least one NS instance using this descriptor" } ${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. ${NSD_DELETE_MAX_WAIT_TIME} ${NSD_DELETE_POL_TIME} Check For NSD ${nsd_id} Runs the specified keyword and retries if it fails. Delete NS Descriptor Test azure cleanup cluster_k8s daily k8s_13 1 != 0 ${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} = 1 ${stdout} = ERROR: Error 409: { "code": "CONFLICT", "status": 409, "detail": "There is at least one VNF instance using this descriptor" } ${stdout} Logs the given message with the given level. ERROR: Error 409: { "code": "CONFLICT", "status": 409, "detail": "There is at least one VNF instance using this descriptor" } ${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. Delete VNF Descriptor Test azure cleanup cluster_k8s daily k8s_13 1 != 0 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 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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 3071f0c5-747a-48c6-b8f7-fc315caa8a1e | basic_18-vnf1-dataVM-0 | BUILD | | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 ldap ldap ${rc},${stdout} Logs the given message with the given level. 0,ldap ldap ldap ${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 two_helm_oci_ns 2>&1'. ${rc} = 1 ${stdout} = ERROR: Error 409: { "code": "CONFLICT", "status": 409, "detail": "There is at least one NS instance using this descriptor" } ${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: Error 409: { "code": "CONFLICT", "status": 409, "detail": "There is at least one NS instance using this descriptor" } ${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} = 0 ${stdout} = two_helm_oci_ns ${rc},${stdout} Logs the given message with the given level. 0,two_helm_oci_ns ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. two_helm_oci_ns == two_helm_oci_ns ${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} = 0 ${stdout} = two_helm_oci_ns ${rc},${stdout} Logs the given message with the given level. 0,two_helm_oci_ns ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. two_helm_oci_ns == two_helm_oci_ns ${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} = 0 ${stdout} = two_helm_oci_ns ${rc},${stdout} Logs the given message with the given level. 0,two_helm_oci_ns ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. two_helm_oci_ns == two_helm_oci_ns ${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} = 0 ${stdout} = two_helm_oci_ns ${rc},${stdout} Logs the given message with the given level. 0,two_helm_oci_ns ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. two_helm_oci_ns == two_helm_oci_ns ${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} = 0 ${stdout} = two_helm_oci_ns ${rc},${stdout} Logs the given message with the given level. 0,two_helm_oci_ns ${stdout} ${nsd_id} Fails if objects are equal after converting them to strings. two_helm_oci_ns == two_helm_oci_ns Keyword 'Check For NSD' failed after retrying for 1 minute. The last error was: two_helm_oci_ns == two_helm_oci_ns Delete VNFD ${VNFD_NAME} Runs the given keyword with the given arguments, if one or more tests failed. ${VNFD_NAME} Delete a VNF package from OSM. ${rc} ${stdout} osm vnfpkg-delete ${vnfd_id} Runs the given command in the system and returns the RC and output. Running command 'osm vnfpkg-delete two_helm_oci_knf 2>&1'. ${rc} = 1 ${stdout} = ERROR: Error 409: { "code": "CONFLICT", "status": 409, "detail": "There is at least one VNF instance using this descriptor" } ${stdout} Logs the given message with the given level. ERROR: Error 409: { "code": "CONFLICT", "status": 409, "detail": "There is at least one VNF instance using this descriptor" } ${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 two_helm_oci_knf 2>&1'. ${rc} = 0 ${stdout} = two_helm_oci_knf ${rc},${stdout} Logs the given message with the given level. 0,two_helm_oci_knf ${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. two_helm_oci_knf == two_helm_oci_knf ${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} = 0 ${stdout} = two_helm_oci_knf ${rc},${stdout} Logs the given message with the given level. 0,two_helm_oci_knf ${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. two_helm_oci_knf == two_helm_oci_knf ${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} = 0 ${stdout} = two_helm_oci_knf ${rc},${stdout} Logs the given message with the given level. 0,two_helm_oci_knf ${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. two_helm_oci_knf == two_helm_oci_knf ${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} = 0 ${stdout} = two_helm_oci_knf ${rc},${stdout} Logs the given message with the given level. 0,two_helm_oci_knf ${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. two_helm_oci_knf == two_helm_oci_knf ${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} = 0 ${stdout} = two_helm_oci_knf ${rc},${stdout} Logs the given message with the given level. 0,two_helm_oci_knf ${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. two_helm_oci_knf == two_helm_oci_knf Keyword 'Check For VNFD' failed after retrying for 1 minute. The last error was: two_helm_oci_knf == two_helm_oci_knf [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 14f6693f-e771-4c1d-abca-da54b77fb9e1 ${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} = 14f6693f-e771-4c1d-abca-da54b77fb9e1 ${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 c0679222-7818-409b-bce4-f031566961e0 ${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} = c0679222-7818-409b-bce4-f031566961e0 ${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} = b8702b06-ec6a-4324-b87b-442b6d570474 ${stdout} Logs the given message with the given level. b8702b06-ec6a-4324-b87b-442b6d570474 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${id} = b8702b06-ec6a-4324-b87b-442b6d570474 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = b8702b06-ec6a-4324-b87b-442b6d570474 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 b8702b06-ec6a-4324-b87b-442b6d570474 | grep instantiate | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = 77a8094d-0d0d-4da8-8872-56ef99965b41 ${stdout} Logs the given message with the given level. 77a8094d-0d0d-4da8-8872-56ef99965b41 ${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} = 77a8094d-0d0d-4da8-8872-56ef99965b41 ${OP_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${OP_ID} = 77a8094d-0d0d-4da8-8872-56ef99965b41 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 77a8094d-0d0d-4da8-8872-56ef99965b41 --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 77a8094d-0d0d-4da8-8872-56ef99965b41 --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} = +--------------------------------------+----------------------------------+--------+--------------------------------------------------------------------------------------------------------------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+----------------------------------+--------+-----------------------------------------------------------------------------------------------------------------------------+-------------+------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+----------------------------------+--------+-----------------------------------------------------------------------------------------------------------------------------+-------------+------------------------+ | 33001540-4da7-4ae7-8ef1-9a011afd3afd | lcmop_01_cancel_-simple-mgmtVM-0 | BUILD | | ubuntu18.04 | mgmtVM-simple-1-flv-62 | | fed362f3-d445-4d2e-9dc5-d6eedd11475a | basic_18-vnf2-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.100; basic_18-datanet2=192.168.20.187; basic_18-datanet3=192.168.30.58; osm-ext=172.21.249.166 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 3071f0c5-747a-48c6-b8f7-fc315caa8a1e | basic_18-vnf1-dataVM-0 | ACTIVE | basic_18-datanet1=192.168.10.122; basic_18-datanet2=192.168.20.174; basic_18-datanet3=192.168.30.41; osm-ext=172.21.249.24 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | +--------------------------------------+--------------------------+--------+---------------------------------------------------------+-------------+----------------------+ | fed362f3-d445-4d2e-9dc5-d6eedd11475a | basic_18-vnf2-dataVM-0 | ACTIVE | basic_18-datanet3=192.168.30.58; osm-ext=172.21.249.166 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | 3071f0c5-747a-48c6-b8f7-fc315caa8a1e | basic_18-vnf1-dataVM-0 | ACTIVE | osm-ext=172.21.249.24 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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} = cd79feac-4036-4934-a93f-6ee838a7554a ${stdout} Logs the given message with the given level. cd79feac-4036-4934-a93f-6ee838a7554a ${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} = 4d2d1e23-8c26-4a0e-a0ba-38b9c4a39bb4 ${stdout} Logs the given message with the given level. 4d2d1e23-8c26-4a0e-a0ba-38b9c4a39bb4 ${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} = c7dd457b-eeee-40e5-b140-26e5bf6b3648 ${rc},${stdout} Logs the given message with the given level. 0,c7dd457b-eeee-40e5-b140-26e5bf6b3648 ${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 2ad55d65-770a-4ad8-a949-9fc41dbc26f3 ${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 (cd79feac-4036-4934-a93f-6ee838a7554a)" } ${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 410c3dfe-84e6-4775-aab7-5db2f5838d17 ${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 9ef6a3df-53cb-4eaf-b486-2c653a5b2b5d ${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 687e4c74-7db4-453b-809c-70c223f571c2 ${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 2208650b-9872-4b1e-9e66-adef9b3fae1e ${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 (cd79feac-4036-4934-a93f-6ee838a7554a)" } ${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 21f8ecd2-0b66-4590-8c61-7660f9453501 ${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 (4d2d1e23-8c26-4a0e-a0ba-38b9c4a39bb4)" } ${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' (4d2d1e23-8c26-4a0e-a0ba-38b9c4a39bb4) 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' (4d2d1e23-8c26-4a0e-a0ba-38b9c4a39bb4) 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.136 == '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 1e7cebba-5f49-4f54-a342-d23bcf665705 ${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} = 1e7cebba-5f49-4f54-a342-d23bcf665705 ${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 5ac21d8e-2153-45ad-a2c6-d63eae2d646e ${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} = 5ac21d8e-2153-45ad-a2c6-d63eae2d646e ${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} = 8241544d-831d-4177-86d7-52c8b5e2f35b ${stdout} Logs the given message with the given level. 8241544d-831d-4177-86d7-52c8b5e2f35b ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 8241544d-831d-4177-86d7-52c8b5e2f35b ${ns_id} Logs the given message with the given level. 8241544d-831d-4177-86d7-52c8b5e2f35b ${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 | +--------------------------------------+--------------------------+--------+-----------------------------------------------------------+-------------+-------------------------+ | b85bb1a5-62e5-45db-a914-f4cec6cb449f | basic_19-vnf-dataVM-0 | ACTIVE | basic_19-internal=192.168.200.251 | ubuntu20.04 | simple_requires-1-1-flv | | 0c9d24b3-86eb-446f-9662-0fc4350644ba | basic_19-vnf-mgmtVM-0 | ACTIVE | basic_19-internal=192.168.200.122; osm-ext=172.21.248.250 | ubuntu20.04 | simple_requires-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | 8241544d-831d-4177-86d7-52c8b5e2f35b | 2024-04-03T03:18:28 | BUILDING | INSTANTIATING (8b50ba2b-b9b6-474e-8f39-686e93374f4a) | N/A | +---------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | 8241544d-831d-4177-86d7-52c8b5e2f35b | 2024-04-03T03:18:28 | BUILDING | INSTANTIATING (8b50ba2b-b9b6-474e-8f39-686e93374f4a) | N/A | +---------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+--------------------------------------------------+--------+-----------------------------------------------------------+-------------+-------------------------+ | 8f06d2cf-c71a-42f3-8562-4318ae566809 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.134 | ubuntu20.04 | simple_requires-1-1-flv | | b85bb1a5-62e5-45db-a914-f4cec6cb449f | basic_19-vnf-dataVM-0 | ACTIVE | basic_19-internal=192.168.200.251 | ubuntu20.04 | simple_requires-1-1-flv | | 0c9d24b3-86eb-446f-9662-0fc4350644ba | basic_19-vnf-mgmtVM-0 | ACTIVE | basic_19-internal=192.168.200.122; osm-ext=172.21.248.250 | ubuntu20.04 | simple_requires-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | 8241544d-831d-4177-86d7-52c8b5e2f35b | 2024-04-03T03:18:28 | READY | IDLE (None) | N/A | +---------------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} READY BROKEN Fails if ``container`` does not contain any of the ``*items``. ${ns_name} Check if a given NS instance has not failed in the instantiation (the status should not be BROKEN). ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+--------------------------------------------------+--------+-----------------------------------------------------------+-------------+-------------------------+... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+--------------------------------------------------+--------+-----------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+--------------------------------------------------+--------+-----------------------------------------------------------+-------------+-------------------------+ | 8f06d2cf-c71a-42f3-8562-4318ae566809 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.134 | ubuntu20.04 | simple_requires-1-1-flv | | b85bb1a5-62e5-45db-a914-f4cec6cb449f | basic_19-vnf-dataVM-0 | ACTIVE | basic_19-internal=192.168.200.251 | ubuntu20.04 | simple_requires-1-1-flv | | 0c9d24b3-86eb-446f-9662-0fc4350644ba | basic_19-vnf-mgmtVM-0 | ACTIVE | basic_19-internal=192.168.200.122; osm-ext=172.21.248.250 | ubuntu20.04 | simple_requires-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | 8241544d-831d-4177-86d7-52c8b5e2f35b | 2024-04-03T03:18:28 | READY | IDLE (None) | N/A | +---------------------------------+--------------------------------------+---------------------+----------+-------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} BROKEN Fails if ``container`` contains ``item`` one or more times. ${ns_id} ${id} = 8241544d-831d-4177-86d7-52c8b5e2f35b ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 8241544d-831d-4177-86d7-52c8b5e2f35b 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=8241544d-831d-4177-86d7-52c8b5e2f35b ${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=8241544d-831d-4177-86d7-52c8b5e2f35b ${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=8241544d-831d-4177-86d7-52c8b5e2f35b ${param_name} = ns_id ${param_value} = 8241544d-831d-4177-86d7-52c8b5e2f35b ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=8241544d-831d-4177-86d7-52c8b5e2f35b,ns_id,8241544d-831d-4177-86d7-52c8b5e2f35b ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="8241544d-831d-4177-86d7-52c8b5e2f35b", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4edf99f0>, 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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%228241544d-831d-4177-86d7-52c8b5e2f35b%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%228241544d-831d-4177-86d7-52c8b5e2f35b%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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%228241544d-831d-4177-86d7-52c8b5e2f35b%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 03:19:08 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=8241544d-831d-4177-86d7-52c8b5e2f35b ${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=8241544d-831d-4177-86d7-52c8b5e2f35b ${param_name} = ns_id ${param_value} = 8241544d-831d-4177-86d7-52c8b5e2f35b ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=8241544d-831d-4177-86d7-52c8b5e2f35b,ns_id,8241544d-831d-4177-86d7-52c8b5e2f35b ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="8241544d-831d-4177-86d7-52c8b5e2f35b", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4c29ac20>, 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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%228241544d-831d-4177-86d7-52c8b5e2f35b%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%228241544d-831d-4177-86d7-52c8b5e2f35b%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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%228241544d-831d-4177-86d7-52c8b5e2f35b%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 03:20:08 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=8241544d-831d-4177-86d7-52c8b5e2f35b ${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=8241544d-831d-4177-86d7-52c8b5e2f35b ${param_name} = ns_id ${param_value} = 8241544d-831d-4177-86d7-52c8b5e2f35b ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=8241544d-831d-4177-86d7-52c8b5e2f35b,ns_id,8241544d-831d-4177-86d7-52c8b5e2f35b ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="8241544d-831d-4177-86d7-52c8b5e2f35b", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4c2bc1f0>, 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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%228241544d-831d-4177-86d7-52c8b5e2f35b%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%228241544d-831d-4177-86d7-52c8b5e2f35b%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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%228241544d-831d-4177-86d7-52c8b5e2f35b%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 03:21:08 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=8241544d-831d-4177-86d7-52c8b5e2f35b ${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=8241544d-831d-4177-86d7-52c8b5e2f35b ${param_name} = ns_id ${param_value} = 8241544d-831d-4177-86d7-52c8b5e2f35b ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=8241544d-831d-4177-86d7-52c8b5e2f35b,ns_id,8241544d-831d-4177-86d7-52c8b5e2f35b ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="8241544d-831d-4177-86d7-52c8b5e2f35b", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4c29bfd0>, 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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%228241544d-831d-4177-86d7-52c8b5e2f35b%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%228241544d-831d-4177-86d7-52c8b5e2f35b%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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%228241544d-831d-4177-86d7-52c8b5e2f35b%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 03:22:08 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=8241544d-831d-4177-86d7-52c8b5e2f35b ${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=8241544d-831d-4177-86d7-52c8b5e2f35b ${param_name} = ns_id ${param_value} = 8241544d-831d-4177-86d7-52c8b5e2f35b ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=8241544d-831d-4177-86d7-52c8b5e2f35b,ns_id,8241544d-831d-4177-86d7-52c8b5e2f35b ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="8241544d-831d-4177-86d7-52c8b5e2f35b", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4c29a020>, 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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%228241544d-831d-4177-86d7-52c8b5e2f35b%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%228241544d-831d-4177-86d7-52c8b5e2f35b%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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%228241544d-831d-4177-86d7-52c8b5e2f35b%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 03:23:08 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=8241544d-831d-4177-86d7-52c8b5e2f35b ${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=8241544d-831d-4177-86d7-52c8b5e2f35b ${param_name} = ns_id ${param_value} = 8241544d-831d-4177-86d7-52c8b5e2f35b ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=8241544d-831d-4177-86d7-52c8b5e2f35b,ns_id,8241544d-831d-4177-86d7-52c8b5e2f35b ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="8241544d-831d-4177-86d7-52c8b5e2f35b", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4c22c610>, 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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%228241544d-831d-4177-86d7-52c8b5e2f35b%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%228241544d-831d-4177-86d7-52c8b5e2f35b%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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%228241544d-831d-4177-86d7-52c8b5e2f35b%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 03:24:08 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=8241544d-831d-4177-86d7-52c8b5e2f35b ${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=8241544d-831d-4177-86d7-52c8b5e2f35b ${param_name} = ns_id ${param_value} = 8241544d-831d-4177-86d7-52c8b5e2f35b ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=8241544d-831d-4177-86d7-52c8b5e2f35b,ns_id,8241544d-831d-4177-86d7-52c8b5e2f35b ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="8241544d-831d-4177-86d7-52c8b5e2f35b", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4c299540>, 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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%228241544d-831d-4177-86d7-52c8b5e2f35b%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%228241544d-831d-4177-86d7-52c8b5e2f35b%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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%228241544d-831d-4177-86d7-52c8b5e2f35b%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 03:25:08 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=8241544d-831d-4177-86d7-52c8b5e2f35b ${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=8241544d-831d-4177-86d7-52c8b5e2f35b ${param_name} = ns_id ${param_value} = 8241544d-831d-4177-86d7-52c8b5e2f35b ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=8241544d-831d-4177-86d7-52c8b5e2f35b,ns_id,8241544d-831d-4177-86d7-52c8b5e2f35b ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="8241544d-831d-4177-86d7-52c8b5e2f35b", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4c27cf70>, 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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%228241544d-831d-4177-86d7-52c8b5e2f35b%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%228241544d-831d-4177-86d7-52c8b5e2f35b%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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%228241544d-831d-4177-86d7-52c8b5e2f35b%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 03:26:08 GMT', 'Content-Length': '365'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_cpu_utilization","job":"airflow_osm_vm_metrics_7a8df917-c55f-4ae7-a49d-b123d795de17","metric_id":"vnf_cpu_util","ns_id":"8241544d-831d-4177-86d7-52c8b5e2f35b","project_id":"906e76e1-3d4d-405e-9aef-801e4573a3ab","vdu_id":"hackfest_basic_metrics-VM","vdu_name":"sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0","vim_id":"7a8df917-c55f-4ae7-a49d-b123d795de17","vm_id":"8f06d2cf-c71a-42f3-8562-4318ae566809","vnf_member_index":"vnf"},"value":[1712114768.339,"0.44166666666666665"]}]}} ${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_7a8df917-c55f-4ae7-a49d-b123d795de17', '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_7a8df917-c55f-4ae7-a49d-b123d795de17', 'metric_id': 'vnf_cpu_util', 'ns_id': '8241544d-831d-4177-86d7-52c8b5e2f35b', '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.44166666666666665 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=8241544d-831d-4177-86d7-52c8b5e2f35b ${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=8241544d-831d-4177-86d7-52c8b5e2f35b ${param_name} = ns_id ${param_value} = 8241544d-831d-4177-86d7-52c8b5e2f35b ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=8241544d-831d-4177-86d7-52c8b5e2f35b,ns_id,8241544d-831d-4177-86d7-52c8b5e2f35b ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="8241544d-831d-4177-86d7-52c8b5e2f35b", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4c27e770>, 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.136:9091/api/v1/query?query=osm_average_memory_utilization%7Bns_id=%228241544d-831d-4177-86d7-52c8b5e2f35b%22,%7D path_url=/api/v1/query?query=osm_average_memory_utilization%7Bns_id=%228241544d-831d-4177-86d7-52c8b5e2f35b%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.136:9091/api/v1/query?query=osm_average_memory_utilization%7Bns_id=%228241544d-831d-4177-86d7-52c8b5e2f35b%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 03:26:08 GMT', 'Content-Length': '372'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_average_memory_utilization","job":"airflow_osm_vm_metrics_7a8df917-c55f-4ae7-a49d-b123d795de17","metric_id":"vnf_memory_util","ns_id":"8241544d-831d-4177-86d7-52c8b5e2f35b","project_id":"906e76e1-3d4d-405e-9aef-801e4573a3ab","vdu_id":"hackfest_basic_metrics-VM","vdu_name":"sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0","vim_id":"7a8df917-c55f-4ae7-a49d-b123d795de17","vm_id":"8f06d2cf-c71a-42f3-8562-4318ae566809","vnf_member_index":"vnf"},"value":[1712114768.360,"270.58203125"]}]}} ${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_7a8df917-c55f-4ae7-a49d-b123d795de17', '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_7a8df917-c55f-4ae7-a49d-b123d795de17', 'metric_id': 'vnf_memory_util', 'ns_id': '8241544d-831d-4177-86d7-52c8b... ${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.58203125 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 | +--------------------------------------+--------------------------------------------------+--------+------------------------+-------------+-------------------------+ | ca957dd0-b025-4656-8355-ecbee7e24473 | basic_27_helm_ee-simple-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.223 | ubuntu18.04 | mgmtVM-simple-1-flv-62 | | 8f06d2cf-c71a-42f3-8562-4318ae566809 | sa_01-vnf_with_v-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.134 | ubuntu20.04 | simple_requires-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | +--------------------------------------+----------------------------------+--------+------------------------+-------------+------------------------+ | ca957dd0-b025-4656-8355-ecbee7e24473 | basic_27_helm_ee-simple-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.223 | ubuntu18.04 | mgmtVM-simple-1-flv-62 | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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.136 == '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 ef73020c-444a-472d-a8ee-2a8119f42ee4 ${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} = ef73020c-444a-472d-a8ee-2a8119f42ee4 ${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 1c879394-eb89-4fb0-abe9-0426b2d160dd ${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} = 1c879394-eb89-4fb0-abe9-0426b2d160dd ${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} = aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${stdout} Logs the given message with the given level. aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${ns_id} Logs the given message with the given level. aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${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 | +--------------------------------------+----------------------------------+--------+------------------------+-------------+------------------------+ | ca957dd0-b025-4656-8355-ecbee7e24473 | basic_27_helm_ee-simple-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.223 | ubuntu18.04 | mgmtVM-simple-1-flv-62 | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 | 2024-04-03T03:26:43 | BUILDING | INSTANTIATING (9ea65a1b-b8c6-4fcd-bbb2-0a89afe427b5) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 | 2024-04-03T03:26:43 | BUILDING | INSTANTIATING (9ea65a1b-b8c6-4fcd-bbb2-0a89afe427b5) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | 4bb1cbab-7207-4349-b061-e8041de80d54 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.135 | ubuntu20.04 | simple_requires-1-1-flv | | ca957dd0-b025-4656-8355-ecbee7e24473 | basic_27_helm_ee-simple-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.223 | ubuntu18.04 | mgmtVM-simple-1-flv-62 | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 | 2024-04-03T03:26: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 | Name... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+---------------------------------------+--------+------------------------+-------------+-------------------------+ | 4bb1cbab-7207-4349-b061-e8041de80d54 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.135 | ubuntu20.04 | simple_requires-1-1-flv | | ca957dd0-b025-4656-8355-ecbee7e24473 | basic_27_helm_ee-simple-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.223 | ubuntu18.04 | mgmtVM-simple-1-flv-62 | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 | 2024-04-03T03:26: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} = aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 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 aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 | grep aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 | awk '{print $2}' 2>&1'. ${rc} = 0 ${stdout} = 01905a62-8f5f-4d0a-afe6-e562a2981409 ${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} = [ 01905a62-8f5f-4d0a-afe6-e562a2981409 ] @{vdur} @{vnfr_list} = [ 01905a62-8f5f-4d0a-afe6-e562a2981409 ] ${vnfr_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 01905a62-8f5f-4d0a-afe6-e562a2981409 ${VNF_ID} ${vnfr_list}[0] Makes a variable available everywhere within the scope of the current suite. ${VNF_ID} = 01905a62-8f5f-4d0a-afe6-e562a2981409 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 aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.135 ${stdout} Logs the given message with the given level. 172.21.249.135 ${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.135 ${ip_addr} Logs the given message with the given level. 172.21.249.135 ${VNF_IP_ADDR} ${ip_addr} Makes a variable available everywhere within the scope of the current suite. ${VNF_IP_ADDR} = 172.21.249.135 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=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${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=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${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=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${param_name} = ns_id ${param_value} = aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3,ns_id,aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="aa5dac12-c347-43c8-b4ce-bfa740b9f1b3", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4c2bf250>, 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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 03:27:27 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=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${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=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${param_name} = ns_id ${param_value} = aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3,ns_id,aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="aa5dac12-c347-43c8-b4ce-bfa740b9f1b3", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4c2e6230>, 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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 03:28:27 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=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${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=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${param_name} = ns_id ${param_value} = aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3,ns_id,aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="aa5dac12-c347-43c8-b4ce-bfa740b9f1b3", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4c2e7ca0>, 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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 03:29:27 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=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${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=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${param_name} = ns_id ${param_value} = aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3,ns_id,aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="aa5dac12-c347-43c8-b4ce-bfa740b9f1b3", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4c2e52d0>, 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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 03:30:27 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=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${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=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${param_name} = ns_id ${param_value} = aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3,ns_id,aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="aa5dac12-c347-43c8-b4ce-bfa740b9f1b3", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4c2bc250>, 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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 03:31:27 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=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${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=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${param_name} = ns_id ${param_value} = aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3,ns_id,aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="aa5dac12-c347-43c8-b4ce-bfa740b9f1b3", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4c2bf310>, 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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 03:32:27 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=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${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=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${param_name} = ns_id ${param_value} = aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3,ns_id,aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="aa5dac12-c347-43c8-b4ce-bfa740b9f1b3", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4c2be800>, 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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 03:33:27 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=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${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=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${param_name} = ns_id ${param_value} = aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3,ns_id,aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="aa5dac12-c347-43c8-b4ce-bfa740b9f1b3", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4c263490>, 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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 03:34:27 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=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${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=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${param_name} = ns_id ${param_value} = aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3,ns_id,aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="aa5dac12-c347-43c8-b4ce-bfa740b9f1b3", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4c4e7f10>, 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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 03:35:27 GMT', 'Content-Length': '357'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_cpu_utilization","job":"airflow_osm_vm_metrics_7a8df917-c55f-4ae7-a49d-b123d795de17","metric_id":"vnf_cpu_util","ns_id":"aa5dac12-c347-43c8-b4ce-bfa740b9f1b3","project_id":"906e76e1-3d4d-405e-9aef-801e4573a3ab","vdu_id":"hackfest_basic_metrics-VM","vdu_name":"sa_02-vnf-hackfest_basic_metrics-VM-0","vim_id":"7a8df917-c55f-4ae7-a49d-b123d795de17","vm_id":"4bb1cbab-7207-4349-b061-e8041de80d54","vnf_member_index":"vnf"},"value":[1712115327.332,"0.18333333333333332"]}]}} ${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_7a8df917-c55f-4ae7-a49d-b123d795de17', '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_7a8df917-c55f-4ae7-a49d-b123d795de17', 'metric_id': 'vnf_cpu_util', 'ns_id': 'aa5dac12-c347-43c8-b4ce-bfa740b9f1b3', '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.18333333333333332 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.135: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 Wed Apr 3 03:35:27 UTC 2024 System load: 0.0 Processes: 100 Usage of /: 14.0% of 9.52GB Users logged in: 0 Memory usage: 21% IPv4 address for ens3: 172.21.249.135 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=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${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=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${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=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${param_name} = ns_id ${param_value} = aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3,ns_id,aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="aa5dac12-c347-43c8-b4ce-bfa740b9f1b3", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4c260e50>, 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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 03:35:29 GMT', 'Content-Length': '357'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_cpu_utilization","job":"airflow_osm_vm_metrics_7a8df917-c55f-4ae7-a49d-b123d795de17","metric_id":"vnf_cpu_util","ns_id":"aa5dac12-c347-43c8-b4ce-bfa740b9f1b3","project_id":"906e76e1-3d4d-405e-9aef-801e4573a3ab","vdu_id":"hackfest_basic_metrics-VM","vdu_name":"sa_02-vnf-hackfest_basic_metrics-VM-0","vim_id":"7a8df917-c55f-4ae7-a49d-b123d795de17","vm_id":"4bb1cbab-7207-4349-b061-e8041de80d54","vnf_member_index":"vnf"},"value":[1712115329.797,"0.18333333333333332"]}]}} ${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_7a8df917-c55f-4ae7-a49d-b123d795de17', '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_7a8df917-c55f-4ae7-a49d-b123d795de17', 'metric_id': 'vnf_cpu_util', 'ns_id': 'aa5dac12-c347-43c8-b4ce-bfa740b9f1b3', '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.18333333333333332 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.18333333333333332' 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=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${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=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${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=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${param_name} = ns_id ${param_value} = aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3,ns_id,aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="aa5dac12-c347-43c8-b4ce-bfa740b9f1b3", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4c124070>, 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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 03:36:29 GMT', 'Content-Length': '357'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_cpu_utilization","job":"airflow_osm_vm_metrics_7a8df917-c55f-4ae7-a49d-b123d795de17","metric_id":"vnf_cpu_util","ns_id":"aa5dac12-c347-43c8-b4ce-bfa740b9f1b3","project_id":"906e76e1-3d4d-405e-9aef-801e4573a3ab","vdu_id":"hackfest_basic_metrics-VM","vdu_name":"sa_02-vnf-hackfest_basic_metrics-VM-0","vim_id":"7a8df917-c55f-4ae7-a49d-b123d795de17","vm_id":"4bb1cbab-7207-4349-b061-e8041de80d54","vnf_member_index":"vnf"},"value":[1712115389.837,"0.18333333333333332"]}]}} ${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_7a8df917-c55f-4ae7-a49d-b123d795de17', '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_7a8df917-c55f-4ae7-a49d-b123d795de17', 'metric_id': 'vnf_cpu_util', 'ns_id': 'aa5dac12-c347-43c8-b4ce-bfa740b9f1b3', '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.18333333333333332 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.18333333333333332' 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=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${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=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${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=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${param_name} = ns_id ${param_value} = aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3,ns_id,aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="aa5dac12-c347-43c8-b4ce-bfa740b9f1b3", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4c1257e0>, 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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 03:37:29 GMT', 'Content-Length': '357'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_cpu_utilization","job":"airflow_osm_vm_metrics_7a8df917-c55f-4ae7-a49d-b123d795de17","metric_id":"vnf_cpu_util","ns_id":"aa5dac12-c347-43c8-b4ce-bfa740b9f1b3","project_id":"906e76e1-3d4d-405e-9aef-801e4573a3ab","vdu_id":"hackfest_basic_metrics-VM","vdu_name":"sa_02-vnf-hackfest_basic_metrics-VM-0","vim_id":"7a8df917-c55f-4ae7-a49d-b123d795de17","vm_id":"4bb1cbab-7207-4349-b061-e8041de80d54","vnf_member_index":"vnf"},"value":[1712115449.876,"0.18333333333333332"]}]}} ${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_7a8df917-c55f-4ae7-a49d-b123d795de17', '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_7a8df917-c55f-4ae7-a49d-b123d795de17', 'metric_id': 'vnf_cpu_util', 'ns_id': 'aa5dac12-c347-43c8-b4ce-bfa740b9f1b3', '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.18333333333333332 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.18333333333333332' 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=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${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=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${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=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${param_name} = ns_id ${param_value} = aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3,ns_id,aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="aa5dac12-c347-43c8-b4ce-bfa740b9f1b3", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4c1274f0>, 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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 03:38:29 GMT', 'Content-Length': '357'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_cpu_utilization","job":"airflow_osm_vm_metrics_7a8df917-c55f-4ae7-a49d-b123d795de17","metric_id":"vnf_cpu_util","ns_id":"aa5dac12-c347-43c8-b4ce-bfa740b9f1b3","project_id":"906e76e1-3d4d-405e-9aef-801e4573a3ab","vdu_id":"hackfest_basic_metrics-VM","vdu_name":"sa_02-vnf-hackfest_basic_metrics-VM-0","vim_id":"7a8df917-c55f-4ae7-a49d-b123d795de17","vm_id":"4bb1cbab-7207-4349-b061-e8041de80d54","vnf_member_index":"vnf"},"value":[1712115509.912,"0.18333333333333332"]}]}} ${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_7a8df917-c55f-4ae7-a49d-b123d795de17', '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_7a8df917-c55f-4ae7-a49d-b123d795de17', 'metric_id': 'vnf_cpu_util', 'ns_id': 'aa5dac12-c347-43c8-b4ce-bfa740b9f1b3', '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.18333333333333332 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.18333333333333332' 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=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${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=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${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=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${param_name} = ns_id ${param_value} = aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3,ns_id,aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="aa5dac12-c347-43c8-b4ce-bfa740b9f1b3", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4c140a90>, 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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 03:39:29 GMT', 'Content-Length': '357'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_cpu_utilization","job":"airflow_osm_vm_metrics_7a8df917-c55f-4ae7-a49d-b123d795de17","metric_id":"vnf_cpu_util","ns_id":"aa5dac12-c347-43c8-b4ce-bfa740b9f1b3","project_id":"906e76e1-3d4d-405e-9aef-801e4573a3ab","vdu_id":"hackfest_basic_metrics-VM","vdu_name":"sa_02-vnf-hackfest_basic_metrics-VM-0","vim_id":"7a8df917-c55f-4ae7-a49d-b123d795de17","vm_id":"4bb1cbab-7207-4349-b061-e8041de80d54","vnf_member_index":"vnf"},"value":[1712115569.958,"0.18333333333333332"]}]}} ${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_7a8df917-c55f-4ae7-a49d-b123d795de17', '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_7a8df917-c55f-4ae7-a49d-b123d795de17', 'metric_id': 'vnf_cpu_util', 'ns_id': 'aa5dac12-c347-43c8-b4ce-bfa740b9f1b3', '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.18333333333333332 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.18333333333333332' 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=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${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=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${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=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${param_name} = ns_id ${param_value} = aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3,ns_id,aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="aa5dac12-c347-43c8-b4ce-bfa740b9f1b3", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4c140790>, 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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 03:40:30 GMT', 'Content-Length': '356'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_cpu_utilization","job":"airflow_osm_vm_metrics_7a8df917-c55f-4ae7-a49d-b123d795de17","metric_id":"vnf_cpu_util","ns_id":"aa5dac12-c347-43c8-b4ce-bfa740b9f1b3","project_id":"906e76e1-3d4d-405e-9aef-801e4573a3ab","vdu_id":"hackfest_basic_metrics-VM","vdu_name":"sa_02-vnf-hackfest_basic_metrics-VM-0","vim_id":"7a8df917-c55f-4ae7-a49d-b123d795de17","vm_id":"4bb1cbab-7207-4349-b061-e8041de80d54","vnf_member_index":"vnf"},"value":[1712115629.996,"99.94999999999999"]}]}} ${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_7a8df917-c55f-4ae7-a49d-b123d795de17', '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_7a8df917-c55f-4ae7-a49d-b123d795de17', 'metric_id': 'vnf_cpu_util', 'ns_id': 'aa5dac12-c347-43c8-b4ce-bfa740b9f1b3', '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} = 99.94999999999999 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=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${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=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${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=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${param_name} = ns_id ${param_value} = aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=aa5dac12-c347-43c8-b4ce-bfa740b9f1b3,ns_id,aa5dac12-c347-43c8-b4ce-bfa740b9f1b3 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="aa5dac12-c347-43c8-b4ce-bfa740b9f1b3", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4c127700>, 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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%22aa5dac12-c347-43c8-b4ce-bfa740b9f1b3%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 03:42:30 GMT', 'Content-Length': '356'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_cpu_utilization","job":"airflow_osm_vm_metrics_7a8df917-c55f-4ae7-a49d-b123d795de17","metric_id":"vnf_cpu_util","ns_id":"aa5dac12-c347-43c8-b4ce-bfa740b9f1b3","project_id":"906e76e1-3d4d-405e-9aef-801e4573a3ab","vdu_id":"hackfest_basic_metrics-VM","vdu_name":"sa_02-vnf-hackfest_basic_metrics-VM-0","vim_id":"7a8df917-c55f-4ae7-a49d-b123d795de17","vm_id":"4bb1cbab-7207-4349-b061-e8041de80d54","vnf_member_index":"vnf"},"value":[1712115750.048,"99.94999999999999"]}]}} ${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_7a8df917-c55f-4ae7-a49d-b123d795de17', '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_7a8df917-c55f-4ae7-a49d-b123d795de17', 'metric_id': 'vnf_cpu_util', 'ns_id': 'aa5dac12-c347-43c8-b4ce-bfa740b9f1b3', '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} = 99.94999999999999 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 01905a62-8f5f-4d0a-afe6-e562a2981409 --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 | +--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | 4663ed44-465e-4dad-8c07-b33499e40eb8 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.102 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 4fccc44e-f3d2-4c66-91f8-113cbfdb7693 | sa_02-vnf-hackfest_basic_metrics-VM-1 | ACTIVE | osm-ext=172.21.249.221 | ubuntu20.04 | simple_requires-1-1-flv | | c46c85c1-3942-4392-88b1-05b208e037be | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.92 | ubuntu20.04 | simple_requires-1-1-flv | | 4bb1cbab-7207-4349-b061-e8041de80d54 | sa_02-vnf-hackfest_basic_metrics-VM-0 | ACTIVE | osm-ext=172.21.249.135 | ubuntu20.04 | simple_requires-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | +--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | 4663ed44-465e-4dad-8c07-b33499e40eb8 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.102 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | c46c85c1-3942-4392-88b1-05b208e037be | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.92 | ubuntu20.04 | simple_requires-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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.136 == '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 3db1f123-33ab-44da-8bb6-ed99fe7188d4 ${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} = 3db1f123-33ab-44da-8bb6-ed99fe7188d4 ${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 b8e0ee1c-ff1e-437b-88ce-2671c6d9b704 ${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} = b8e0ee1c-ff1e-437b-88ce-2671c6d9b704 ${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} = bd20945c-e4a9-4598-91c6-a84d280f1677 ${stdout} Logs the given message with the given level. bd20945c-e4a9-4598-91c6-a84d280f1677 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = bd20945c-e4a9-4598-91c6-a84d280f1677 ${ns_id} Logs the given message with the given level. bd20945c-e4a9-4598-91c6-a84d280f1677 ${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 | +--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | 4663ed44-465e-4dad-8c07-b33499e40eb8 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.102 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | c46c85c1-3942-4392-88b1-05b208e037be | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.92 | ubuntu20.04 | simple_requires-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | bd20945c-e4a9-4598-91c6-a84d280f1677 | 2024-04-03T03:45:05 | BUILDING | INSTANTIATING (a6591e7c-b4f3-4317-b296-1b5e217cb0aa) | N/A | +----------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | bd20945c-e4a9-4598-91c6-a84d280f1677 | 2024-04-03T03:45:05 | BUILDING | INSTANTIATING (a6591e7c-b4f3-4317-b296-1b5e217cb0aa) | N/A | +----------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | 3817691b-0404-4154-872a-0b64759a8b7e | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.100 | ubuntu20.04 | simple_requires-1-1-flv | | 4663ed44-465e-4dad-8c07-b33499e40eb8 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.102 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | c46c85c1-3942-4392-88b1-05b208e037be | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.92 | ubuntu20.04 | simple_requires-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | bd20945c-e4a9-4598-91c6-a84d280f1677 | 2024-04-03T03:45:05 | 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 | +--------------------------------------+------------------------------------------+--------+------------------------+------------------------------+--------------------------+ | 3817691b-0404-4154-872a-0b64759a8b7e | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.100 | ubuntu20.04 | simple_requires-1-1-flv | | 4663ed44-465e-4dad-8c07-b33499e40eb8 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.102 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | c46c85c1-3942-4392-88b1-05b208e037be | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.92 | ubuntu20.04 | simple_requires-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | bd20945c-e4a9-4598-91c6-a84d280f1677 | 2024-04-03T03:45:05 | 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} = bd20945c-e4a9-4598-91c6-a84d280f1677 ${WS_NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${WS_NS_ID} = bd20945c-e4a9-4598-91c6-a84d280f1677 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 bd20945c-e4a9-4598-91c6-a84d280f1677 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.100 ${stdout} Logs the given message with the given level. 172.21.248.100 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ip_addr} = 172.21.248.100 ${ip_addr} Logs the given message with the given level. 172.21.248.100 ${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.100 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.100:22' as 'ubuntu'. Read output: Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.4.0-107-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Wed Apr 3 03:46:26 UTC 2024 System load: 0.55 Processes: 104 Usage of /: 14.0% of 9.52GB Users logged in: 0 Memory usage: 21% IPv4 address for ens3: 172.21.248.100 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.100: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 ea42a2b0-e93c-4e08-8364-7143d3ee9ef7 ${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} = ea42a2b0-e93c-4e08-8364-7143d3ee9ef7 ${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 4201245e-c62d-46a9-94da-fe816a2875a7 ${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} = 4201245e-c62d-46a9-94da-fe816a2875a7 ${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} = 4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${stdout} Logs the given message with the given level. 4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = 4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${ns_id} Logs the given message with the given level. 4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${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 | +--------------------------------------+------------------------------------------+--------+-------------------------------------------------------+------------------------------+--------------------------+ | bd85a75c-c309-445a-9582-0eec0120840a | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.249.237 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | f3fbcc3c-3212-4508-b22c-415f5bc4556e | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.248.112 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 3817691b-0404-4154-872a-0b64759a8b7e | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.100 | ubuntu20.04 | simple_requires-1-1-flv | | 4663ed44-465e-4dad-8c07-b33499e40eb8 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.102 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | c46c85c1-3942-4392-88b1-05b208e037be | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.92 | ubuntu20.04 | simple_requires-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | 4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac | 2024-04-03T03:46:34 | BUILDING | INSTANTIATING (b0cb7c06-3b94-4c38-9afe-ef2e12835bdb) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | 4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac | 2024-04-03T03:46:34 | BUILDING | INSTANTIATING (b0cb7c06-3b94-4c38-9afe-ef2e12835bdb) | N/A | +------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+------------------------------------------+--------+-------------------------------------------------------+------------------------------+--------------------------+ | f46cfd13-37a0-4da3-a3c9-9a65300269c8 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.28 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | bd85a75c-c309-445a-9582-0eec0120840a | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.249.237 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | f3fbcc3c-3212-4508-b22c-415f5bc4556e | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.248.112 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 3817691b-0404-4154-872a-0b64759a8b7e | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.100 | ubuntu20.04 | simple_requires-1-1-flv | | 4663ed44-465e-4dad-8c07-b33499e40eb8 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.102 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | c46c85c1-3942-4392-88b1-05b208e037be | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.92 | ubuntu20.04 | simple_requires-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | 4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac | 2024-04-03T03:46: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 | +--------------------------------------+------------------------------------------+--------+-------------------------------------------------------+------------------------------+--------------------------+ | f46cfd13-37a0-4da3-a3c9-9a65300269c8 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.28 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | bd85a75c-c309-445a-9582-0eec0120840a | epa_04-vnf2-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.22; osm-ext=172.21.249.237 | ubuntu20.04 | dataVM-vnf2-1-flv-1 | | f3fbcc3c-3212-4508-b22c-415f5bc4556e | epa_04-vnf1-dataVM-0 | ACTIVE | epa_04-datanet=192.168.100.11; osm-ext=172.21.248.112 | ubuntu20.04 | dataVM-vnf1-1-flv-1 | | 3817691b-0404-4154-872a-0b64759a8b7e | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.100 | ubuntu20.04 | simple_requires-1-1-flv | | 4663ed44-465e-4dad-8c07-b33499e40eb8 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.102 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | c46c85c1-3942-4392-88b1-05b208e037be | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.92 | ubuntu20.04 | simple_requires-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | 4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac | 2024-04-03T03:46: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} = 4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac 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=4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${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=4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${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=4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${param_name} = ns_id ${param_value} = 4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac,ns_id,4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4c143790>, 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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%224c1a4009-bf35-4a0b-b37d-75f8cd28a6ac%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%224c1a4009-bf35-4a0b-b37d-75f8cd28a6ac%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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%224c1a4009-bf35-4a0b-b37d-75f8cd28a6ac%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 03:47:13 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=4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${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=4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${param_name} = ns_id ${param_value} = 4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac,ns_id,4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4c261cf0>, 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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%224c1a4009-bf35-4a0b-b37d-75f8cd28a6ac%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%224c1a4009-bf35-4a0b-b37d-75f8cd28a6ac%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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%224c1a4009-bf35-4a0b-b37d-75f8cd28a6ac%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 03:48:13 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=4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${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=4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${param_name} = ns_id ${param_value} = 4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac,ns_id,4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4c2bc9a0>, 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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%224c1a4009-bf35-4a0b-b37d-75f8cd28a6ac%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%224c1a4009-bf35-4a0b-b37d-75f8cd28a6ac%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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%224c1a4009-bf35-4a0b-b37d-75f8cd28a6ac%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 03:49:13 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=4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${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=4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${param_name} = ns_id ${param_value} = 4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac,ns_id,4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4c143520>, 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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%224c1a4009-bf35-4a0b-b37d-75f8cd28a6ac%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%224c1a4009-bf35-4a0b-b37d-75f8cd28a6ac%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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%224c1a4009-bf35-4a0b-b37d-75f8cd28a6ac%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 03:50:13 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=4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${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=4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${param_name} = ns_id ${param_value} = 4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac,ns_id,4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4c2e46d0>, 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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%224c1a4009-bf35-4a0b-b37d-75f8cd28a6ac%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%224c1a4009-bf35-4a0b-b37d-75f8cd28a6ac%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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%224c1a4009-bf35-4a0b-b37d-75f8cd28a6ac%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 03:51:13 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=4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${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=4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${param_name} = ns_id ${param_value} = 4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac,ns_id,4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4c29b520>, 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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%224c1a4009-bf35-4a0b-b37d-75f8cd28a6ac%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%224c1a4009-bf35-4a0b-b37d-75f8cd28a6ac%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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%224c1a4009-bf35-4a0b-b37d-75f8cd28a6ac%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 03:52:13 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=4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${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=4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${param_name} = ns_id ${param_value} = 4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac,ns_id,4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4c125990>, 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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%224c1a4009-bf35-4a0b-b37d-75f8cd28a6ac%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%224c1a4009-bf35-4a0b-b37d-75f8cd28a6ac%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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%224c1a4009-bf35-4a0b-b37d-75f8cd28a6ac%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 03:53:13 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=4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${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=4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${param_name} = ns_id ${param_value} = 4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac,ns_id,4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4c14d960>, 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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%224c1a4009-bf35-4a0b-b37d-75f8cd28a6ac%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%224c1a4009-bf35-4a0b-b37d-75f8cd28a6ac%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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%224c1a4009-bf35-4a0b-b37d-75f8cd28a6ac%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 03:54:13 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=4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${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=4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${param_name} = ns_id ${param_value} = 4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac,ns_id,4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4c2e4d60>, 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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%224c1a4009-bf35-4a0b-b37d-75f8cd28a6ac%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%224c1a4009-bf35-4a0b-b37d-75f8cd28a6ac%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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%224c1a4009-bf35-4a0b-b37d-75f8cd28a6ac%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 03:55:13 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=4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${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=4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${param_name} = ns_id ${param_value} = 4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${match},${param_name},${param_value} Logs the given message with the given level. ns_id=4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac,ns_id,4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ns_id="4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac", ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4c2e4670>, 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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%224c1a4009-bf35-4a0b-b37d-75f8cd28a6ac%22,%7D path_url=/api/v1/query?query=osm_cpu_utilization%7Bns_id=%224c1a4009-bf35-4a0b-b37d-75f8cd28a6ac%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.136:9091/api/v1/query?query=osm_cpu_utilization%7Bns_id=%224c1a4009-bf35-4a0b-b37d-75f8cd28a6ac%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 03:56:13 GMT', 'Content-Length': '358'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"osm_cpu_utilization","job":"airflow_osm_vm_metrics_7a8df917-c55f-4ae7-a49d-b123d795de17","metric_id":"cirros_vnf_cpu_util","ns_id":"4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac","project_id":"906e76e1-3d4d-405e-9aef-801e4573a3ab","vdu_id":"cirros_vnfd-VM","vdu_name":"sa_07-alarm_test-vnf-cirros_vnfd-VM-0","vim_id":"7a8df917-c55f-4ae7-a49d-b123d795de17","vm_id":"f46cfd13-37a0-4da3-a3c9-9a65300269c8","vnf_member_index":"vnf"},"value":[1712116573.757,"0.03333333333333333"]}]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': [{'metric': {'__name__': 'osm_cpu_utilization', 'job': 'airflow_osm_vm_metrics_7a8df917-c55f-4ae7-a49d-b123d795de17', '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_7a8df917-c55f-4ae7-a49d-b123d795de17', 'metric_id': 'cirros_vnf_cpu_util', 'ns_id': '4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac... ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 1 ${results} = 1 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. Argument types are: <class 'str'> <class 'int'> ${result_list[0]["value"][1]} ${metric_value} = 0.03333333333333333 msg=The metric '${METRIC_NAME}' value is '${metric_value}' Fails the test with the given message and optionally alters its tags. Check that the expected metric is present in Prometheus (pushed from SA modules). cluster_sa daily regression sa_07 6 times 40 seconds Execute Remote Command Check Rc Return Output ${WS_VNF_IP_ADDR} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} cat '${WS_LOG_FILE}' | grep '${WS_ALARM_MSG}' | grep '${NS_NAME}' Runs the specified keyword and retries if it fails. ${WS_VNF_IP_ADDR} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} cat '${WS_LOG_FILE}' | grep '${WS_ALARM_MSG}' | grep '${NS_NAME}' Execute via SSH a command in a remote host and, if the command succeeds, return the output. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.248.100:22' as 'ubuntu'. Read output: Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.4.0-107-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Wed Apr 3 03:56:14 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.100 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: Wed Apr 3 03:46:28 2024 from 172.21.249.4 To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@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.100:22' as 'ubuntu'. Read output: Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.4.0-107-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Wed Apr 3 03:56:55 UTC 2024 System load: 0.0 Processes: 101 Usage of /: 14.2% of 9.52GB Users logged in: 0 Memory usage: 21% IPv4 address for ens3: 172.21.248.100 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: Wed Apr 3 03:56: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@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": "1237bf6d-a6f4-4edb-b39e-d4e750d0a47b", "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": "1237bf6d-a6f4-4edb-b39e-d4e750d0a47b", "status": "alarm", "metric_name": "osm_cpu_utilization", "start_date": "2024-04-03T03:56:35.854Z", "tags": {"alertname": "vdu_alarm_1237bf6d-a6f4-4edb-b39e-d4e750d0a47b", "job": "airflow_osm_vm_metrics_7a8df917-c55f-4ae7-a49d-b123d795de17", "metric_id": "cirros_vnf_cpu_util", "ns_id": "4c1a4009-bf35-4a0b-b37d-75f8cd28a6ac", "project_id": "906e76e1-3d4d-405e-9aef-801e4573a3ab", "vdu_id": "cirros_vnfd-VM", "vdu_name": "sa_07-alarm_test-vnf-cirros_vnfd-VM-0", "vim_id": "7a8df917-c55f-4ae7-a49d-b123d795de17", "vm_id": "f46cfd13-37a0-4da3-a3c9-9a65300269c8", "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} = +--------------------------------------+-------------------------------------------+--------+------------------------------------------------------------------------------------------+----------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-------------------------------------------+--------+------------------------------------------------------------------------------------------+------------------------------+--------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-------------------------------------------+--------+------------------------------------------------------------------------------------------+------------------------------+--------------------------+ | 25aeb1e5-6a89-4a59-9cdf-dfb992743e62 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.105; slicebasic.slice-nsd_vnfd_vld_dat=192.168.169.62, 192.168.182.92 | ubuntu18.04 | simple_requires-1-1-flv | | a2c1201b-2920-4779-9182-f086b52ee90f | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.131; slicebasic.slice-nsd_vnfd_vld_dat=192.168.182.150 | ubuntu18.04 | simple_requires-1-1-flv | | 895255da-58d8-4553-9d62-44532e9dc0d9 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.244; slicebasic.slice-nsd_vnfd_vld_dat=192.168.169.175 | ubuntu18.04 | simple_requires-1-1-flv | | 4a7b70bc-6122-4679-92be-b33296e9951e | hfmultivdu-vnf2-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.137.132; hfmultivdu-internal=192.168.24.63 | ubuntu20.04 | simple_requires-1-1-flv | | 0d7aa95b-e16c-443f-b94d-f90460057e36 | hfmultivdu-vnf2-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.24.90; osm-ext=172.21.249.184 | ubuntu20.04 | simple_requires-1-1-flv | | 6594a314-0ca7-4d87-ac80-9dc627231422 | hfmultivdu-vnf1-dataVM-0 | ACTIVE | hfmultivdu-datanet=192.168.137.115; hfmultivdu-internal=192.168.138.95 | ubuntu20.04 | simple_requires-1-1-flv | | 80f0a4e3-9199-4e99-a79b-a1e1ab2ad3b7 | hfmultivdu-vnf1-mgmtVM-0 | ACTIVE | hfmultivdu-internal=192.168.138.99; osm-ext=172.21.248.130 | ubuntu20.04 | simple_requires-1-1-flv | | f46cfd13-37a0-4da3-a3c9-9a65300269c8 | sa_07-alarm_test-vnf-cirros_vnfd-VM-0 | ACTIVE | osm-ext=172.21.248.28 | cirros-0.3.5-x86_64-disk.img | cirros_vnfd-VM-vnf-1-flv | | 3817691b-0404-4154-872a-0b64759a8b7e | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.100 | ubuntu20.04 | simple_requires-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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} = +--------------------------------------+-------------------------------------------+--------+------------------------------------------------------------------------------------------+-------------+--... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-------------------------------------------+--------+------------------------------------------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-------------------------------------------+--------+------------------------------------------------------------------------------------------+-------------+-------------------------+ | 25aeb1e5-6a89-4a59-9cdf-dfb992743e62 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.105; slicebasic.slice-nsd_vnfd_vld_dat=192.168.169.62, 192.168.182.92 | ubuntu18.04 | simple_requires-1-1-flv | | a2c1201b-2920-4779-9182-f086b52ee90f | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.131; slicebasic.slice-nsd_vnfd_vld_dat=192.168.182.150 | ubuntu18.04 | simple_requires-1-1-flv | | 895255da-58d8-4553-9d62-44532e9dc0d9 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.244; slicebasic.slice-nsd_vnfd_vld_dat=192.168.169.175 | ubuntu18.04 | simple_requires-1-1-flv | | 4a7b70bc-6122-4679-92be-b33296e9951e | hfmultivdu-vnf2-dataVM-0 | ACTIVE | hfmultivdu-internal=192.168.24.63 | ubuntu20.04 | simple_requires-1-1-flv | | 0d7aa95b-e16c-443f-b94d-f90460057e36 | hfmultivdu-vnf2-mgmtVM-0 | ACTIVE | osm-ext=172.21.249.184 | ubuntu20.04 | simple_requires-1-1-flv | | 3817691b-0404-4154-872a-0b64759a8b7e | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.100 | ubuntu20.04 | simple_requires-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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} = +--------------------------------------+-------------------------------------------+--------+------------------------------------------------------------------------------------------+-------------+--... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-------------------------------------------+--------+------------------------------------------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-------------------------------------------+--------+------------------------------------------------------------------------------------------+-------------+-------------------------+ | e7a17b2c-3be9-4e38-851a-ae80b8b287cc | sliceshared.slic-edge-ubuntu_slice-VM-0 | BUILD | | ubuntu18.04 | simple_requires-1-1-flv | | 25aeb1e5-6a89-4a59-9cdf-dfb992743e62 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.105; slicebasic.slice-nsd_vnfd_vld_dat=192.168.169.62, 192.168.182.92 | ubuntu18.04 | simple_requires-1-1-flv | | a2c1201b-2920-4779-9182-f086b52ee90f | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.131; slicebasic.slice-nsd_vnfd_vld_dat=192.168.182.150 | ubuntu18.04 | simple_requires-1-1-flv | | 895255da-58d8-4553-9d62-44532e9dc0d9 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.244; slicebasic.slice-nsd_vnfd_vld_dat=192.168.169.175 | ubuntu18.04 | simple_requires-1-1-flv | | 3817691b-0404-4154-872a-0b64759a8b7e | sa_07-webhook_se-vnf-hackfest_basic-VM-0 | ACTIVE | osm-ext=172.21.248.100 | ubuntu20.04 | simple_requires-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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} = +--------------------------------------+-------------------------------------------+--------+------------------------------------------------------------------------------------------+-------------+--... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-------------------------------------------+--------+------------------------------------------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-------------------------------------------+--------+------------------------------------------------------------------------------------------+-------------+-------------------------+ | e7a17b2c-3be9-4e38-851a-ae80b8b287cc | sliceshared.slic-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.103; slicebasic.slice-nsd_vnfd_vld_dat=192.168.169.10 | ubuntu18.04 | simple_requires-1-1-flv | | 25aeb1e5-6a89-4a59-9cdf-dfb992743e62 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.105; slicebasic.slice-nsd_vnfd_vld_dat=192.168.169.62, 192.168.182.92 | ubuntu18.04 | simple_requires-1-1-flv | | a2c1201b-2920-4779-9182-f086b52ee90f | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.131; slicebasic.slice-nsd_vnfd_vld_dat=192.168.182.150 | ubuntu18.04 | simple_requires-1-1-flv | | 895255da-58d8-4553-9d62-44532e9dc0d9 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.244; slicebasic.slice-nsd_vnfd_vld_dat=192.168.169.175 | ubuntu18.04 | simple_requires-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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.136 == '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 ac501081-0a1f-4ad4-8def-8b50f8b62a0b ${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} = ac501081-0a1f-4ad4-8def-8b50f8b62a0b ${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 d... ${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 d03d6c5c-c8ea-457d-8fce-416b10bf1e69 ${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} = d03d6c5c-c8ea-457d-8fce-416b10bf1e69 ${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} = f364e7d6-2f0f-47d5-b7bf-19dfacee51cf ${stdout} Logs the given message with the given level. f364e7d6-2f0f-47d5-b7bf-19dfacee51cf ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${ns_id} = f364e7d6-2f0f-47d5-b7bf-19dfacee51cf ${ns_id} Logs the given message with the given level. f364e7d6-2f0f-47d5-b7bf-19dfacee51cf ${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 | +--------------------------------------+-------------------------------------------+--------+------------------------------------------------------------------------------------------+-------------+-------------------------+ | e7a17b2c-3be9-4e38-851a-ae80b8b287cc | sliceshared.slic-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.103; slicebasic.slice-nsd_vnfd_vld_dat=192.168.169.10 | ubuntu18.04 | simple_requires-1-1-flv | | 25aeb1e5-6a89-4a59-9cdf-dfb992743e62 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.105; slicebasic.slice-nsd_vnfd_vld_dat=192.168.169.62, 192.168.182.92 | ubuntu18.04 | simple_requires-1-1-flv | | a2c1201b-2920-4779-9182-f086b52ee90f | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.131; slicebasic.slice-nsd_vnfd_vld_dat=192.168.182.150 | ubuntu18.04 | simple_requires-1-1-flv | | 895255da-58d8-4553-9d62-44532e9dc0d9 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.244; slicebasic.slice-nsd_vnfd_vld_dat=192.168.169.175 | ubuntu18.04 | simple_requires-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | f364e7d6-2f0f-47d5-b7bf-19dfacee51cf | 2024-04-03T03:58:00 | BUILDING | INSTANTIATING (d6f73c3c-76a1-4731-b9ce-61f868a4c6e0) | N/A | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | f364e7d6-2f0f-47d5-b7bf-19dfacee51cf | 2024-04-03T03:58:00 | BUILDING | INSTANTIATING (d6f73c3c-76a1-4731-b9ce-61f868a4c6e0) | N/A | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------------------------------------------------------------+-------------+---------------------------+ | 8a5711db-7f79-42f2-aa59-621694b000b6 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ACTIVE | osm-ext=172.21.249.201; sa_08-vnf_with_v-external=192.168.105.147; sa_08-vnf_with_v-internal=192.168.214.247 | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 22be99f2-a19d-4e07-8787-aadefabeb4c1 | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.207.136; osm-ext=172.21.248.144 | ubuntu18.04 | simple_requires-1-1-flv | | 6f117fc2-643d-4ff7-b24b-f98d6009a8ce | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.207.20; osm-ext=172.21.249.26 | ubuntu18.04 | simple_requires-1-1-flv | | 065dd13a-e673-4e5b-bd39-154fc416fd2b | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.250 | ubuntu20.04 | several_volumes-VM-flv | | e7a17b2c-3be9-4e38-851a-ae80b8b287cc | sliceshared.slic-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.103; slicebasic.slice-nsd_vnfd_vld_dat=192.168.169.10 | ubuntu18.04 | simple_requires-1-1-flv | | 25aeb1e5-6a89-4a59-9cdf-dfb992743e62 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.105; slicebasic.slice-nsd_vnfd_vld_dat=192.168.169.62, 192.168.182.92 | ubuntu18.04 | simple_requires-1-1-flv | | a2c1201b-2920-4779-9182-f086b52ee90f | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.131; slicebasic.slice-nsd_vnfd_vld_dat=192.168.182.150 | ubuntu18.04 | simple_requires-1-1-flv | | 895255da-58d8-4553-9d62-44532e9dc0d9 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.244; slicebasic.slice-nsd_vnfd_vld_dat=192.168.169.175 | ubuntu18.04 | simple_requires-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | f364e7d6-2f0f-47d5-b7bf-19dfacee51cf | 2024-04-03T03:58:00 | BUILDING | INSTANTIATING (d6f73c3c-76a1-4731-b9ce-61f868a4c6e0) | N/A | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | f364e7d6-2f0f-47d5-b7bf-19dfacee51cf | 2024-04-03T03:58:00 | BUILDING | INSTANTIATING (d6f73c3c-76a1-4731-b9ce-61f868a4c6e0) | N/A | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------------------------------------------------------------+-------------+---------------------------+ | 8a5711db-7f79-42f2-aa59-621694b000b6 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ACTIVE | osm-ext=172.21.249.201; sa_08-vnf_with_v-external=192.168.105.147; sa_08-vnf_with_v-internal=192.168.214.247 | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 22be99f2-a19d-4e07-8787-aadefabeb4c1 | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.207.136; osm-ext=172.21.248.144 | ubuntu18.04 | simple_requires-1-1-flv | | 6f117fc2-643d-4ff7-b24b-f98d6009a8ce | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.207.20; osm-ext=172.21.249.26 | ubuntu18.04 | simple_requires-1-1-flv | | 065dd13a-e673-4e5b-bd39-154fc416fd2b | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.250 | ubuntu20.04 | several_volumes-VM-flv | | e7a17b2c-3be9-4e38-851a-ae80b8b287cc | sliceshared.slic-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.103; slicebasic.slice-nsd_vnfd_vld_dat=192.168.169.10 | ubuntu18.04 | simple_requires-1-1-flv | | 25aeb1e5-6a89-4a59-9cdf-dfb992743e62 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.105; slicebasic.slice-nsd_vnfd_vld_dat=192.168.169.62, 192.168.182.92 | ubuntu18.04 | simple_requires-1-1-flv | | a2c1201b-2920-4779-9182-f086b52ee90f | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.131; slicebasic.slice-nsd_vnfd_vld_dat=192.168.182.150 | ubuntu18.04 | simple_requires-1-1-flv | | 895255da-58d8-4553-9d62-44532e9dc0d9 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.244; slicebasic.slice-nsd_vnfd_vld_dat=192.168.169.175 | ubuntu18.04 | simple_requires-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | f364e7d6-2f0f-47d5-b7bf-19dfacee51cf | 2024-04-03T03:58:00 | BUILDING | INSTANTIATING (d6f73c3c-76a1-4731-b9ce-61f868a4c6e0) | N/A | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show OPERATION_ID" ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${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 | f364e7d6-2f0f-47d5-b7bf-19dfacee51cf | 2024-04-03T03:58:00 | BUILDING | INSTANTIATING (d6f73c3c-76a1-4731-b9ce-61f868a4c6e0) | N/A | +-----------------------------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+---------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------------------------------------------------------------+-------------+---------------------------+ | 8a5711db-7f79-42f2-aa59-621694b000b6 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ACTIVE | osm-ext=172.21.249.201; sa_08-vnf_with_v-external=192.168.105.147; sa_08-vnf_with_v-internal=192.168.214.247 | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 22be99f2-a19d-4e07-8787-aadefabeb4c1 | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.207.136; osm-ext=172.21.248.144 | ubuntu18.04 | simple_requires-1-1-flv | | 6f117fc2-643d-4ff7-b24b-f98d6009a8ce | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.207.20; osm-ext=172.21.249.26 | ubuntu18.04 | simple_requires-1-1-flv | | 065dd13a-e673-4e5b-bd39-154fc416fd2b | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.250 | ubuntu20.04 | several_volumes-VM-flv | | e7a17b2c-3be9-4e38-851a-ae80b8b287cc | sliceshared.slic-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.103; slicebasic.slice-nsd_vnfd_vld_dat=192.168.169.10 | ubuntu18.04 | simple_requires-1-1-flv | | 25aeb1e5-6a89-4a59-9cdf-dfb992743e62 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.105; slicebasic.slice-nsd_vnfd_vld_dat=192.168.169.62, 192.168.182.92 | ubuntu18.04 | simple_requires-1-1-flv | | a2c1201b-2920-4779-9182-f086b52ee90f | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.131; slicebasic.slice-nsd_vnfd_vld_dat=192.168.182.150 | ubuntu18.04 | simple_requires-1-1-flv | | 895255da-58d8-4553-9d62-44532e9dc0d9 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.244; slicebasic.slice-nsd_vnfd_vld_dat=192.168.169.175 | ubuntu18.04 | simple_requires-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | f364e7d6-2f0f-47d5-b7bf-19dfacee51cf | 2024-04-03T03:58:00 | 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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------------------------------------------------------------+-------------+---------------------------+ | 8a5711db-7f79-42f2-aa59-621694b000b6 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ACTIVE | osm-ext=172.21.249.201; sa_08-vnf_with_v-external=192.168.105.147; sa_08-vnf_with_v-internal=192.168.214.247 | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 22be99f2-a19d-4e07-8787-aadefabeb4c1 | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.207.136; osm-ext=172.21.248.144 | ubuntu18.04 | simple_requires-1-1-flv | | 6f117fc2-643d-4ff7-b24b-f98d6009a8ce | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.207.20; osm-ext=172.21.249.26 | ubuntu18.04 | simple_requires-1-1-flv | | 065dd13a-e673-4e5b-bd39-154fc416fd2b | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.250 | ubuntu20.04 | several_volumes-VM-flv | | e7a17b2c-3be9-4e38-851a-ae80b8b287cc | sliceshared.slic-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.103; slicebasic.slice-nsd_vnfd_vld_dat=192.168.169.10 | ubuntu18.04 | simple_requires-1-1-flv | | 25aeb1e5-6a89-4a59-9cdf-dfb992743e62 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.105; slicebasic.slice-nsd_vnfd_vld_dat=192.168.169.62, 192.168.182.92 | ubuntu18.04 | simple_requires-1-1-flv | | a2c1201b-2920-4779-9182-f086b52ee90f | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.131; slicebasic.slice-nsd_vnfd_vld_dat=192.168.182.150 | ubuntu18.04 | simple_requires-1-1-flv | | 895255da-58d8-4553-9d62-44532e9dc0d9 | slicebasic.slice-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.244; slicebasic.slice-nsd_vnfd_vld_dat=192.168.169.175 | ubuntu18.04 | simple_requires-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 | f364e7d6-2f0f-47d5-b7bf-19dfacee51cf | 2024-04-03T03:58:00 | 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} = f364e7d6-2f0f-47d5-b7bf-19dfacee51cf ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = f364e7d6-2f0f-47d5-b7bf-19dfacee51cf 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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4c107880>, 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.136: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.136:9091/api/v1/query?query=ifInOctets%7BifIndex=%221%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 03:59:46 GMT', 'Content-Length': '87'} body={"status":"success","data":{"resultType":"vector","result":[]}} ${resp} = <Response [200]> 200 ${resp} Fails if response status code is different than the expected. ${resp.json()} ${resp} = {'status': 'success', 'data': {'resultType': 'vector', 'result': []}} ${result_list} ${resp["data"]["result"]} Converts the given ``item`` to a Python ``list`` type. ${result_list} = [] ${results} ${result_list} Returns and logs the length of the given item as an integer. Length is 0 ${results} = 0 0 ${results} msg=Metric ${metric} not found values=false Fails if objects are equal after converting them to real numbers. Argument types are: <class 'str'> <class 'int'> Metric ifInOctets not found 1 ${results} msg=Metric ${metric} with multiple values values=false Fails if objects are unequal after converting them to integers. ${result_list[0]["value"][1]} ${PROMETHEUS_HOST} ${PROMETHEUS_PORT} ${PROMETHEUS_USER} ${PROMETHEUS_PASSWORD} ${METRIC_1_NAME} ${METRIC_1_FILTER} Get the instant value of a metric from Prometheus using multiple filter parameters. The filter parameters are given to this function in key=value format (one argument per key/value pair). Fails if the metric is not found or has multiple values. Examples of execution: ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${metric}= Get Metric ${prometheus_ip} ${prometheus_port} "" ${metric} ${param1}=${value1} ${param2}=${value2} ${filter} ${EMPTY} Returns the given values which can then be assigned to a variables. ${filter} = ${param} @{filter_parameters} ifIndex=1 ${match} ${param_name} ${param_value} ${param} (.+)=(.+) msg=Syntax error in filter parameters Fails if ``string`` does not match ``pattern`` as a regular expression. ${match} = ifIndex=1 ${param_name} = ifIndex ${param_value} = 1 ${match},${param_name},${param_value} Logs the given message with the given level. ifIndex=1,ifIndex,1 ${filter} SEPARATOR= ${filter} ${param_name}="${param_value}", Catenates the given items together and returns the resulted string. ${filter} = ifIndex="1", ${resp} ${prometheus_ip} ${prometheus_port} ${prometheus_user} ${prometheus_password} query=${metric}{${filter}} Execute a Prometheus Instant Query using HTTP API. Return an inline json with the result of the query. The requested URL is the next: http://${prometheus_ip}:${prometheus_port}/api/v1/query?${querystring} ${auth} ${prometheus_user} ${prometheus_password} Returns a list containing given items. ${auth} = ['""', '""'] ${auth} None Returns the given values which can then be assigned to a variables. prometheus http://${prometheus_ip}:${prometheus_port} timeout=${TIMEOUT} max_retries=${MAX_RETRIES} verify=false auth=${auth} Create Session: create a HTTP session to a server Creating Session using : alias=prometheus, url=http://172.21.248.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4c17c700>, 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.136: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.136:9091/api/v1/query?query=ifInOctets%7BifIndex=%221%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 04:00:46 GMT', 'Content-Length': '218'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"ifInOctets","ifAlias":"lo","ifDescr":"lo","ifIndex":"1","ifName":"lo","instance":"172.21.249.201","job":"a646c7b9ede54003a96c66de34515ed5"},"value":[1712116846.343,"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.201', ... ${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.201', 'job': 'a646c7b9ede54003a96c66de34515ed5'}, 'value': [1712116846.... ${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.136:9091, headers={}, cookies={}, auth=<requests.auth.HTTPBasicAuth object at 0x7f4d4c17fa00>, 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.136: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.136:9091/api/v1/query?query=ifMtu%7BifIndex=%222%22,%7D status=200, reason=OK headers={'Content-Encoding': 'gzip', 'Content-Type': 'application/json', 'Date': 'Wed, 03 Apr 2024 04:00:46 GMT', 'Content-Length': '244'} body={"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"ifMtu","ifAlias":"VyOS-eth0","ifDescr":"Red Hat, Inc Device 0001","ifIndex":"2","ifName":"eth0","instance":"172.21.249.201","job":"a646c7b9ede54003a96c66de34515ed5"},"value":[1712116846.369,"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.201', 'job': 'a646c7b9ede54003a96c66de34515ed... ${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 | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------------------------------------------------------------+-------------+---------------------------+ | 8a5711db-7f79-42f2-aa59-621694b000b6 | sa_08-vnf_with_v-VyOS Router-vyos-VM-0 | ACTIVE | osm-ext=172.21.249.201; sa_08-vnf_with_v-external=192.168.105.147; sa_08-vnf_with_v-internal=192.168.214.247 | vyos-1.1.7 | vyos-VM-VyOS Router-1-flv | | 22be99f2-a19d-4e07-8787-aadefabeb4c1 | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.207.136; osm-ext=172.21.248.144 | ubuntu18.04 | simple_requires-1-1-flv | | 6f117fc2-643d-4ff7-b24b-f98d6009a8ce | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.207.20; osm-ext=172.21.249.26 | ubuntu18.04 | simple_requires-1-1-flv | | 065dd13a-e673-4e5b-bd39-154fc416fd2b | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.250 | ubuntu20.04 | several_volumes-VM-flv | | e7a17b2c-3be9-4e38-851a-ae80b8b287cc | sliceshared.slic-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.103; slicebasic.slice-nsd_vnfd_vld_dat=192.168.169.10 | ubuntu18.04 | simple_requires-1-1-flv | | 25aeb1e5-6a89-4a59-9cdf-dfb992743e62 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.105; slicebasic.slice-nsd_vnfd_vld_dat=192.168.169.62, 192.168.182.92 | ubuntu18.04 | simple_requires-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | ubuntu20.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+--------------------------------------------------------------------------------------------------------------+-------------+---------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep sa_08-vnf_with_vnf_indicators_snmp_test 2>&1'. ${rc} = 0 ${stdout} = sa_08-vnf_with_vnf_indicators_snmp_test ${rc},${stdout} Logs the given message with the given level. 0,sa_08-vnf_with_vnf_indicators_snmp_test ${stdout} ${ns} Fails if objects are equal after converting them to strings. sa_08-vnf_with_vnf_indicators_snmp_test == sa_08-vnf_with_vnf_indicators_snmp_test ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+------------------------------------------------------------------------------------------+------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+------------------------------------------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+------------------------------------------------------------------------------------------+-------------+-------------------------+ | 22be99f2-a19d-4e07-8787-aadefabeb4c1 | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.207.136; osm-ext=172.21.248.144 | ubuntu18.04 | simple_requires-1-1-flv | | 6f117fc2-643d-4ff7-b24b-f98d6009a8ce | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.207.20; osm-ext=172.21.249.26 | ubuntu18.04 | simple_requires-1-1-flv | | 065dd13a-e673-4e5b-bd39-154fc416fd2b | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.250 | ubuntu20.04 | several_volumes-VM-flv | | e7a17b2c-3be9-4e38-851a-ae80b8b287cc | sliceshared.slic-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.103; slicebasic.slice-nsd_vnfd_vld_dat=192.168.169.10 | ubuntu18.04 | simple_requires-1-1-flv | | 25aeb1e5-6a89-4a59-9cdf-dfb992743e62 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.105; slicebasic.slice-nsd_vnfd_vld_dat=192.168.169.62, 192.168.182.92 | ubuntu18.04 | simple_requires-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | ubuntu20.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+-----------------------------------------------+--------+------------------------------------------------------------------------------------------+-------------+-------------------------+ ${rc} ${stdout} osm ns-list | awk '{print $2}' | grep ${ns} Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | awk '{print $2}' | grep sa_08-vnf_with_vnf_indicators_snmp_test 2>&1'. ${rc} = 0 ${stdout} = sa_08-vnf_with_vnf_indicators_snmp_test ${rc},${stdout} Logs the given message with the given level. 0,sa_08-vnf_with_vnf_indicators_snmp_test ${stdout} ${ns} Fails if objects are equal after converting them to strings. sa_08-vnf_with_vnf_indicators_snmp_test == sa_08-vnf_with_vnf_indicators_snmp_test ${ns} Check if a given NS instance is not present in OSM. ${rc} ${stdout} openstack server list Runs the given command in the system and returns the RC and output. Running command 'openstack server list 2>&1'. ${rc} = 0 ${stdout} = +--------------------------------------+-----------------------------------------------+--------+------------------------------------------------------------------------------------------+------------... ${rc},${stdout} Logs the given message with the given level. 0,+--------------------------------------+-----------------------------------------------+--------+------------------------------------------------------------------------------------------+-------------+-------------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-----------------------------------------------+--------+------------------------------------------------------------------------------------------+-------------+-------------------------+ | 22be99f2-a19d-4e07-8787-aadefabeb4c1 | heal_01-charm_vnf-mgmtVM-1 | ACTIVE | heal_01-datanet=192.168.207.136; osm-ext=172.21.248.144 | ubuntu18.04 | simple_requires-1-1-flv | | 6f117fc2-643d-4ff7-b24b-f98d6009a8ce | heal_01-charm_vnf-mgmtVM-0 | ACTIVE | heal_01-datanet=192.168.207.20; osm-ext=172.21.249.26 | ubuntu18.04 | simple_requires-1-1-flv | | 065dd13a-e673-4e5b-bd39-154fc416fd2b | heal_01-several_volumes_-several_volumes-VM-0 | ACTIVE | osm-ext=172.21.248.250 | ubuntu20.04 | several_volumes-VM-flv | | e7a17b2c-3be9-4e38-851a-ae80b8b287cc | sliceshared.slic-edge-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.103; slicebasic.slice-nsd_vnfd_vld_dat=192.168.169.10 | ubuntu18.04 | simple_requires-1-1-flv | | 25aeb1e5-6a89-4a59-9cdf-dfb992743e62 | slicebasic.slice-middle-ubuntu_slice-VM-0 | ACTIVE | osm-ext=172.21.248.105; slicebasic.slice-nsd_vnfd_vld_dat=192.168.169.62, 192.168.182.92 | ubuntu18.04 | simple_requires-1-1-flv | | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | 9463b19c-04fc-477a-a12e-549d4cb3bdcc | osm-v120-merge-702 | ACTIVE | osm-ext=172.21.248.117 | 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 1d9e1fe5-3266-4725-b8aa-3d1b5e4a3d4e ${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} = 1d9e1fe5-3266-4725-b8aa-3d1b5e4a3d4e ${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 4f9dd800-554c-4354-acff-a4c42bc10d22 ${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} = 4f9dd800-554c-4354-acff-a4c42bc10d22 ${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 24165960-929c-4d75-91b1-d0b8ba1557ec ${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} = 24165960-929c-4d75-91b1-d0b8ba1557ec ${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 dc8a401f-0dc7-4778-9eb0-abd100adf5c3 ${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} = dc8a401f-0dc7-4778-9eb0-abd100adf5c3 ${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} = 64c074bc-afb3-4c6e-937c-4d14ca3a990b ${stdout} Logs the given message with the given level. 64c074bc-afb3-4c6e-937c-4d14ca3a990b ${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} = 134ff00a-06cd-46c1-b205-654c813ec86c ${rc},${stdout} Logs the given message with the given level. 0,134ff00a-06cd-46c1-b205-654c813ec86c ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${nsi_id} = 134ff00a-06cd-46c1-b205-654c813ec86c ${nsi_id} Logs the given message with the given level. 134ff00a-06cd-46c1-b205-654c813ec86c ${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 | 134ff00a-06cd-46c1-b205-654c813ec86c | 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 | 134ff00a-06cd-46c1-b205-654c813ec86c | 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 | 134ff00a-06cd-46c1-b205-654c813ec86c | 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 | 134ff00a-06cd-46c1-b205-654c813ec86c | 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 | 134ff00a-06cd-46c1-b205-654c813ec86c | 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 | 134ff00a-06cd-46c1-b205-654c813ec86c | 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 | 134ff00a-06cd-46c1-b205-654c813ec86c | 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 | 134ff00a-06cd-46c1-b205-654c813ec86c | 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} = 134ff00a-06cd-46c1-b205-654c813ec86c ${NSI_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NSI_ID} = 134ff00a-06cd-46c1-b205-654c813ec86c 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, '2b3cf8fa-9535-414c-89e4-ee8dc0fad7d1') ${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 2b3cf8fa-9535-414c-89e4-ee8dc0fad7d1 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.249.195 ${stdout} Logs the given message with the given level. 172.21.249.195 ${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.195 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.195 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 | 6200ae84-3baf-4039-bcd5-769bb7998cc9 5654008b-6823-4c71-9897-61e8838e301b ] @{ns_list} ${ns_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{ns_list} = [ 6200ae84-3baf-4039-bcd5-769bb7998cc9 | 5654008b-6823-4c71-9897-61e8838e301b ] ${ns_list} Logs the length and contents of the ``list`` using given ``level``. List length is 2 and it contains following items: 0: 6200ae84-3baf-4039-bcd5-769bb7998cc9 1: 5654008b-6823-4c71-9897-61e8838e301b @{ns_list} @{slice_ns_list} = [ 6200ae84-3baf-4039-bcd5-769bb7998cc9 | 5654008b-6823-4c71-9897-61e8838e301b ] @{slice_ns_list} Logs the given messages as separate entries using the INFO level. 6200ae84-3baf-4039-bcd5-769bb7998cc9 5654008b-6823-4c71-9897-61e8838e301b @{temp_list} Returns a list containing given items. @{temp_list} = [ ] ${ns_id} @{slice_ns_list} 6200ae84-3baf-4039-bcd5-769bb7998cc9 ${ns_id} Logs the given message with the given level. 6200ae84-3baf-4039-bcd5-769bb7998cc9 @{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 6200ae84-3baf-4039-bcd5-769bb7998cc9 | grep 6200ae84-3baf-4039-bcd5-769bb7998cc9 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 8e852708-51d6-4085-9560-dd893de4c2f4 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 8e852708-51d6-4085-9560-dd893de4c2f4 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 8e852708-51d6-4085-9560-dd893de4c2f4 @{vnf_list} @{vnf_id_list} = [ 8e852708-51d6-4085-9560-dd893de4c2f4 ] @{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} 8e852708-51d6-4085-9560-dd893de4c2f4 ${vnf_id} Logs the given message with the given level. 8e852708-51d6-4085-9560-dd893de4c2f4 @{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=8e852708-51d6-4085-9560-dd893de4c2f4 | 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.152 ] ${vnf_ip_list_string}[1] Verifies that the given item is not empty. Length is 14 @{vnf_ip_list} ${vnf_ip_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_ip_list} = [ 172.21.249.152 ] ${vnf_ip_list} Logs the given messages as separate entries using the INFO level. ['172.21.249.152'] ${vnf_ip_list} Verifies that the given item is not empty. Length is 1 @{vnf_ip_list} @{vnf_ip_list} = [ 172.21.249.152 ] @{temp_list} ${temp_list} ${vnf_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.249.152 ] ${temp_list} Verifies that the given item is not empty. Length is 1 @{temp_list} @{ns_ip_list} = [ 172.21.249.152 ] @{temp_list} ${temp_list} ${ns_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.249.152 ] 5654008b-6823-4c71-9897-61e8838e301b ${ns_id} Logs the given message with the given level. 5654008b-6823-4c71-9897-61e8838e301b @{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 5654008b-6823-4c71-9897-61e8838e301b | grep 5654008b-6823-4c71-9897-61e8838e301b | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 846ec7ad-cb6e-4a66-88a7-2d4eb1a09b35 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 846ec7ad-cb6e-4a66-88a7-2d4eb1a09b35 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 846ec7ad-cb6e-4a66-88a7-2d4eb1a09b35 @{vnf_list} @{vnf_id_list} = [ 846ec7ad-cb6e-4a66-88a7-2d4eb1a09b35 ] @{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} 846ec7ad-cb6e-4a66-88a7-2d4eb1a09b35 ${vnf_id} Logs the given message with the given level. 846ec7ad-cb6e-4a66-88a7-2d4eb1a09b35 @{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=846ec7ad-cb6e-4a66-88a7-2d4eb1a09b35 | 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.238 ] ${vnf_ip_list_string}[1] Verifies that the given item is not empty. Length is 14 @{vnf_ip_list} ${vnf_ip_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_ip_list} = [ 172.21.249.238 ] ${vnf_ip_list} Logs the given messages as separate entries using the INFO level. ['172.21.249.238'] ${vnf_ip_list} Verifies that the given item is not empty. Length is 1 @{vnf_ip_list} @{vnf_ip_list} = [ 172.21.249.238 ] @{temp_list} ${temp_list} ${vnf_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.249.238 ] ${temp_list} Verifies that the given item is not empty. Length is 1 @{temp_list} @{ns_ip_list} = [ 172.21.249.238 ] @{temp_list} ${temp_list} ${ns_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.249.152 | 172.21.249.238 ] ${temp_list} Logs the length and contents of the ``list`` using given ``level``. List length is 2 and it contains following items: 0: 172.21.249.152 1: 172.21.249.238 ${SLICE_VNFS_IPS} ${temp_list} Makes a variable available everywhere within the scope of the current suite. ${SLICE_VNFS_IPS} = ['172.21.249.152', '172.21.249.238'] 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.195 ${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.195 2>&1'. ${rc} = 0 ${stdout} = PING 172.21.249.195 (172.21.249.195) 56(84) bytes of data. 64 bytes from 172.21.249.195: icmp_seq=1 ttl=63 time=2.37 ms 64 bytes from 172.21.249.195: icmp_seq=2 ttl=63 time=0.687 ms --- 172.21.249.19... ${stdout} Logs the given message with the given level. PING 172.21.249.195 (172.21.249.195) 56(84) bytes of data. 64 bytes from 172.21.249.195: icmp_seq=1 ttl=63 time=2.37 ms 64 bytes from 172.21.249.195: icmp_seq=2 ttl=63 time=0.687 ms --- 172.21.249.195 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 0.687/1.527/2.367/0.840 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.195: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 Wed Apr 3 04:05:01 UTC 2024 System load: 0.11 Users logged in: 0 Usage of /: 11.5% of 9.52GB IP address for ens3: 172.21.249.195 Memory usage: 12% IP address for ens4: 192.168.178.115 Swap usage: 0% IP address for ens5: 192.168.23.120 Processes: 85 0 updates can be applied immediately. The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. ubuntu@slicebasic:~$ hostname Executes ``command`` on the remote machine and returns its outputs. Executing command 'hostname'. Command exited with return code 0. Closes all open connections. SSH access to the slice middle vnf (mgmt_vnf_ip) with the credentials provided in the variables file cluster_slices daily regression slice_01 ${MGMT_VNF_IP} ${USERNAME} ${PASSWORD} ${PRIVATEKEY} @{SLICE_VNFS_IPS} Connect via SSH to a remote host and test ping to a list of IP addresses, passed as argument. ${host} Opens a new SSH connection to the given ``host`` and ``port``. ${username} ${password} Logs into the SSH server with the given ``username`` and ``password``. ${username} ${privatekey} Logs into the SSH server using key-based authentication. Logging into '172.21.249.195: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 Wed Apr 3 04:05:03 UTC 2024 System load: 0.11 Users logged in: 0 Usage of /: 11.8% of 9.52GB IP address for ens3: 172.21.249.195 Memory usage: 12% IP address for ens4: 192.168.178.115 Swap usage: 0% IP address for ens5: 192.168.23.120 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: Wed Apr 3 04:05: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@slicebasic:~$ ${ip} @{ip_list} 172.21.249.152 ${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.152 > /dev/null && echo OK'. Command exited with return code 0. ${result} = OK ${result} Logs the given message with the given level. OK ${result} OK Fails if ``container`` does not contain ``item`` one or more times. 172.21.249.238 ${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.238 > /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 5979aa8b-f3d3-48a8-8e82-6ab4e17af878 ${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} = 5979aa8b-f3d3-48a8-8e82-6ab4e17af878 ${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 2fa25472-67c5-4d24-9bca-37fad45f4e5a ${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} = 2fa25472-67c5-4d24-9bca-37fad45f4e5a ${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 5828e2a9-f66c-408f-8a9b-23fd2798c976 ${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} = 5828e2a9-f66c-408f-8a9b-23fd2798c976 ${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 35f213ae-d4a5-4e60-b8ce-cf5f67e58d69 ${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} = 35f213ae-d4a5-4e60-b8ce-cf5f67e58d69 ${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} = ba7dbd34-1758-4a52-af64-2dc0fe408f40 ${stdout} Logs the given message with the given level. ba7dbd34-1758-4a52-af64-2dc0fe408f40 ${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} = b5d40af3-fd13-49b9-8f4d-c914b49221a7 ${stdout} Logs the given message with the given level. b5d40af3-fd13-49b9-8f4d-c914b49221a7 ${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} = 9b383b3c-61e1-4b33-91a8-979355e01288 ${rc},${stdout} Logs the given message with the given level. 0,9b383b3c-61e1-4b33-91a8-979355e01288 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${nsi_id} = 9b383b3c-61e1-4b33-91a8-979355e01288 ${nsi_id} Logs the given message with the given level. 9b383b3c-61e1-4b33-91a8-979355e01288 ${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 | 9b383b3c-61e1-4b33-91a8-979355e01288 | 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 | 9b383b3c-61e1-4b33-91a8-979355e01288 | 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 | 9b383b3c-61e1-4b33-91a8-979355e01288 | 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 | 9b383b3c-61e1-4b33-91a8-979355e01288 | 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 | 9b383b3c-61e1-4b33-91a8-979355e01288 | 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 | 9b383b3c-61e1-4b33-91a8-979355e01288 | 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 | 9b383b3c-61e1-4b33-91a8-979355e01288 | 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 | 9b383b3c-61e1-4b33-91a8-979355e01288 | 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} = 9b383b3c-61e1-4b33-91a8-979355e01288 ${NSI_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NSI_ID} = 9b383b3c-61e1-4b33-91a8-979355e01288 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} = 9d0250f1-57d3-4613-81b5-be4e126314b0 ${rc},${stdout} Logs the given message with the given level. 0,9d0250f1-57d3-4613-81b5-be4e126314b0 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${nsi_id} = 9d0250f1-57d3-4613-81b5-be4e126314b0 ${nsi_id} Logs the given message with the given level. 9d0250f1-57d3-4613-81b5-be4e126314b0 ${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 | 9d0250f1-57d3-4613-81b5-be4e126314b0 | 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 | 9d0250f1-57d3-4613-81b5-be4e126314b0 | 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 | 9d0250f1-57d3-4613-81b5-be4e126314b0 | 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 | 9d0250f1-57d3-4613-81b5-be4e126314b0 | 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 | 9d0250f1-57d3-4613-81b5-be4e126314b0 | 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 | 9d0250f1-57d3-4613-81b5-be4e126314b0 | 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} = 9d0250f1-57d3-4613-81b5-be4e126314b0 ${NSI2_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NSI2_ID} = 9d0250f1-57d3-4613-81b5-be4e126314b0 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, '618946a7-5875-45d6-b5ce-132d0daecbd1') ${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 618946a7-5875-45d6-b5ce-132d0daecbd1 | awk '{print $14}' 2>&1'. ${rc} = 0 ${stdout} = 172.21.248.227 ${stdout} Logs the given message with the given level. 172.21.248.227 ${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.227 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.227 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 | 4ab9d0fc-472a-4fc3-9e88-a601f2290d26 618946a7-5875-45d6-b5ce-132d0daecbd1 b727bbdc-1600-4335-9c6c-7f86f3e0fd16 ] @{ns_list} ${ns_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{ns_list} = [ 4ab9d0fc-472a-4fc3-9e88-a601f2290d26 | 618946a7-5875-45d6-b5ce-132d0daecbd1 | b727bbdc-1600-4335-9c6c-7f86f3e0fd16 ] ${ns_list} Logs the length and contents of the ``list`` using given ``level``. List length is 3 and it contains following items: 0: 4ab9d0fc-472a-4fc3-9e88-a601f2290d26 1: 618946a7-5875-45d6-b5ce-132d0daecbd1 2: b727bbdc-1600-4335-9c6c-7f86f3e0fd16 @{ns_list} @{slice_ns_list} = [ 4ab9d0fc-472a-4fc3-9e88-a601f2290d26 | 618946a7-5875-45d6-b5ce-132d0daecbd1 | b727bbdc-1600-4335-9c6c-7f86f3e0fd16 ] @{slice_ns_list} Logs the given messages as separate entries using the INFO level. 4ab9d0fc-472a-4fc3-9e88-a601f2290d26 618946a7-5875-45d6-b5ce-132d0daecbd1 b727bbdc-1600-4335-9c6c-7f86f3e0fd16 @{temp_list} Returns a list containing given items. @{temp_list} = [ ] ${ns_id} @{slice_ns_list} 4ab9d0fc-472a-4fc3-9e88-a601f2290d26 ${ns_id} Logs the given message with the given level. 4ab9d0fc-472a-4fc3-9e88-a601f2290d26 @{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 4ab9d0fc-472a-4fc3-9e88-a601f2290d26 | grep 4ab9d0fc-472a-4fc3-9e88-a601f2290d26 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | b489e3a2-0262-426a-a43e-b893781be349 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ b489e3a2-0262-426a-a43e-b893781be349 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: b489e3a2-0262-426a-a43e-b893781be349 @{vnf_list} @{vnf_id_list} = [ b489e3a2-0262-426a-a43e-b893781be349 ] @{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} b489e3a2-0262-426a-a43e-b893781be349 ${vnf_id} Logs the given message with the given level. b489e3a2-0262-426a-a43e-b893781be349 @{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=b489e3a2-0262-426a-a43e-b893781be349 | 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.191 ] ${vnf_ip_list_string}[1] Verifies that the given item is not empty. Length is 14 @{vnf_ip_list} ${vnf_ip_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_ip_list} = [ 172.21.249.191 ] ${vnf_ip_list} Logs the given messages as separate entries using the INFO level. ['172.21.249.191'] ${vnf_ip_list} Verifies that the given item is not empty. Length is 1 @{vnf_ip_list} @{vnf_ip_list} = [ 172.21.249.191 ] @{temp_list} ${temp_list} ${vnf_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.249.191 ] ${temp_list} Verifies that the given item is not empty. Length is 1 @{temp_list} @{ns_ip_list} = [ 172.21.249.191 ] @{temp_list} ${temp_list} ${ns_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.249.191 ] 618946a7-5875-45d6-b5ce-132d0daecbd1 ${ns_id} Logs the given message with the given level. 618946a7-5875-45d6-b5ce-132d0daecbd1 @{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 618946a7-5875-45d6-b5ce-132d0daecbd1 | grep 618946a7-5875-45d6-b5ce-132d0daecbd1 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 3cd5f848-6796-4d45-be5a-9aaab6d03491 ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 3cd5f848-6796-4d45-be5a-9aaab6d03491 ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 3cd5f848-6796-4d45-be5a-9aaab6d03491 @{vnf_list} @{vnf_id_list} = [ 3cd5f848-6796-4d45-be5a-9aaab6d03491 ] @{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} 3cd5f848-6796-4d45-be5a-9aaab6d03491 ${vnf_id} Logs the given message with the given level. 3cd5f848-6796-4d45-be5a-9aaab6d03491 @{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=3cd5f848-6796-4d45-be5a-9aaab6d03491 | 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.227 ] ${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.227 ] ${vnf_ip_list} Logs the given messages as separate entries using the INFO level. ['172.21.248.227'] ${vnf_ip_list} Verifies that the given item is not empty. Length is 1 @{vnf_ip_list} @{vnf_ip_list} = [ 172.21.248.227 ] @{temp_list} ${temp_list} ${vnf_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.248.227 ] ${temp_list} Verifies that the given item is not empty. Length is 1 @{temp_list} @{ns_ip_list} = [ 172.21.248.227 ] @{temp_list} ${temp_list} ${ns_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.249.191 | 172.21.248.227 ] b727bbdc-1600-4335-9c6c-7f86f3e0fd16 ${ns_id} Logs the given message with the given level. b727bbdc-1600-4335-9c6c-7f86f3e0fd16 @{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 b727bbdc-1600-4335-9c6c-7f86f3e0fd16 | grep b727bbdc-1600-4335-9c6c-7f86f3e0fd16 | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 693991cd-445f-451c-91cb-bfb44d39f56b ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 693991cd-445f-451c-91cb-bfb44d39f56b ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 693991cd-445f-451c-91cb-bfb44d39f56b @{vnf_list} @{vnf_id_list} = [ 693991cd-445f-451c-91cb-bfb44d39f56b ] @{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} 693991cd-445f-451c-91cb-bfb44d39f56b ${vnf_id} Logs the given message with the given level. 693991cd-445f-451c-91cb-bfb44d39f56b @{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=693991cd-445f-451c-91cb-bfb44d39f56b | 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.166 ] ${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.166 ] ${vnf_ip_list} Logs the given messages as separate entries using the INFO level. ['172.21.248.166'] ${vnf_ip_list} Verifies that the given item is not empty. Length is 1 @{vnf_ip_list} @{vnf_ip_list} = [ 172.21.248.166 ] @{temp_list} ${temp_list} ${vnf_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.248.166 ] ${temp_list} Verifies that the given item is not empty. Length is 1 @{temp_list} @{ns_ip_list} = [ 172.21.248.166 ] @{temp_list} ${temp_list} ${ns_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.249.191 | 172.21.248.227 | 172.21.248.166 ] ${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.191 1: 172.21.248.227 2: 172.21.248.166 @{temp_list} @{ip_list} = [ 172.21.249.191 | 172.21.248.227 | 172.21.248.166 ] ${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.191', '172.21.248.227', '172.21.248.166'] 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.227 2>&1'. ${rc} = 0 ${stdout} = PING 172.21.248.227 (172.21.248.227) 56(84) bytes of data. 64 bytes from 172.21.248.227: icmp_seq=1 ttl=63 time=2.72 ms 64 bytes from 172.21.248.227: icmp_seq=2 ttl=63 time=0.742 ms --- 172.21.248.22... ${stdout} Logs the given message with the given level. PING 172.21.248.227 (172.21.248.227) 56(84) bytes of data. 64 bytes from 172.21.248.227: icmp_seq=1 ttl=63 time=2.72 ms 64 bytes from 172.21.248.227: icmp_seq=2 ttl=63 time=0.742 ms --- 172.21.248.227 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1002ms rtt min/avg/max/mdev = 0.742/1.731/2.720/0.989 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.227: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 Wed Apr 3 04:11:00 UTC 2024 System load: 0.01 Users logged in: 0 Usage of /: 11.5% of 9.52GB IP address for ens3: 172.21.248.227 Memory usage: 12% IP address for ens4: 192.168.110.218 Swap usage: 0% IP address for ens5: 192.168.48.77 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.227: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 Wed Apr 3 04:11:02 UTC 2024 System load: 0.01 Users logged in: 0 Usage of /: 11.8% of 9.52GB IP address for ens3: 172.21.248.227 Memory usage: 12% IP address for ens4: 192.168.110.218 Swap usage: 0% IP address for ens5: 192.168.48.77 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: Wed Apr 3 04:11:01 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.191 ${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.191 > /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.227 ${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.227 > /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.166 ${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.166 > /dev/null && echo OK'. Command exited with return code 0. ${result} = OK ${result} Logs the given message with the given level. OK ${result} OK Fails if ``container`` does not contain ``item`` one or more times. Closes all open connections. SSH access to the slice middle vnf (mgmt_vnf_ip) with the credentials provided in the variables file and pings all the IP addresses in the list (slice1_vnfs_ips) cluster_slices daily regression slice_02 ${SLICE_NAME} Delete Network Slice Instance (NSI) Parameters: slice_name: Name of the slice instance slice_delete_max_wait_time: Delete operation timeout Execution example: Delete NST ${slice_name} ${rc} ${stdout} osm nsi-delete ${slice_name} Runs the given command in the system and returns the RC and output. Running command 'osm nsi-delete slicebasic 2>&1'. ${rc} = 0 ${stdout} = Deletion in progress ${stdout} Logs the given message with the given level. Deletion in progress ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${slice_delete_max_wait_time} ${slice_delete_max_wait_time} result_format=number Converts between supported `time formats`. ${slice_delete_max_wait_time} = 240.0 ${slice_delete_max_wait_time} ${slice_delete_max_wait_time} * ${VIM_TIMEOUT_MULTIPLIER} Evaluates the given expression in Python and returns the result. ${slice_delete_max_wait_time} = 240.0 ${slice_delete_max_wait_time} ${SLICE_DELETE_POL_TIME} Check For Network Slice Instance To Be Deleted ${slice_name} Runs the specified keyword and retries if it fails. ${slice_name} Verify the slice instance is not present Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance ${slice_name} ${rc} ${stdout} osm nsi-list | awk '{print $2}' | grep ${slice_name} Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list | awk '{print $2}' | grep slicebasic 2>&1'. ${rc} = 0 ${stdout} = slicebasic ${rc},${stdout} Logs the given message with the given level. 0,slicebasic ${stdout} ${slice_name} Fails if objects are equal after converting them to strings. slicebasic == slicebasic ${slice_name} Verify the slice instance is not present Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance ${slice_name} ${rc} ${stdout} osm nsi-list | awk '{print $2}' | grep ${slice_name} Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list | awk '{print $2}' | grep slicebasic 2>&1'. ${rc} = 0 ${stdout} = slicebasic ${rc},${stdout} Logs the given message with the given level. 0,slicebasic ${stdout} ${slice_name} Fails if objects are equal after converting them to strings. slicebasic == slicebasic ${slice_name} Verify the slice instance is not present Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance ${slice_name} ${rc} ${stdout} osm nsi-list | awk '{print $2}' | grep ${slice_name} Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list | awk '{print $2}' | grep slicebasic 2>&1'. ${rc} = 0 ${stdout} = slicebasic ${rc},${stdout} Logs the given message with the given level. 0,slicebasic ${stdout} ${slice_name} Fails if objects are equal after converting them to strings. slicebasic == slicebasic ${slice_name} Verify the slice instance is not present Parameters: slice_name: Name of the slice instance Execution example: Check For Network Slice Instance ${slice_name} ${rc} ${stdout} osm nsi-list | awk '{print $2}' | grep ${slice_name} Runs the given command in the system and returns the RC and output. Running command 'osm nsi-list | awk '{print $2}' | grep slicebasic 2>&1'. ${rc} = 1 ${stdout} = ${rc},${stdout} Logs the given message with the given level. 1, ${stdout} ${slice_name} Fails if objects are equal after converting them to strings. Stops the slice instance (slice_name) cleanup cluster_slices daily regression slice_02 ${slice1_count} ${SLICE_NAME} Returns the count of all the NS in a slice Parameters: slice_name: Name of the slice instance Execution example: ${slice_ns_count}= Get Slice Ns Count ${slice_name} ${slice_name} Verifies that the given item is not empty. Length is 10 ${rc} ${stdout} osm ns-list | grep ${slice_name} | wc -l 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | grep slicebasic | wc -l 2>&1'. ${rc} = 0 ${stdout} = 1 ${stdout} Logs the given message with the given level. 1 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${slice1_count} = 1 ${slice2_count} ${SLICE2_NAME} Returns the count of all the NS in a slice Parameters: slice_name: Name of the slice instance Execution example: ${slice_ns_count}= Get Slice Ns Count ${slice_name} ${slice_name} Verifies that the given item is not empty. Length is 11 ${rc} ${stdout} osm ns-list | grep ${slice_name} | wc -l 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | grep sliceshared | wc -l 2>&1'. ${rc} = 0 ${stdout} = 1 ${stdout} Logs the given message with the given level. 1 ${rc} ${SUCCESS_RETURN_CODE} Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> ${stdout} ${slice2_count} = 1 ${together} ${slice1_count} + ${slice2_count} Evaluates the given expression in Python and returns the result. ${together} = 2 ${together} 2 Fails if objects are unequal after converting them to integers. Argument types are: <class 'int'> <class 'str'> Counts the NS in both slice instances and should be equal to 2 cluster_slices daily regression slice_02 @{ip_list} ${SLICE2_NAME} Retrieves the list of IP addresses that belong to each of the VNFs in the slice Parameters: slice_name: Name of the slice instance Execution example: @{slice_ip_address_list}= Get Slice Vnf Ip Addresses ${slice_name} @{slice_ns_list} ${slice_name} Retrieves the list of NS in a slice Parameters: slice_name: Name of the slice instance Execution example: @{slice_ns_list}= Get Slice Ns List ${slice_name} ${slice_name} Verifies that the given item is not empty. Length is 11 @{ns_list_string} osm ns-list | grep ${slice_name} | awk '{print $4}' 2>&1 Runs the given command in the system and returns the RC and output. Running command 'osm ns-list | grep sliceshared | awk '{print $4}' 2>&1'. @{ns_list_string} = [ 0 | d908b9a5-738f-47f4-85ee-f083fe90739e ] @{ns_list} ${ns_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{ns_list} = [ d908b9a5-738f-47f4-85ee-f083fe90739e ] ${ns_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: d908b9a5-738f-47f4-85ee-f083fe90739e @{ns_list} @{slice_ns_list} = [ d908b9a5-738f-47f4-85ee-f083fe90739e ] @{slice_ns_list} Logs the given messages as separate entries using the INFO level. d908b9a5-738f-47f4-85ee-f083fe90739e @{temp_list} Returns a list containing given items. @{temp_list} = [ ] ${ns_id} @{slice_ns_list} d908b9a5-738f-47f4-85ee-f083fe90739e ${ns_id} Logs the given message with the given level. d908b9a5-738f-47f4-85ee-f083fe90739e @{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 d908b9a5-738f-47f4-85ee-f083fe90739e | grep d908b9a5-738f-47f4-85ee-f083fe90739e | awk '{print $2}' 2>&1'. @{vnf_list_string} = [ 0 | 4779a6ca-087b-446a-88a2-2549621fcbca ] @{vnf_list} ${vnf_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_list} = [ 4779a6ca-087b-446a-88a2-2549621fcbca ] ${vnf_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 4779a6ca-087b-446a-88a2-2549621fcbca @{vnf_list} @{vnf_id_list} = [ 4779a6ca-087b-446a-88a2-2549621fcbca ] @{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} 4779a6ca-087b-446a-88a2-2549621fcbca ${vnf_id} Logs the given message with the given level. 4779a6ca-087b-446a-88a2-2549621fcbca @{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=4779a6ca-087b-446a-88a2-2549621fcbca | 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.4 ] ${vnf_ip_list_string}[1] Verifies that the given item is not empty. Length is 12 @{vnf_ip_list} ${vnf_ip_list_string}[1] Splits the ``string`` using ``separator`` as a delimiter string. @{vnf_ip_list} = [ 172.21.248.4 ] ${vnf_ip_list} Logs the given messages as separate entries using the INFO level. ['172.21.248.4'] ${vnf_ip_list} Verifies that the given item is not empty. Length is 1 @{vnf_ip_list} @{vnf_ip_list} = [ 172.21.248.4 ] @{temp_list} ${temp_list} ${vnf_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.248.4 ] ${temp_list} Verifies that the given item is not empty. Length is 1 @{temp_list} @{ns_ip_list} = [ 172.21.248.4 ] @{temp_list} ${temp_list} ${ns_ip_list} Combines the given ``lists`` together and returns the result. @{temp_list} = [ 172.21.248.4 ] ${temp_list} Logs the length and contents of the ``list`` using given ``level``. List has one item: 172.21.248.4 @{temp_list} @{ip_list} = [ 172.21.248.4 ] ${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.4'] 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.227: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 Wed Apr 3 04:12:13 UTC 2024 System load: 0.0 Users logged in: 0 Usage of /: 11.8% of 9.52GB IP address for ens3: 172.21.248.227 Memory usage: 12% IP address for ens4: 192.168.110.218 Swap usage: 0% IP address for ens5: 192.168.48.77 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: Wed Apr 3 04:11: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.248.4 ${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.4 > /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 | +------------------+--------------------------------------+-----------+ | openldap_knf | 78f32878-8c8c-4d20-bcb0-c1c685d6d910 | sol006 | | two_helm_oci_knf | f151e649-6c3e-4979-8263-4c6ca952f3a3 | 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'> ${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 1ba32615-9b54-4f42-ba48-6999fc8c9529 ${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} = 1ba32615-9b54-4f42-ba48-6999fc8c9529 ${id} ${id} = 1ba32615-9b54-4f42-ba48-6999fc8c9529 ${id} Logs the given message with the given level. 1ba32615-9b54-4f42-ba48-6999fc8c9529 ${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} = 7a8df917-c55f-4ae7-a49d-b123d795de17 ${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} = 7a8df917-c55f-4ae7-a49d-b123d795de17 ${CREATED_VIM_ACCOUNT_ID} Makes a variable available everywhere within the scope of the current suite. ${CREATED_VIM_ACCOUNT_ID} = 7a8df917-c55f-4ae7-a49d-b123d795de17 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.136 ${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.136' 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.136: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.136: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.136: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.136:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:13:33 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/Q7oHB2ORuNXhNYEL8mGqDsp2rpiLMLfJ', 'Content-Length': '653', 'Set-Cookie': 'session_id=c4076496bc38d6330a16d01ebaae7b88da7d281a; expires=Wed, 03 Apr 2024 05:13:33 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1712117613.657314, "expires": 1712121213.657314, "_id": "Q7oHB2ORuNXhNYEL8mGqDsp2rpiLMLfJ", "id": "Q7oHB2ORuNXhNYEL8mGqDsp2rpiLMLfJ", "project_id": "906e76e1-3d4d-405e-9aef-801e4573a3ab", "project_name": "admin", "username": "admin", "user_id": "28afb60f-eaac-4d9e-bd83-f9227dcf3eda", "admin": true, "roles": [ { "name": "system_admin", "id": "15a84db6-68cf-4649-b63d-db1bf30e5d57" } ], "login_count": 0, "last_login": 1712117613.4916933, "admin_show": true, "user_show": false, "remote_port": 7791, "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} = ['Q7oHB2ORuNXhNYEL8mGqDsp2rpiLMLfJ', '15a84db6-68cf-4649-b63d-db1bf30e5d57'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = Q7oHB2ORuNXhNYEL8mGqDsp2rpiLMLfJ ${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': '7a8df917-c55f-4ae7-a49d-b123d795de17', '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': '7a8df917-c55f-4ae7-a49d-b123d795de17', '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': '7a8df917-c55f-4ae7-a49d-b123d795de17', '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': '7a8df917-c55f-4ae7-a49d-b123d795de17', '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': '7a8df917-c55f-4ae7-a49d-b123d795de17', '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': '7a8df917-c55f-4ae7-a49d-b123d795de17', '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': '7a8df917-c55f-4ae7-a49d-b123d795de17', '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.136: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 Q7oHB2ORuNXhNYEL8mGqDsp2rpiLMLfJ } ${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.136: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 Q7oHB2ORuNXhNYEL8mGqDsp2rpiLMLfJ', 'Content-Length': '355'} body=b'{"vnfdId": "hackfest_basic_metrics-vnf", "vnfInstanceName": "sol003-instance", "vnfInstanceDescription": "Test vnfm instance description", "vimAccountId": "7a8df917-c55f-4ae7-a49d-b123d795de17", "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.136:9999/osm/vnflcm/v1/vnf_instances status=201, reason=Created headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:13:36 GMT', 'Location': '/osm/vnflcm/v1/vnf_instances/e16a9fdd-57c2-48d8-96ed-4c303c47118d', 'Content-Length': '53', 'Set-Cookie': 'session_id=b62526ffb6e1d67dd21085e2faa4fcdd609de9a9; expires=Wed, 03 Apr 2024 05:13:36 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "id": "e16a9fdd-57c2-48d8-96ed-4c303c47118d" } ${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} = ['e16a9fdd-57c2-48d8-96ed-4c303c47118d'] ${CREATEID} ${id[0]} Makes a variable available everywhere within the scope of the current suite. ${CREATEID} = e16a9fdd-57c2-48d8-96ed-4c303c47118d 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 | +----------------------------+--------------------------------------+-----------+ | openldap_knf | 78f32878-8c8c-4d20-bcb0-c1c685d6d910 | sol006 | | two_helm_oci_knf | f151e649-6c3e-4979-8263-4c6ca952f3a3 | sol006 | | hackfest_basic_metrics-vnf | 1ba32615-9b54-4f42-ba48-6999fc8c9529 | 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 | +--------------------+--------------------------------------+---------------------+------------------+-------------------+------------------------------------------+ | ldap | 636ca116-69ed-45c9-b91e-96c7e441a1d8 | 2024-04-03T02:54:28 | BROKEN | IDLE (None) | Operation: TERMINATING.7817ea25-2280- | | | | | | | 4088-87b9-f9741dea1f23, Stage 3/3 delete | | | | | | | all.. | | | | | | | Detail: Terminating KDU 'ldap': Error: | | | | | | | Kubernetes cluster unreachable: the | | | | | | | server has asked for the client to | | | | | | | provide credentials | | ldap | 88947844-0671-4026-8e01-f945ec62a776 | 2024-04-03T03:06:48 | BROKEN | IDLE (None) | Operation: INSTANTIATING.666e2969-29a2- | | | | | | | 4170-8734-e9c3cf200e3f, Stage 2/5: | | | | | | | deployment of KDUs, VMs and execution | | | | | | | environments. | | | | | | | Detail: Deploying KDU ldap: E0403 | | | | | | | 03:06:50.037863 242 memcache.go:265] | | | | | | | couldn't get current server API group | | | | | | | list: the server has asked for the | | | | | | | client to provide credentials | | | | | | | E0403 03:06:50.041464 242 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:06:50.043321 242 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:06:50.044859 242 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:06:50.046039 242 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | error: You must be logged in to the | | | | | | | server (the server has asked for the | | | | | | | client to provide credentials) | | ldap | 8c816366-0e1a-4dd7-91b6-bf26c59c1d94 | 2024-04-03T03:13:46 | BROKEN | IDLE (None) | Operation: INSTANTIATING.92d4c589-a8ea- | | | | | | | 42ec-92f3-ec413aaf86b7, Stage 2/5: | | | | | | | deployment of KDUs, VMs and execution | | | | | | | environments. | | | | | | | Detail: Deploying KDU haproxy: E0403 | | | | | | | 03:13:49.347147 275 memcache.go:265] | | | | | | | couldn't get current server API group | | | | | | | list: the server has asked for the | | | | | | | client to provide credentials | | | | | | | E0403 03:13:49.357255 275 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:13:49.359972 275 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:13:49.362433 275 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:13:49.364567 275 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | error: You must be logged in to the | | | | | | | server (the server has asked for the | | | | | | | client to provide credentials). | | | | | | | Deploying KDU ldap: E0403 | | | | | | | 03:13:49.517079 282 memcache.go:265] | | | | | | | couldn't get current server API group | | | | | | | list: the server has asked for the | | | | | | | client to provide credentials | | | | | | | E0403 03:13:49.519123 282 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:13:49.523318 282 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:13:49.526729 282 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:13:49.528909 282 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | error: You must be logged in to the | | | | | | | server (the server has asked for the | | | | | | | client to provide credentials) | | sol003-instance-ns | 0f5dc377-1eee-4aee-ab5e-5a80b710e1e3 | 2024-04-03T04:13:37 | 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 | +--------------------------------------+------+--------------------------------------+------------------+----------------------------+--------------------------------------+------------+ | 4ed1f42d-bbbd-4a71-905d-aa08bd877a38 | - | 636ca116-69ed-45c9-b91e-96c7e441a1d8 | openldap | openldap_knf | 7a8df917-c55f-4ae7-a49d-b123d795de17 | None | | d12f3a88-58d5-4b70-9457-9afec727e653 | - | 88947844-0671-4026-8e01-f945ec62a776 | openldap | openldap_knf | ba54a551-ceae-4c1d-94f4-7c80daa8a7f0 | None | | 30036867-fbb6-48c0-92af-fa5155ebf9aa | - | 8c816366-0e1a-4dd7-91b6-bf26c59c1d94 | two_helm_oci | two_helm_oci_knf | 7a8df917-c55f-4ae7-a49d-b123d795de17 | None | | e16a9fdd-57c2-48d8-96ed-4c303c47118d | - | 0f5dc377-1eee-4aee-ab5e-5a80b710e1e3 | 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.136 ${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.136' 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.136: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.136: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.136: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.136:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:13:41 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/oq8tjyxMwhqfVdtar7SIaDgYVlUPAuFq', 'Content-Length': '655', 'Set-Cookie': 'session_id=e36a6ecc9accb74e21da6a82b88ad7d3c3e00667; expires=Wed, 03 Apr 2024 05:13:41 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1712117621.0948257, "expires": 1712121221.0948257, "_id": "oq8tjyxMwhqfVdtar7SIaDgYVlUPAuFq", "id": "oq8tjyxMwhqfVdtar7SIaDgYVlUPAuFq", "project_id": "906e76e1-3d4d-405e-9aef-801e4573a3ab", "project_name": "admin", "username": "admin", "user_id": "28afb60f-eaac-4d9e-bd83-f9227dcf3eda", "admin": true, "roles": [ { "name": "system_admin", "id": "15a84db6-68cf-4649-b63d-db1bf30e5d57" } ], "login_count": 0, "last_login": 1712117619.927978, "admin_show": true, "user_show": false, "remote_port": 20827, "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} = ['oq8tjyxMwhqfVdtar7SIaDgYVlUPAuFq', '15a84db6-68cf-4649-b63d-db1bf30e5d57'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = oq8tjyxMwhqfVdtar7SIaDgYVlUPAuFq ${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': '7a8df917-c55f-4ae7-a49d-b123d795de17'} ${UPDATED_JSON_OBJ} ${UPDATED_JSON_OBJ} $..vnfId ${CREATEID} Update value to JSON using JSONPath ${UPDATED_JSON_OBJ} = {'vnfName': 'sol003-instance', 'vnfDescription': 'vnf package', 'vnfId': 'e16a9fdd-57c2-48d8-96ed-4c303c47118d', 'vimAccountId': '7a8df917-c55f-4ae7-a49d-b123d795de17'} ${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': 'e16a9fdd-57c2-48d8-96ed-4c303c47118d', 'vimAccountId': '7a8df917-c55f-4ae7-a49d-b123d795de17'} ${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.136: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 oq8tjyxMwhqfVdtar7SIaDgYVlUPAuFq } ${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.136:9999/osm/vnflcm/v1/vnf_instances/e16a9fdd-57c2-48d8-96ed-4c303c47118d/instantiate path_url=/osm/vnflcm/v1/vnf_instances/e16a9fdd-57c2-48d8-96ed-4c303c47118d/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 oq8tjyxMwhqfVdtar7SIaDgYVlUPAuFq', 'Content-Length': '168'} body=b'{"vnfName": "sol003-instance", "vnfDescription": "vnf package", "vnfId": "e16a9fdd-57c2-48d8-96ed-4c303c47118d", "vimAccountId": "7a8df917-c55f-4ae7-a49d-b123d795de17"}' POST Response : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_instances/e16a9fdd-57c2-48d8-96ed-4c303c47118d/instantiate status=202, reason=Accepted headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:13:44 GMT', 'Location': '/osm/vnflcm/v1/vnf_lcm_op_occs/516a863f-ab2a-4b7f-b8e7-8441198f343d', 'Content-Length': '53', 'Set-Cookie': 'session_id=d4854a8239b833497ae392b00500c8fe4ec55f5b; expires=Wed, 03 Apr 2024 05:13:44 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "id": "516a863f-ab2a-4b7f-b8e7-8441198f343d" } ${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} = ['516a863f-ab2a-4b7f-b8e7-8441198f343d'] ${INSTANTIATEID} ${id[0]} Makes a variable available everywhere within the scope of the current suite. ${INSTANTIATEID} = 516a863f-ab2a-4b7f-b8e7-8441198f343d 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 in... ${stdout} Logs the given message with the given level. +--------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+------------------------------------------+ | ns instance name | id | date | ns state | current operation | error details | +--------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+------------------------------------------+ | ldap | 636ca116-69ed-45c9-b91e-96c7e441a1d8 | 2024-04-03T02:54:28 | BROKEN | IDLE (None) | Operation: TERMINATING.7817ea25-2280- | | | | | | | 4088-87b9-f9741dea1f23, Stage 3/3 delete | | | | | | | all.. | | | | | | | Detail: Terminating KDU 'ldap': Error: | | | | | | | Kubernetes cluster unreachable: the | | | | | | | server has asked for the client to | | | | | | | provide credentials | | ldap | 88947844-0671-4026-8e01-f945ec62a776 | 2024-04-03T03:06:48 | BROKEN | IDLE (None) | Operation: INSTANTIATING.666e2969-29a2- | | | | | | | 4170-8734-e9c3cf200e3f, Stage 2/5: | | | | | | | deployment of KDUs, VMs and execution | | | | | | | environments. | | | | | | | Detail: Deploying KDU ldap: E0403 | | | | | | | 03:06:50.037863 242 memcache.go:265] | | | | | | | couldn't get current server API group | | | | | | | list: the server has asked for the | | | | | | | client to provide credentials | | | | | | | E0403 03:06:50.041464 242 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:06:50.043321 242 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:06:50.044859 242 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:06:50.046039 242 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | error: You must be logged in to the | | | | | | | server (the server has asked for the | | | | | | | client to provide credentials) | | ldap | 8c816366-0e1a-4dd7-91b6-bf26c59c1d94 | 2024-04-03T03:13:46 | BROKEN | IDLE (None) | Operation: INSTANTIATING.92d4c589-a8ea- | | | | | | | 42ec-92f3-ec413aaf86b7, Stage 2/5: | | | | | | | deployment of KDUs, VMs and execution | | | | | | | environments. | | | | | | | Detail: Deploying KDU haproxy: E0403 | | | | | | | 03:13:49.347147 275 memcache.go:265] | | | | | | | couldn't get current server API group | | | | | | | list: the server has asked for the | | | | | | | client to provide credentials | | | | | | | E0403 03:13:49.357255 275 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:13:49.359972 275 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:13:49.362433 275 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:13:49.364567 275 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | error: You must be logged in to the | | | | | | | server (the server has asked for the | | | | | | | client to provide credentials). | | | | | | | Deploying KDU ldap: E0403 | | | | | | | 03:13:49.517079 282 memcache.go:265] | | | | | | | couldn't get current server API group | | | | | | | list: the server has asked for the | | | | | | | client to provide credentials | | | | | | | E0403 03:13:49.519123 282 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:13:49.523318 282 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:13:49.526729 282 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:13:49.528909 282 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | error: You must be logged in to the | | | | | | | server (the server has asked for the | | | | | | | client to provide credentials) | | sol003-instance-ns | 0f5dc377-1eee-4aee-ab5e-5a80b710e1e3 | 2024-04-03T04:13:37 | BUILDING | INSTANTIATING (516a863f-ab2a-4b7f-b8e7-8441198f343d) | N/A | +--------------------+--------------------------------------+---------------------+----------+------------------------------------------------------+------------------------------------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show 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 | +--------------------------------------+------+--------------------------------------+------------------+----------------------------+--------------------------------------+------------+ | 4ed1f42d-bbbd-4a71-905d-aa08bd877a38 | - | 636ca116-69ed-45c9-b91e-96c7e441a1d8 | openldap | openldap_knf | 7a8df917-c55f-4ae7-a49d-b123d795de17 | None | | d12f3a88-58d5-4b70-9457-9afec727e653 | - | 88947844-0671-4026-8e01-f945ec62a776 | openldap | openldap_knf | ba54a551-ceae-4c1d-94f4-7c80daa8a7f0 | None | | 30036867-fbb6-48c0-92af-fa5155ebf9aa | - | 8c816366-0e1a-4dd7-91b6-bf26c59c1d94 | two_helm_oci | two_helm_oci_knf | 7a8df917-c55f-4ae7-a49d-b123d795de17 | None | | e16a9fdd-57c2-48d8-96ed-4c303c47118d | - | 0f5dc377-1eee-4aee-ab5e-5a80b710e1e3 | 1 | hackfest_basic_metrics-vnf | 7a8df917-c55f-4ae7-a49d-b123d795de17 | 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.136 ${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.136' 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.136: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.136: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.136: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.136:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:13:58 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/VYaM6LkryVz7de3JMfmdT7Zuapy5gl0j', 'Content-Length': '656', 'Set-Cookie': 'session_id=1cf88ae851f0eadf706d0142b108eecefd2da458; expires=Wed, 03 Apr 2024 05:13:58 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1712117638.6414506, "expires": 1712121238.6414506, "_id": "VYaM6LkryVz7de3JMfmdT7Zuapy5gl0j", "id": "VYaM6LkryVz7de3JMfmdT7Zuapy5gl0j", "project_id": "906e76e1-3d4d-405e-9aef-801e4573a3ab", "project_name": "admin", "username": "admin", "user_id": "28afb60f-eaac-4d9e-bd83-f9227dcf3eda", "admin": true, "roles": [ { "name": "system_admin", "id": "15a84db6-68cf-4649-b63d-db1bf30e5d57" } ], "login_count": 0, "last_login": 1712117637.4710248, "admin_show": true, "user_show": false, "remote_port": 61823, "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} = ['VYaM6LkryVz7de3JMfmdT7Zuapy5gl0j', '15a84db6-68cf-4649-b63d-db1bf30e5d57'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = VYaM6LkryVz7de3JMfmdT7Zuapy5gl0j ${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.136: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 VYaM6LkryVz7de3JMfmdT7Zuapy5gl0j } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136: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 VYaM6LkryVz7de3JMfmdT7Zuapy5gl0j'} body=None GET Response : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_instances status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:14:01 GMT', 'Content-Length': '10935', 'Set-Cookie': 'session_id=059d689ba7c6618b14fae27c82126454d33e0b3a; expires=Wed, 03 Apr 2024 05:14:01 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body=[ { "_id": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38", "id": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38", "nsr-id-ref": "636ca116-69ed-45c9-b91e-96c7e441a1d8", "member-vnf-index-ref": "openldap", "additionalParamsForVnf": null, "created-time": 1712112868.8092787, "vnfd-ref": "openldap_knf", "vnfd-id": "78f32878-8c8c-4d20-bcb0-c1c685d6d910", "vim-account-id": "7a8df917-c55f-4ae7-a49d-b123d795de17", "vca-id": null, "vdur": [], "connection-point": [ { "name": "mgmt-ext", "connection-point-id": null, "connection-point-vdu-id": null, "id": "mgmt-ext" } ], "ip-address": null, "revision": 1, "k8s-cluster": { "nets": [ { "id": "mgmtnet", "external-connection-point-ref": "mgmt-ext", "vim_net": "osm-ext" } ] }, "kdur": [ { "additionalParams": "{\"service\": \"!!yaml type: LoadBalancer\\n\", \"adminPassword\": \"admin\"}", "k8s-namespace": "906e76e1-3d4d-405e-9aef-801e4573a3ab", "kdu-deployment-name": "", "kdu-name": "ldap", "ip-address": null, "k8s-cluster": { "id": "0a42057f-d5af-403e-bc59-12923ff4092d" }, "helm-chart": "stable/openldap", "status": "ERROR" } ], "_admin": { "created": 1712112868.8096075, "modified": 1712112869.870676, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "nsState": "INSTANTIATED" } }, { "_id": "d12f3a88-58d5-4b70-9457-9afec727e653", "id": "d12f3a88-58d5-4b70-9457-9afec727e653", "nsr-id-ref": "88947844-0671-4026-8e01-f945ec62a776", "member-vnf-index-ref": "openldap", "additionalParamsForVnf": null, "created-time": 1712113608.9436255, "vnfd-ref": "openldap_knf", "vnfd-id": "78f32878-8c8c-4d20-bcb0-c1c685d6d910", "vim-account-id": "ba54a551-ceae-4c1d-94f4-7c80daa8a7f0", "vca-id": null, "vdur": [], "connection-point": [ { "name": "mgmt-ext", "connection-point-id": null, "connection-point-vdu-id": null, "id": "mgmt-ext" } ], "ip-address": null, "revision": 1, "k8s-cluster": { "nets": [ { "id": "mgmtnet", "external-connection-point-ref": "mgmt-ext", "vim_net": "null" } ] }, "kdur": [ { "additionalParams": null, "k8s-namespace": "906e76e1-3d4d-405e-9aef-801e4573a3ab", "kdu-deployment-name": "", "kdu-name": "ldap", "ip-address": null, "k8s-cluster": { "id": "e8f67ec7-c9fc-4c43-b38f-2f625239df03" }, "helm-chart": "stable/openldap", "status": "ERROR" } ], "_admin": { "created": 1712113608.9436834, "modified": 1712113610.0636208, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "nsState": "INSTANTIATED" } }, { "_id": "30036867-fbb6-48c0-92af-fa5155ebf9aa", "id": "30036867-fbb6-48c0-92af-fa5155ebf9aa", "nsr-id-ref": "8c816366-0e1a-4dd7-91b6-bf26c59c1d94", "member-vnf-index-ref": "two_helm_oci", "additionalParamsForVnf": null, "created-time": 1712114026.8790436, "vnfd-ref": "two_helm_oci_knf", "vnfd-id": "f151e649-6c3e-4979-8263-4c6ca952f3a3", "vim-account-id": "7a8df917-c55f-4ae7-a49d-b123d795de17", "vca-id": null, "vdur": [], "connection-point": [ { "name": "mgmt-ext", "connection-point-id": null, "connection-point-vdu-id": null, "id": "mgmt-ext" } ], "ip-address": null, "revision": 1, "k8s-cluster": { "nets": [ { "id": "mgmtnet", "external-connection-point-ref": "mgmt-ext", "vim_net": "osm-ext" } ] }, "kdur": [ { "additionalParams": "{\"service\": \"!!yaml type: LoadBalancer\\n\", \"adminPassword\": \"admin\"}", "k8s-namespace": "906e76e1-3d4d-405e-9aef-801e4573a3ab", "kdu-deployment-name": "", "kdu-name": "haproxy", "ip-address": null, "k8s-cluster": { "id": "0a42057f-d5af-403e-bc59-12923ff4092d" }, "helm-chart": "oci://registry-1.docker.io/bitnamicharts/haproxy", "status": "ERROR" }, { "additionalParams": "{\"service\": \"!!yaml type: LoadBalancer\\n\", \"adminPassword\": \"admin\"}", "k8s-namespace": "906e76e1-3d4d-405e-9aef-801e4573a3ab", "kdu-deployment-name": "", "kdu-name": "ldap", "ip-address": null, "k8s-cluster": { "id": "0a42057f-d5af-403e-bc59-12923ff4092d" }, "helm-chart": "osm-gitlab/openldap", "status": "ERROR" } ], "_admin": { "created": 1712114026.8795996, "modified": 1712114029.5634236, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "nsState": "INSTANTIATED" } }, { "_id": "e16a9fdd-57c2-48d8-96ed-4c303c47118d", "id": "e16a9fdd-57c2-48d8-96ed-4c303c47118d", "nsr-id-ref": "0f5dc377-1eee-4aee-ab5e-5a80b710e1e3", "member-vnf-index-ref": "1", "additionalParamsForVnf": null, "created-time": 1712117617.1241026, "vnfd-ref": "hackfest_basic_metrics-vnf", "vnfd-id": "1ba32615-9b54-4f42-ba48-6999fc8c9529", "vim-account-id": "7a8df917-c55f-4ae7-a49d-b123d795de17", "vca-id": null, "vdur": [ { "_id": "26c1bc59-3cb4-46a2-8e3b-1fd7cce6069e", "additionalParams": { "OSM": { "count_index": 0, "member_vnf_index": "1", "ns_id": "0f5dc377-1eee-4aee-ab5e-5a80b710e1e3", "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": "7a8df917-c55f-4ae7-a49d-b123d795de17", "vnf_id": "e16a9fdd-57c2-48d8-96ed-4c303c47118d", "vnfd_id": "1ba32615-9b54-4f42-ba48-6999fc8c9529", "vnfd_ref": "hackfest_basic_metrics-vnf" } }, "affinity-or-anti-affinity-group-id": [], "alt-image-ids": [ "1", "2", "3" ], "cloud-init": "1ba32615-9b54-4f42-ba48-6999fc8c9529:file:cloud-config", "count-index": 0, "id": "26c1bc59-3cb4-46a2-8e3b-1fd7cce6069e", "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:7a8df917-c55f-4ae7-a49d-b123d795de17": { "interfaces": [], "interfaces_backup": [], "vim_details": null, "vim_id": "f66a3ba1-a127-464c-8584-291b14a1e797", "vim_message": null, "vim_status": "BUILD" } }, "virtual-storages": [ { "id": "hac... (set the log level to DEBUG or TRACE to see the full content) ${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', 'INSTANTIATED', 'INSTANTIATED', '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} = ['4ed1f42d-bbbd-4a71-905d-aa08bd877a38', 'd12f3a88-58d5-4b70-9457-9afec727e653', '30036867-fbb6-48c0-92af-fa5155ebf9aa', 'e16a9fdd-57c2-48d8-96ed-4c303c47118d', '26c1bc59-3cb4-46a2-8e3b-1fd7cce6069e'] ${QUERYID} ${id[0]} Makes a variable available everywhere within the scope of the current suite. ${QUERYID} = 4ed1f42d-bbbd-4a71-905d-aa08bd877a38 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.136 ${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.136' 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.136: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.136: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.136: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.136:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:14:01 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/bhwZSo3TYvX5G6sMklMnT8VAKm0rAYGo', 'Content-Length': '656', 'Set-Cookie': 'session_id=c7136bcebcae680f05c22ed8ec968b8e84d16285; expires=Wed, 03 Apr 2024 05:14:01 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1712117641.8526905, "expires": 1712121241.8526905, "_id": "bhwZSo3TYvX5G6sMklMnT8VAKm0rAYGo", "id": "bhwZSo3TYvX5G6sMklMnT8VAKm0rAYGo", "project_id": "906e76e1-3d4d-405e-9aef-801e4573a3ab", "project_name": "admin", "username": "admin", "user_id": "28afb60f-eaac-4d9e-bd83-f9227dcf3eda", "admin": true, "roles": [ { "name": "system_admin", "id": "15a84db6-68cf-4649-b63d-db1bf30e5d57" } ], "login_count": 0, "last_login": 1712117638.6414506, "admin_show": true, "user_show": false, "remote_port": 25307, "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} = ['bhwZSo3TYvX5G6sMklMnT8VAKm0rAYGo', '15a84db6-68cf-4649-b63d-db1bf30e5d57'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = bhwZSo3TYvX5G6sMklMnT8VAKm0rAYGo ${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.136: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 bhwZSo3TYvX5G6sMklMnT8VAKm0rAYGo } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38 path_url=/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer bhwZSo3TYvX5G6sMklMnT8VAKm0rAYGo'} body=None GET Response : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:14:04 GMT', 'Content-Length': '1741', 'Set-Cookie': 'session_id=4bfe58fadae5b4da032cc2b9fde14aaf7caead46; expires=Wed, 03 Apr 2024 05:14:04 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38", "id": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38", "nsr-id-ref": "636ca116-69ed-45c9-b91e-96c7e441a1d8", "member-vnf-index-ref": "openldap", "additionalParamsForVnf": null, "created-time": 1712112868.8092787, "vnfd-ref": "openldap_knf", "vnfd-id": "78f32878-8c8c-4d20-bcb0-c1c685d6d910", "vim-account-id": "7a8df917-c55f-4ae7-a49d-b123d795de17", "vca-id": null, "vdur": [], "connection-point": [ { "name": "mgmt-ext", "connection-point-id": null, "connection-point-vdu-id": null, "id": "mgmt-ext" } ], "ip-address": null, "revision": 1, "k8s-cluster": { "nets": [ { "id": "mgmtnet", "external-connection-point-ref": "mgmt-ext", "vim_net": "osm-ext" } ] }, "kdur": [ { "additionalParams": "{\"service\": \"!!yaml type: LoadBalancer\\n\", \"adminPassword\": \"admin\"}", "k8s-namespace": "906e76e1-3d4d-405e-9aef-801e4573a3ab", "kdu-deployment-name": "", "kdu-name": "ldap", "ip-address": null, "k8s-cluster": { "id": "0a42057f-d5af-403e-bc59-12923ff4092d" }, "helm-chart": "stable/openldap", "status": "ERROR" } ], "_admin": { "created": 1712112868.8096075, "modified": 1712112869.870676, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "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} = ['4ed1f42d-bbbd-4a71-905d-aa08bd877a38'] ${INSTANCEID} ${id[0]} Makes a variable available everywhere within the scope of the current suite. ${INSTANCEID} = 4ed1f42d-bbbd-4a71-905d-aa08bd877a38 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.136 ${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.136' 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.136: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.136: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.136: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.136:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:14:04 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/4hnt1li4nPh9I59jemPe1LKRZlhbD7UT', 'Content-Length': '654', 'Set-Cookie': 'session_id=84eeac335fa233e9b0bd34c65167a79832995500; expires=Wed, 03 Apr 2024 05:14:04 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1712117644.103287, "expires": 1712121244.103287, "_id": "4hnt1li4nPh9I59jemPe1LKRZlhbD7UT", "id": "4hnt1li4nPh9I59jemPe1LKRZlhbD7UT", "project_id": "906e76e1-3d4d-405e-9aef-801e4573a3ab", "project_name": "admin", "username": "admin", "user_id": "28afb60f-eaac-4d9e-bd83-f9227dcf3eda", "admin": true, "roles": [ { "name": "system_admin", "id": "15a84db6-68cf-4649-b63d-db1bf30e5d57" } ], "login_count": 0, "last_login": 1712117641.8526905, "admin_show": true, "user_show": false, "remote_port": 57875, "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} = ['4hnt1li4nPh9I59jemPe1LKRZlhbD7UT', '15a84db6-68cf-4649-b63d-db1bf30e5d57'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = 4hnt1li4nPh9I59jemPe1LKRZlhbD7UT ${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.136: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 4hnt1li4nPh9I59jemPe1LKRZlhbD7UT } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136: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 4hnt1li4nPh9I59jemPe1LKRZlhbD7UT'} body=None GET Response : url=https://172.21.248.136: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': 'Wed, 03 Apr 2024 04:14:06 GMT', 'Content-Length': '23240', 'Set-Cookie': 'session_id=4231bc6e97dc1afb81e53879133a0cec446c4949; expires=Wed, 03 Apr 2024 05:14:06 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body=[ { "_id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712112900.0215182, "lcmOperationType": "instantiate", "startTime": 1712112868.8704963, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112868.870529, "modified": 1712112900.0215216, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "c565c020-d3c2-454d-9d82-7a0e86592714", "id": "c565c020-d3c2-454d-9d82-7a0e86592714", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "FAILED Executing kdu upgrade: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112914.372239, "lcmOperationType": "action", "startTime": 1712112913.7454858, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112913.7455275, "modified": 1712112914.3722427, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "FAILED Executing kdu upgrade: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/c565c020-d3c2-454d-9d82-7a0e86592714", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "91eb4323-747a-41ec-a12e-00d2ec6d6655", "id": "91eb4323-747a-41ec-a12e-00d2ec6d6655", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "FAILED Executing kdu rollback: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112919.1693053, "lcmOperationType": "action", "startTime": 1712112918.7628856, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112918.7629225, "modified": 1712112919.1693082, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "FAILED Executing kdu rollback: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/91eb4323-747a-41ec-a12e-00d2ec6d6655", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "id": "ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 3/3 delete all. Detail: Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112938.912629, "lcmOperationType": "terminate", "startTime": 1712112923.572503, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112923.5725422, "modified": 1712112938.9126318, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "e5d28a71-3d52-4486-a50c-a999a0845ede", "id": "e5d28a71-3d52-4486-a50c-a999a0845ede", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 3/3 delete all. Detail: Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712113181.1279824, "lcmOperationType": "terminate", "startTime": 1712113180.6421995, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712113180.642238, "modified": 1712113181.1279855, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/e5d28a71-3d52-4486-a50c-a999a0845ede", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "666e2969-29a2-4170-8734-e9c3cf200e3f", "id": "666e2969-29a2-4170-8734-e9c3cf200e3f", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 03:06:50.037863 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.041464 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.043321 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.044859 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.046039 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712113640.2925968, "lcmOperationType": "instantiate", "startTime": 1712113608.9958575, "isAutomaticInvocation": false, "isCancelPending": false, ... (set the log level to DEBUG or TRACE to see the full content) ${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} = ['552d0e7a-7578-4806-a7a5-87aa68fa0b88', 'c565c020-d3c2-454d-9d82-7a0e86592714', '91eb4323-747a-41ec-a12e-00d2ec6d6655', 'ecdad6c6-7d45-4703-8f57-a1b3cd53f351', 'e5d28a71-3d52-4486-a50c-a999a0845ede',... ${LCMOPS} ${id1[0]} Makes a variable available everywhere within the scope of the current suite. ${LCMOPS} = 552d0e7a-7578-4806-a7a5-87aa68fa0b88 ${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.136: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 4hnt1li4nPh9I59jemPe1LKRZlhbD7UT } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136: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 4hnt1li4nPh9I59jemPe1LKRZlhbD7UT'} body=None GET Response : url=https://172.21.248.136: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': 'Wed, 03 Apr 2024 04:14:06 GMT', 'Content-Length': '23240', 'Set-Cookie': 'session_id=aa756ba157cf0d45228b4f6fd195b092812b3cc3; expires=Wed, 03 Apr 2024 05:14:06 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body=[ { "_id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712112900.0215182, "lcmOperationType": "instantiate", "startTime": 1712112868.8704963, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112868.870529, "modified": 1712112900.0215216, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "c565c020-d3c2-454d-9d82-7a0e86592714", "id": "c565c020-d3c2-454d-9d82-7a0e86592714", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "FAILED Executing kdu upgrade: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112914.372239, "lcmOperationType": "action", "startTime": 1712112913.7454858, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112913.7455275, "modified": 1712112914.3722427, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "FAILED Executing kdu upgrade: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/c565c020-d3c2-454d-9d82-7a0e86592714", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "91eb4323-747a-41ec-a12e-00d2ec6d6655", "id": "91eb4323-747a-41ec-a12e-00d2ec6d6655", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "FAILED Executing kdu rollback: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112919.1693053, "lcmOperationType": "action", "startTime": 1712112918.7628856, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112918.7629225, "modified": 1712112919.1693082, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "FAILED Executing kdu rollback: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/91eb4323-747a-41ec-a12e-00d2ec6d6655", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "id": "ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 3/3 delete all. Detail: Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112938.912629, "lcmOperationType": "terminate", "startTime": 1712112923.572503, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112923.5725422, "modified": 1712112938.9126318, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "e5d28a71-3d52-4486-a50c-a999a0845ede", "id": "e5d28a71-3d52-4486-a50c-a999a0845ede", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 3/3 delete all. Detail: Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712113181.1279824, "lcmOperationType": "terminate", "startTime": 1712113180.6421995, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712113180.642238, "modified": 1712113181.1279855, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/e5d28a71-3d52-4486-a50c-a999a0845ede", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "666e2969-29a2-4170-8734-e9c3cf200e3f", "id": "666e2969-29a2-4170-8734-e9c3cf200e3f", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 03:06:50.037863 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.041464 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.043321 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.044859 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.046039 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712113640.2925968, "lcmOperationType": "instantiate", "startTime": 1712113608.9958575, "isAutomaticInvocation": false, "isCancelPending": false, ... (set the log level to DEBUG or TRACE to see the full content) ${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} = ['FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'PROCESSING'] ${id[0]} ${value} = FAILED ${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. FAILED != 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.136: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 4hnt1li4nPh9I59jemPe1LKRZlhbD7UT } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136: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 4hnt1li4nPh9I59jemPe1LKRZlhbD7UT'} body=None GET Response : url=https://172.21.248.136: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': 'Wed, 03 Apr 2024 04:14:16 GMT', 'Content-Length': '23095', 'Set-Cookie': 'session_id=d526614203c07c300642f95ba26ada7fd657ec32; expires=Wed, 03 Apr 2024 05:14:16 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body=[ { "_id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712112900.0215182, "lcmOperationType": "instantiate", "startTime": 1712112868.8704963, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112868.870529, "modified": 1712112900.0215216, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "c565c020-d3c2-454d-9d82-7a0e86592714", "id": "c565c020-d3c2-454d-9d82-7a0e86592714", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "FAILED Executing kdu upgrade: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112914.372239, "lcmOperationType": "action", "startTime": 1712112913.7454858, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112913.7455275, "modified": 1712112914.3722427, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "FAILED Executing kdu upgrade: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/c565c020-d3c2-454d-9d82-7a0e86592714", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "91eb4323-747a-41ec-a12e-00d2ec6d6655", "id": "91eb4323-747a-41ec-a12e-00d2ec6d6655", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "FAILED Executing kdu rollback: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112919.1693053, "lcmOperationType": "action", "startTime": 1712112918.7628856, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112918.7629225, "modified": 1712112919.1693082, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "FAILED Executing kdu rollback: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/91eb4323-747a-41ec-a12e-00d2ec6d6655", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "id": "ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 3/3 delete all. Detail: Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112938.912629, "lcmOperationType": "terminate", "startTime": 1712112923.572503, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112923.5725422, "modified": 1712112938.9126318, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "e5d28a71-3d52-4486-a50c-a999a0845ede", "id": "e5d28a71-3d52-4486-a50c-a999a0845ede", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 3/3 delete all. Detail: Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712113181.1279824, "lcmOperationType": "terminate", "startTime": 1712113180.6421995, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712113180.642238, "modified": 1712113181.1279855, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/e5d28a71-3d52-4486-a50c-a999a0845ede", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "666e2969-29a2-4170-8734-e9c3cf200e3f", "id": "666e2969-29a2-4170-8734-e9c3cf200e3f", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 03:06:50.037863 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.041464 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.043321 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.044859 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.046039 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712113640.2925968, "lcmOperationType": "instantiate", "startTime": 1712113608.9958575, "isAutomaticInvocation": false, "isCancelPending": false, ... (set the log level to DEBUG or TRACE to see the full content) ${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} = ['FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'COMPLETED'] ${id[0]} ${value} = FAILED ${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. FAILED != 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} 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.136: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 4hnt1li4nPh9I59jemPe1LKRZlhbD7UT } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136: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 4hnt1li4nPh9I59jemPe1LKRZlhbD7UT'} body=None GET Response : url=https://172.21.248.136: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': 'Wed, 03 Apr 2024 04:14:26 GMT', 'Content-Length': '23095', 'Set-Cookie': 'session_id=2f311c0e534d8328ad6cb77f70cfe05bc37b1194; expires=Wed, 03 Apr 2024 05:14:26 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body=[ { "_id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712112900.0215182, "lcmOperationType": "instantiate", "startTime": 1712112868.8704963, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112868.870529, "modified": 1712112900.0215216, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "c565c020-d3c2-454d-9d82-7a0e86592714", "id": "c565c020-d3c2-454d-9d82-7a0e86592714", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "FAILED Executing kdu upgrade: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112914.372239, "lcmOperationType": "action", "startTime": 1712112913.7454858, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112913.7455275, "modified": 1712112914.3722427, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "FAILED Executing kdu upgrade: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/c565c020-d3c2-454d-9d82-7a0e86592714", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "91eb4323-747a-41ec-a12e-00d2ec6d6655", "id": "91eb4323-747a-41ec-a12e-00d2ec6d6655", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "FAILED Executing kdu rollback: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112919.1693053, "lcmOperationType": "action", "startTime": 1712112918.7628856, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112918.7629225, "modified": 1712112919.1693082, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "FAILED Executing kdu rollback: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/91eb4323-747a-41ec-a12e-00d2ec6d6655", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "id": "ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 3/3 delete all. Detail: Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112938.912629, "lcmOperationType": "terminate", "startTime": 1712112923.572503, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112923.5725422, "modified": 1712112938.9126318, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "e5d28a71-3d52-4486-a50c-a999a0845ede", "id": "e5d28a71-3d52-4486-a50c-a999a0845ede", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 3/3 delete all. Detail: Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712113181.1279824, "lcmOperationType": "terminate", "startTime": 1712113180.6421995, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712113180.642238, "modified": 1712113181.1279855, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/e5d28a71-3d52-4486-a50c-a999a0845ede", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "666e2969-29a2-4170-8734-e9c3cf200e3f", "id": "666e2969-29a2-4170-8734-e9c3cf200e3f", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 03:06:50.037863 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.041464 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.043321 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.044859 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.046039 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712113640.2925968, "lcmOperationType": "instantiate", "startTime": 1712113608.9958575, "isAutomaticInvocation": false, "isCancelPending": false, ... (set the log level to DEBUG or TRACE to see the full content) ${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} = ['FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'COMPLETED'] ${id[0]} ${value} = FAILED ${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. FAILED != 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} 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.136: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 4hnt1li4nPh9I59jemPe1LKRZlhbD7UT } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136: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 4hnt1li4nPh9I59jemPe1LKRZlhbD7UT'} body=None GET Response : url=https://172.21.248.136: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': 'Wed, 03 Apr 2024 04:14:36 GMT', 'Content-Length': '23095', 'Set-Cookie': 'session_id=1ecd3dedbbf206dca209ba0247b5912369b06b0c; expires=Wed, 03 Apr 2024 05:14:36 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body=[ { "_id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712112900.0215182, "lcmOperationType": "instantiate", "startTime": 1712112868.8704963, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112868.870529, "modified": 1712112900.0215216, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "c565c020-d3c2-454d-9d82-7a0e86592714", "id": "c565c020-d3c2-454d-9d82-7a0e86592714", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "FAILED Executing kdu upgrade: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112914.372239, "lcmOperationType": "action", "startTime": 1712112913.7454858, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112913.7455275, "modified": 1712112914.3722427, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "FAILED Executing kdu upgrade: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/c565c020-d3c2-454d-9d82-7a0e86592714", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "91eb4323-747a-41ec-a12e-00d2ec6d6655", "id": "91eb4323-747a-41ec-a12e-00d2ec6d6655", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "FAILED Executing kdu rollback: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112919.1693053, "lcmOperationType": "action", "startTime": 1712112918.7628856, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112918.7629225, "modified": 1712112919.1693082, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "FAILED Executing kdu rollback: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/91eb4323-747a-41ec-a12e-00d2ec6d6655", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "id": "ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 3/3 delete all. Detail: Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112938.912629, "lcmOperationType": "terminate", "startTime": 1712112923.572503, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112923.5725422, "modified": 1712112938.9126318, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "e5d28a71-3d52-4486-a50c-a999a0845ede", "id": "e5d28a71-3d52-4486-a50c-a999a0845ede", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 3/3 delete all. Detail: Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712113181.1279824, "lcmOperationType": "terminate", "startTime": 1712113180.6421995, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712113180.642238, "modified": 1712113181.1279855, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/e5d28a71-3d52-4486-a50c-a999a0845ede", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "666e2969-29a2-4170-8734-e9c3cf200e3f", "id": "666e2969-29a2-4170-8734-e9c3cf200e3f", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 03:06:50.037863 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.041464 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.043321 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.044859 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.046039 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712113640.2925968, "lcmOperationType": "instantiate", "startTime": 1712113608.9958575, "isAutomaticInvocation": false, "isCancelPending": false, ... (set the log level to DEBUG or TRACE to see the full content) ${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} = ['FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'COMPLETED'] ${id[0]} ${value} = FAILED ${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. FAILED != COMPLETED ${status} = False 10s Pauses the test executed for the given time. Slept 10 seconds 4 ${index} Logs the given message with the given level. 4 ${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.136: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 4hnt1li4nPh9I59jemPe1LKRZlhbD7UT } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136: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 4hnt1li4nPh9I59jemPe1LKRZlhbD7UT'} body=None GET Response : url=https://172.21.248.136: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': 'Wed, 03 Apr 2024 04:14:46 GMT', 'Content-Length': '23095', 'Set-Cookie': 'session_id=d89aa22a59160a6f013914f0d5c057901f989ebf; expires=Wed, 03 Apr 2024 05:14:46 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body=[ { "_id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712112900.0215182, "lcmOperationType": "instantiate", "startTime": 1712112868.8704963, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112868.870529, "modified": 1712112900.0215216, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "c565c020-d3c2-454d-9d82-7a0e86592714", "id": "c565c020-d3c2-454d-9d82-7a0e86592714", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "FAILED Executing kdu upgrade: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112914.372239, "lcmOperationType": "action", "startTime": 1712112913.7454858, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112913.7455275, "modified": 1712112914.3722427, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "FAILED Executing kdu upgrade: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/c565c020-d3c2-454d-9d82-7a0e86592714", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "91eb4323-747a-41ec-a12e-00d2ec6d6655", "id": "91eb4323-747a-41ec-a12e-00d2ec6d6655", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "FAILED Executing kdu rollback: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112919.1693053, "lcmOperationType": "action", "startTime": 1712112918.7628856, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112918.7629225, "modified": 1712112919.1693082, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "FAILED Executing kdu rollback: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/91eb4323-747a-41ec-a12e-00d2ec6d6655", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "id": "ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 3/3 delete all. Detail: Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112938.912629, "lcmOperationType": "terminate", "startTime": 1712112923.572503, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112923.5725422, "modified": 1712112938.9126318, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "e5d28a71-3d52-4486-a50c-a999a0845ede", "id": "e5d28a71-3d52-4486-a50c-a999a0845ede", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 3/3 delete all. Detail: Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712113181.1279824, "lcmOperationType": "terminate", "startTime": 1712113180.6421995, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712113180.642238, "modified": 1712113181.1279855, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/e5d28a71-3d52-4486-a50c-a999a0845ede", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "666e2969-29a2-4170-8734-e9c3cf200e3f", "id": "666e2969-29a2-4170-8734-e9c3cf200e3f", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 03:06:50.037863 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.041464 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.043321 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.044859 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.046039 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712113640.2925968, "lcmOperationType": "instantiate", "startTime": 1712113608.9958575, "isAutomaticInvocation": false, "isCancelPending": false, ... (set the log level to DEBUG or TRACE to see the full content) ${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} = ['FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'COMPLETED'] ${id[0]} ${value} = FAILED ${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. FAILED != COMPLETED ${status} = False 10s Pauses the test executed for the given time. Slept 10 seconds 5 ${index} Logs the given message with the given level. 5 ${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.136: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 4hnt1li4nPh9I59jemPe1LKRZlhbD7UT } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136: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 4hnt1li4nPh9I59jemPe1LKRZlhbD7UT'} body=None GET Response : url=https://172.21.248.136: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': 'Wed, 03 Apr 2024 04:14:56 GMT', 'Content-Length': '23095', 'Set-Cookie': 'session_id=4ccbc0f26cd9ae96bac9f55164fb4dac1bfb77a2; expires=Wed, 03 Apr 2024 05:14:56 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body=[ { "_id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712112900.0215182, "lcmOperationType": "instantiate", "startTime": 1712112868.8704963, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112868.870529, "modified": 1712112900.0215216, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "c565c020-d3c2-454d-9d82-7a0e86592714", "id": "c565c020-d3c2-454d-9d82-7a0e86592714", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "FAILED Executing kdu upgrade: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112914.372239, "lcmOperationType": "action", "startTime": 1712112913.7454858, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112913.7455275, "modified": 1712112914.3722427, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "FAILED Executing kdu upgrade: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/c565c020-d3c2-454d-9d82-7a0e86592714", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "91eb4323-747a-41ec-a12e-00d2ec6d6655", "id": "91eb4323-747a-41ec-a12e-00d2ec6d6655", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "FAILED Executing kdu rollback: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112919.1693053, "lcmOperationType": "action", "startTime": 1712112918.7628856, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112918.7629225, "modified": 1712112919.1693082, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "FAILED Executing kdu rollback: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/91eb4323-747a-41ec-a12e-00d2ec6d6655", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "id": "ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 3/3 delete all. Detail: Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112938.912629, "lcmOperationType": "terminate", "startTime": 1712112923.572503, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112923.5725422, "modified": 1712112938.9126318, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "e5d28a71-3d52-4486-a50c-a999a0845ede", "id": "e5d28a71-3d52-4486-a50c-a999a0845ede", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 3/3 delete all. Detail: Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712113181.1279824, "lcmOperationType": "terminate", "startTime": 1712113180.6421995, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712113180.642238, "modified": 1712113181.1279855, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/e5d28a71-3d52-4486-a50c-a999a0845ede", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "666e2969-29a2-4170-8734-e9c3cf200e3f", "id": "666e2969-29a2-4170-8734-e9c3cf200e3f", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 03:06:50.037863 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.041464 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.043321 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.044859 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.046039 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712113640.2925968, "lcmOperationType": "instantiate", "startTime": 1712113608.9958575, "isAutomaticInvocation": false, "isCancelPending": false, ... (set the log level to DEBUG or TRACE to see the full content) ${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} = ['FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'COMPLETED'] ${id[0]} ${value} = FAILED ${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. FAILED != COMPLETED ${status} = False 10s Pauses the test executed for the given time. Slept 10 seconds 6 ${index} Logs the given message with the given level. 6 ${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.136: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 4hnt1li4nPh9I59jemPe1LKRZlhbD7UT } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136: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 4hnt1li4nPh9I59jemPe1LKRZlhbD7UT'} body=None GET Response : url=https://172.21.248.136: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': 'Wed, 03 Apr 2024 04:15:07 GMT', 'Content-Length': '23095', 'Set-Cookie': 'session_id=14450d04f63ac5d50431d8b33038e525a23e714c; expires=Wed, 03 Apr 2024 05:15:07 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body=[ { "_id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712112900.0215182, "lcmOperationType": "instantiate", "startTime": 1712112868.8704963, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112868.870529, "modified": 1712112900.0215216, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "c565c020-d3c2-454d-9d82-7a0e86592714", "id": "c565c020-d3c2-454d-9d82-7a0e86592714", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "FAILED Executing kdu upgrade: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112914.372239, "lcmOperationType": "action", "startTime": 1712112913.7454858, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112913.7455275, "modified": 1712112914.3722427, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "FAILED Executing kdu upgrade: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/c565c020-d3c2-454d-9d82-7a0e86592714", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "91eb4323-747a-41ec-a12e-00d2ec6d6655", "id": "91eb4323-747a-41ec-a12e-00d2ec6d6655", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "FAILED Executing kdu rollback: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112919.1693053, "lcmOperationType": "action", "startTime": 1712112918.7628856, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112918.7629225, "modified": 1712112919.1693082, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "FAILED Executing kdu rollback: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/91eb4323-747a-41ec-a12e-00d2ec6d6655", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "id": "ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 3/3 delete all. Detail: Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112938.912629, "lcmOperationType": "terminate", "startTime": 1712112923.572503, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112923.5725422, "modified": 1712112938.9126318, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "e5d28a71-3d52-4486-a50c-a999a0845ede", "id": "e5d28a71-3d52-4486-a50c-a999a0845ede", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 3/3 delete all. Detail: Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712113181.1279824, "lcmOperationType": "terminate", "startTime": 1712113180.6421995, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712113180.642238, "modified": 1712113181.1279855, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/e5d28a71-3d52-4486-a50c-a999a0845ede", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "666e2969-29a2-4170-8734-e9c3cf200e3f", "id": "666e2969-29a2-4170-8734-e9c3cf200e3f", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 03:06:50.037863 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.041464 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.043321 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.044859 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.046039 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712113640.2925968, "lcmOperationType": "instantiate", "startTime": 1712113608.9958575, "isAutomaticInvocation": false, "isCancelPending": false, ... (set the log level to DEBUG or TRACE to see the full content) ${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} = ['FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'COMPLETED'] ${id[0]} ${value} = FAILED ${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. FAILED != COMPLETED ${status} = False 10s Pauses the test executed for the given time. Slept 10 seconds 7 ${index} Logs the given message with the given level. 7 ${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.136: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 4hnt1li4nPh9I59jemPe1LKRZlhbD7UT } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136: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 4hnt1li4nPh9I59jemPe1LKRZlhbD7UT'} body=None GET Response : url=https://172.21.248.136: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': 'Wed, 03 Apr 2024 04:15:17 GMT', 'Content-Length': '23095', 'Set-Cookie': 'session_id=34f6d67abeb40cee3cc28c26e56980ce81e8f7ba; expires=Wed, 03 Apr 2024 05:15:17 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body=[ { "_id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712112900.0215182, "lcmOperationType": "instantiate", "startTime": 1712112868.8704963, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112868.870529, "modified": 1712112900.0215216, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "c565c020-d3c2-454d-9d82-7a0e86592714", "id": "c565c020-d3c2-454d-9d82-7a0e86592714", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "FAILED Executing kdu upgrade: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112914.372239, "lcmOperationType": "action", "startTime": 1712112913.7454858, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112913.7455275, "modified": 1712112914.3722427, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "FAILED Executing kdu upgrade: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/c565c020-d3c2-454d-9d82-7a0e86592714", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "91eb4323-747a-41ec-a12e-00d2ec6d6655", "id": "91eb4323-747a-41ec-a12e-00d2ec6d6655", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "FAILED Executing kdu rollback: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112919.1693053, "lcmOperationType": "action", "startTime": 1712112918.7628856, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112918.7629225, "modified": 1712112919.1693082, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "FAILED Executing kdu rollback: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/91eb4323-747a-41ec-a12e-00d2ec6d6655", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "id": "ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 3/3 delete all. Detail: Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112938.912629, "lcmOperationType": "terminate", "startTime": 1712112923.572503, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112923.5725422, "modified": 1712112938.9126318, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "e5d28a71-3d52-4486-a50c-a999a0845ede", "id": "e5d28a71-3d52-4486-a50c-a999a0845ede", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 3/3 delete all. Detail: Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712113181.1279824, "lcmOperationType": "terminate", "startTime": 1712113180.6421995, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712113180.642238, "modified": 1712113181.1279855, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/e5d28a71-3d52-4486-a50c-a999a0845ede", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "666e2969-29a2-4170-8734-e9c3cf200e3f", "id": "666e2969-29a2-4170-8734-e9c3cf200e3f", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 03:06:50.037863 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.041464 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.043321 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.044859 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.046039 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712113640.2925968, "lcmOperationType": "instantiate", "startTime": 1712113608.9958575, "isAutomaticInvocation": false, "isCancelPending": false, ... (set the log level to DEBUG or TRACE to see the full content) ${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} = ['FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'COMPLETED'] ${id[0]} ${value} = FAILED ${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. FAILED != COMPLETED ${status} = False 10s Pauses the test executed for the given time. Slept 10 seconds 8 ${index} Logs the given message with the given level. 8 ${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.136: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 4hnt1li4nPh9I59jemPe1LKRZlhbD7UT } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136: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 4hnt1li4nPh9I59jemPe1LKRZlhbD7UT'} body=None GET Response : url=https://172.21.248.136: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': 'Wed, 03 Apr 2024 04:15:27 GMT', 'Content-Length': '23095', 'Set-Cookie': 'session_id=b18ee98dd88532bef6b392514ff2b906fd996284; expires=Wed, 03 Apr 2024 05:15:27 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body=[ { "_id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712112900.0215182, "lcmOperationType": "instantiate", "startTime": 1712112868.8704963, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112868.870529, "modified": 1712112900.0215216, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "c565c020-d3c2-454d-9d82-7a0e86592714", "id": "c565c020-d3c2-454d-9d82-7a0e86592714", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "FAILED Executing kdu upgrade: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112914.372239, "lcmOperationType": "action", "startTime": 1712112913.7454858, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112913.7455275, "modified": 1712112914.3722427, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "FAILED Executing kdu upgrade: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/c565c020-d3c2-454d-9d82-7a0e86592714", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "91eb4323-747a-41ec-a12e-00d2ec6d6655", "id": "91eb4323-747a-41ec-a12e-00d2ec6d6655", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "FAILED Executing kdu rollback: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112919.1693053, "lcmOperationType": "action", "startTime": 1712112918.7628856, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112918.7629225, "modified": 1712112919.1693082, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "FAILED Executing kdu rollback: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/91eb4323-747a-41ec-a12e-00d2ec6d6655", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "id": "ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 3/3 delete all. Detail: Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112938.912629, "lcmOperationType": "terminate", "startTime": 1712112923.572503, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112923.5725422, "modified": 1712112938.9126318, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "e5d28a71-3d52-4486-a50c-a999a0845ede", "id": "e5d28a71-3d52-4486-a50c-a999a0845ede", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 3/3 delete all. Detail: Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712113181.1279824, "lcmOperationType": "terminate", "startTime": 1712113180.6421995, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712113180.642238, "modified": 1712113181.1279855, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/e5d28a71-3d52-4486-a50c-a999a0845ede", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "666e2969-29a2-4170-8734-e9c3cf200e3f", "id": "666e2969-29a2-4170-8734-e9c3cf200e3f", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 03:06:50.037863 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.041464 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.043321 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.044859 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.046039 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712113640.2925968, "lcmOperationType": "instantiate", "startTime": 1712113608.9958575, "isAutomaticInvocation": false, "isCancelPending": false, ... (set the log level to DEBUG or TRACE to see the full content) ${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} = ['FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'COMPLETED'] ${id[0]} ${value} = FAILED ${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. FAILED != COMPLETED ${status} = False 10s Pauses the test executed for the given time. Slept 10 seconds 9 ${index} Logs the given message with the given level. 9 ${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.136: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 4hnt1li4nPh9I59jemPe1LKRZlhbD7UT } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136: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 4hnt1li4nPh9I59jemPe1LKRZlhbD7UT'} body=None GET Response : url=https://172.21.248.136: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': 'Wed, 03 Apr 2024 04:15:37 GMT', 'Content-Length': '23095', 'Set-Cookie': 'session_id=833749877208850398cba8ac0cdfbed2e92d04d5; expires=Wed, 03 Apr 2024 05:15:37 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body=[ { "_id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712112900.0215182, "lcmOperationType": "instantiate", "startTime": 1712112868.8704963, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112868.870529, "modified": 1712112900.0215216, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "c565c020-d3c2-454d-9d82-7a0e86592714", "id": "c565c020-d3c2-454d-9d82-7a0e86592714", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "FAILED Executing kdu upgrade: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112914.372239, "lcmOperationType": "action", "startTime": 1712112913.7454858, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112913.7455275, "modified": 1712112914.3722427, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "FAILED Executing kdu upgrade: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/c565c020-d3c2-454d-9d82-7a0e86592714", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "91eb4323-747a-41ec-a12e-00d2ec6d6655", "id": "91eb4323-747a-41ec-a12e-00d2ec6d6655", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "FAILED Executing kdu rollback: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112919.1693053, "lcmOperationType": "action", "startTime": 1712112918.7628856, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112918.7629225, "modified": 1712112919.1693082, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "FAILED Executing kdu rollback: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/91eb4323-747a-41ec-a12e-00d2ec6d6655", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "id": "ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 3/3 delete all. Detail: Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112938.912629, "lcmOperationType": "terminate", "startTime": 1712112923.572503, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112923.5725422, "modified": 1712112938.9126318, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "e5d28a71-3d52-4486-a50c-a999a0845ede", "id": "e5d28a71-3d52-4486-a50c-a999a0845ede", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 3/3 delete all. Detail: Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712113181.1279824, "lcmOperationType": "terminate", "startTime": 1712113180.6421995, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712113180.642238, "modified": 1712113181.1279855, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/e5d28a71-3d52-4486-a50c-a999a0845ede", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "666e2969-29a2-4170-8734-e9c3cf200e3f", "id": "666e2969-29a2-4170-8734-e9c3cf200e3f", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 03:06:50.037863 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.041464 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.043321 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.044859 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.046039 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712113640.2925968, "lcmOperationType": "instantiate", "startTime": 1712113608.9958575, "isAutomaticInvocation": false, "isCancelPending": false, ... (set the log level to DEBUG or TRACE to see the full content) ${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} = ['FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'COMPLETED'] ${id[0]} ${value} = FAILED ${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. FAILED != COMPLETED ${status} = False 10s Pauses the test executed for the given time. Slept 10 seconds 10 ${index} Logs the given message with the given level. 10 ${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.136: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 4hnt1li4nPh9I59jemPe1LKRZlhbD7UT } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136: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 4hnt1li4nPh9I59jemPe1LKRZlhbD7UT'} body=None GET Response : url=https://172.21.248.136: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': 'Wed, 03 Apr 2024 04:15:47 GMT', 'Content-Length': '23095', 'Set-Cookie': 'session_id=01b943c0214ce37b2f47b95b88cc1b0de9cebf33; expires=Wed, 03 Apr 2024 05:15:47 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body=[ { "_id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712112900.0215182, "lcmOperationType": "instantiate", "startTime": 1712112868.8704963, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112868.870529, "modified": 1712112900.0215216, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "c565c020-d3c2-454d-9d82-7a0e86592714", "id": "c565c020-d3c2-454d-9d82-7a0e86592714", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "FAILED Executing kdu upgrade: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112914.372239, "lcmOperationType": "action", "startTime": 1712112913.7454858, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112913.7455275, "modified": 1712112914.3722427, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "FAILED Executing kdu upgrade: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/c565c020-d3c2-454d-9d82-7a0e86592714", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "91eb4323-747a-41ec-a12e-00d2ec6d6655", "id": "91eb4323-747a-41ec-a12e-00d2ec6d6655", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "FAILED Executing kdu rollback: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112919.1693053, "lcmOperationType": "action", "startTime": 1712112918.7628856, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112918.7629225, "modified": 1712112919.1693082, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "FAILED Executing kdu rollback: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/91eb4323-747a-41ec-a12e-00d2ec6d6655", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "id": "ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 3/3 delete all. Detail: Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112938.912629, "lcmOperationType": "terminate", "startTime": 1712112923.572503, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112923.5725422, "modified": 1712112938.9126318, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "e5d28a71-3d52-4486-a50c-a999a0845ede", "id": "e5d28a71-3d52-4486-a50c-a999a0845ede", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 3/3 delete all. Detail: Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712113181.1279824, "lcmOperationType": "terminate", "startTime": 1712113180.6421995, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712113180.642238, "modified": 1712113181.1279855, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/e5d28a71-3d52-4486-a50c-a999a0845ede", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "666e2969-29a2-4170-8734-e9c3cf200e3f", "id": "666e2969-29a2-4170-8734-e9c3cf200e3f", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 03:06:50.037863 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.041464 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.043321 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.044859 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.046039 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712113640.2925968, "lcmOperationType": "instantiate", "startTime": 1712113608.9958575, "isAutomaticInvocation": false, "isCancelPending": false, ... (set the log level to DEBUG or TRACE to see the full content) ${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} = ['FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'COMPLETED'] ${id[0]} ${value} = FAILED ${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. FAILED != COMPLETED ${status} = False 10s Pauses the test executed for the given time. Slept 10 seconds 11 ${index} Logs the given message with the given level. 11 ${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.136: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 4hnt1li4nPh9I59jemPe1LKRZlhbD7UT } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136: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 4hnt1li4nPh9I59jemPe1LKRZlhbD7UT'} body=None GET Response : url=https://172.21.248.136: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': 'Wed, 03 Apr 2024 04:15:57 GMT', 'Content-Length': '23095', 'Set-Cookie': 'session_id=6cfff2cf4efaeec8e0700c24fb61ad11a83ab2ef; expires=Wed, 03 Apr 2024 05:15:57 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body=[ { "_id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712112900.0215182, "lcmOperationType": "instantiate", "startTime": 1712112868.8704963, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112868.870529, "modified": 1712112900.0215216, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "c565c020-d3c2-454d-9d82-7a0e86592714", "id": "c565c020-d3c2-454d-9d82-7a0e86592714", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "FAILED Executing kdu upgrade: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112914.372239, "lcmOperationType": "action", "startTime": 1712112913.7454858, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112913.7455275, "modified": 1712112914.3722427, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "FAILED Executing kdu upgrade: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/c565c020-d3c2-454d-9d82-7a0e86592714", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "91eb4323-747a-41ec-a12e-00d2ec6d6655", "id": "91eb4323-747a-41ec-a12e-00d2ec6d6655", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "FAILED Executing kdu rollback: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112919.1693053, "lcmOperationType": "action", "startTime": 1712112918.7628856, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112918.7629225, "modified": 1712112919.1693082, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "FAILED Executing kdu rollback: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/91eb4323-747a-41ec-a12e-00d2ec6d6655", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "id": "ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 3/3 delete all. Detail: Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112938.912629, "lcmOperationType": "terminate", "startTime": 1712112923.572503, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112923.5725422, "modified": 1712112938.9126318, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "e5d28a71-3d52-4486-a50c-a999a0845ede", "id": "e5d28a71-3d52-4486-a50c-a999a0845ede", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 3/3 delete all. Detail: Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712113181.1279824, "lcmOperationType": "terminate", "startTime": 1712113180.6421995, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712113180.642238, "modified": 1712113181.1279855, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/e5d28a71-3d52-4486-a50c-a999a0845ede", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "666e2969-29a2-4170-8734-e9c3cf200e3f", "id": "666e2969-29a2-4170-8734-e9c3cf200e3f", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 03:06:50.037863 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.041464 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.043321 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.044859 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.046039 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712113640.2925968, "lcmOperationType": "instantiate", "startTime": 1712113608.9958575, "isAutomaticInvocation": false, "isCancelPending": false, ... (set the log level to DEBUG or TRACE to see the full content) ${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} = ['FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'COMPLETED'] ${id[0]} ${value} = FAILED ${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. FAILED != COMPLETED ${status} = False 10s Pauses the test executed for the given time. Slept 10 seconds 12 ${index} Logs the given message with the given level. 12 ${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.136: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 4hnt1li4nPh9I59jemPe1LKRZlhbD7UT } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136: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 4hnt1li4nPh9I59jemPe1LKRZlhbD7UT'} body=None GET Response : url=https://172.21.248.136: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': 'Wed, 03 Apr 2024 04:16:07 GMT', 'Content-Length': '23095', 'Set-Cookie': 'session_id=3cfeb5e8b52b8813e45c72fdb5b2866303129457; expires=Wed, 03 Apr 2024 05:16:07 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body=[ { "_id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712112900.0215182, "lcmOperationType": "instantiate", "startTime": 1712112868.8704963, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112868.870529, "modified": 1712112900.0215216, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "c565c020-d3c2-454d-9d82-7a0e86592714", "id": "c565c020-d3c2-454d-9d82-7a0e86592714", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "FAILED Executing kdu upgrade: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112914.372239, "lcmOperationType": "action", "startTime": 1712112913.7454858, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112913.7455275, "modified": 1712112914.3722427, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "FAILED Executing kdu upgrade: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/c565c020-d3c2-454d-9d82-7a0e86592714", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "91eb4323-747a-41ec-a12e-00d2ec6d6655", "id": "91eb4323-747a-41ec-a12e-00d2ec6d6655", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "FAILED Executing kdu rollback: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112919.1693053, "lcmOperationType": "action", "startTime": 1712112918.7628856, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112918.7629225, "modified": 1712112919.1693082, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "FAILED Executing kdu rollback: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/91eb4323-747a-41ec-a12e-00d2ec6d6655", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "id": "ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 3/3 delete all. Detail: Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112938.912629, "lcmOperationType": "terminate", "startTime": 1712112923.572503, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112923.5725422, "modified": 1712112938.9126318, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "e5d28a71-3d52-4486-a50c-a999a0845ede", "id": "e5d28a71-3d52-4486-a50c-a999a0845ede", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 3/3 delete all. Detail: Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712113181.1279824, "lcmOperationType": "terminate", "startTime": 1712113180.6421995, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712113180.642238, "modified": 1712113181.1279855, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/e5d28a71-3d52-4486-a50c-a999a0845ede", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "666e2969-29a2-4170-8734-e9c3cf200e3f", "id": "666e2969-29a2-4170-8734-e9c3cf200e3f", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 03:06:50.037863 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.041464 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.043321 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.044859 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.046039 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712113640.2925968, "lcmOperationType": "instantiate", "startTime": 1712113608.9958575, "isAutomaticInvocation": false, "isCancelPending": false, ... (set the log level to DEBUG or TRACE to see the full content) ${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} = ['FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'COMPLETED'] ${id[0]} ${value} = FAILED ${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. FAILED != COMPLETED ${status} = False 10s Pauses the test executed for the given time. Slept 10 seconds 13 ${index} Logs the given message with the given level. 13 ${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.136: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 4hnt1li4nPh9I59jemPe1LKRZlhbD7UT } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136: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 4hnt1li4nPh9I59jemPe1LKRZlhbD7UT'} body=None GET Response : url=https://172.21.248.136: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': 'Wed, 03 Apr 2024 04:16:17 GMT', 'Content-Length': '23095', 'Set-Cookie': 'session_id=c88e4178b67b3878a70b88dce749f5e864c22b5d; expires=Wed, 03 Apr 2024 05:16:17 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body=[ { "_id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712112900.0215182, "lcmOperationType": "instantiate", "startTime": 1712112868.8704963, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112868.870529, "modified": 1712112900.0215216, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "c565c020-d3c2-454d-9d82-7a0e86592714", "id": "c565c020-d3c2-454d-9d82-7a0e86592714", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "FAILED Executing kdu upgrade: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112914.372239, "lcmOperationType": "action", "startTime": 1712112913.7454858, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112913.7455275, "modified": 1712112914.3722427, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "FAILED Executing kdu upgrade: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/c565c020-d3c2-454d-9d82-7a0e86592714", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "91eb4323-747a-41ec-a12e-00d2ec6d6655", "id": "91eb4323-747a-41ec-a12e-00d2ec6d6655", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "FAILED Executing kdu rollback: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112919.1693053, "lcmOperationType": "action", "startTime": 1712112918.7628856, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112918.7629225, "modified": 1712112919.1693082, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "FAILED Executing kdu rollback: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/91eb4323-747a-41ec-a12e-00d2ec6d6655", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "id": "ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 3/3 delete all. Detail: Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112938.912629, "lcmOperationType": "terminate", "startTime": 1712112923.572503, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112923.5725422, "modified": 1712112938.9126318, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "e5d28a71-3d52-4486-a50c-a999a0845ede", "id": "e5d28a71-3d52-4486-a50c-a999a0845ede", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 3/3 delete all. Detail: Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712113181.1279824, "lcmOperationType": "terminate", "startTime": 1712113180.6421995, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712113180.642238, "modified": 1712113181.1279855, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/e5d28a71-3d52-4486-a50c-a999a0845ede", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "666e2969-29a2-4170-8734-e9c3cf200e3f", "id": "666e2969-29a2-4170-8734-e9c3cf200e3f", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 03:06:50.037863 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.041464 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.043321 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.044859 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.046039 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712113640.2925968, "lcmOperationType": "instantiate", "startTime": 1712113608.9958575, "isAutomaticInvocation": false, "isCancelPending": false, ... (set the log level to DEBUG or TRACE to see the full content) ${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} = ['FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'COMPLETED'] ${id[0]} ${value} = FAILED ${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. FAILED != COMPLETED ${status} = False 10s Pauses the test executed for the given time. Slept 10 seconds 14 ${index} Logs the given message with the given level. 14 ${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.136: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 4hnt1li4nPh9I59jemPe1LKRZlhbD7UT } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136: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 4hnt1li4nPh9I59jemPe1LKRZlhbD7UT'} body=None GET Response : url=https://172.21.248.136: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': 'Wed, 03 Apr 2024 04:16:28 GMT', 'Content-Length': '23095', 'Set-Cookie': 'session_id=48322c05055f4793b34666a2810b8e6615b50738; expires=Wed, 03 Apr 2024 05:16:28 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body=[ { "_id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712112900.0215182, "lcmOperationType": "instantiate", "startTime": 1712112868.8704963, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112868.870529, "modified": 1712112900.0215216, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "c565c020-d3c2-454d-9d82-7a0e86592714", "id": "c565c020-d3c2-454d-9d82-7a0e86592714", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "FAILED Executing kdu upgrade: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112914.372239, "lcmOperationType": "action", "startTime": 1712112913.7454858, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112913.7455275, "modified": 1712112914.3722427, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "FAILED Executing kdu upgrade: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/c565c020-d3c2-454d-9d82-7a0e86592714", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "91eb4323-747a-41ec-a12e-00d2ec6d6655", "id": "91eb4323-747a-41ec-a12e-00d2ec6d6655", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "FAILED Executing kdu rollback: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112919.1693053, "lcmOperationType": "action", "startTime": 1712112918.7628856, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112918.7629225, "modified": 1712112919.1693082, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "FAILED Executing kdu rollback: Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/91eb4323-747a-41ec-a12e-00d2ec6d6655", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "id": "ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 3/3 delete all. Detail: Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712112938.912629, "lcmOperationType": "terminate", "startTime": 1712112923.572503, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112923.5725422, "modified": 1712112938.9126318, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/ecdad6c6-7d45-4703-8f57-a1b3cd53f351", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "e5d28a71-3d52-4486-a50c-a999a0845ede", "id": "e5d28a71-3d52-4486-a50c-a999a0845ede", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 3/3 delete all. Detail: Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "detailedStatus": null, "statusEnteredTime": 1712113181.1279824, "lcmOperationType": "terminate", "startTime": 1712113180.6421995, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712113180.642238, "modified": 1712113181.1279855, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Terminating KDU 'ldap': Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/e5d28a71-3d52-4486-a50c-a999a0845ede", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, { "_id": "666e2969-29a2-4170-8734-e9c3cf200e3f", "id": "666e2969-29a2-4170-8734-e9c3cf200e3f", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 03:06:50.037863 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.041464 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.043321 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.044859 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 03:06:50.046039 242 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712113640.2925968, "lcmOperationType": "instantiate", "startTime": 1712113608.9958575, "isAutomaticInvocation": false, "isCancelPending": false, ... (set the log level to DEBUG or TRACE to see the full content) ${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} = ['FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'FAILED', 'COMPLETED'] ${id[0]} ${value} = FAILED ${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. FAILED != COMPLETED ${status} = False 10s Pauses the test executed for the given time. Slept 10 seconds 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.136 ${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.136' 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.136: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.136: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.136: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.136:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:16:38 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/r4R5wW5rIbpBzNqaz7dIuSds6Y231yrn', 'Content-Length': '655', 'Set-Cookie': 'session_id=aa55a57b5e6400780a1bc31a392d4d9afc8148fd; expires=Wed, 03 Apr 2024 05:16:38 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1712117798.1900403, "expires": 1712121398.1900403, "_id": "r4R5wW5rIbpBzNqaz7dIuSds6Y231yrn", "id": "r4R5wW5rIbpBzNqaz7dIuSds6Y231yrn", "project_id": "906e76e1-3d4d-405e-9aef-801e4573a3ab", "project_name": "admin", "username": "admin", "user_id": "28afb60f-eaac-4d9e-bd83-f9227dcf3eda", "admin": true, "roles": [ { "name": "system_admin", "id": "15a84db6-68cf-4649-b63d-db1bf30e5d57" } ], "login_count": 0, "last_login": 1712117644.103287, "admin_show": true, "user_show": false, "remote_port": 47189, "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} = ['r4R5wW5rIbpBzNqaz7dIuSds6Y231yrn', '15a84db6-68cf-4649-b63d-db1bf30e5d57'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = r4R5wW5rIbpBzNqaz7dIuSds6Y231yrn ${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.136: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 r4R5wW5rIbpBzNqaz7dIuSds6Y231yrn } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer r4R5wW5rIbpBzNqaz7dIuSds6Y231yrn'} body=None GET Response : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:16:40 GMT', 'Content-Length': '2845', 'Set-Cookie': 'session_id=f1c85a26d4921ca47d6e6abcc5cac2bf26f13fb2; expires=Wed, 03 Apr 2024 05:16:40 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712112900.0215182, "lcmOperationType": "instantiate", "startTime": 1712112868.8704963, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112868.870529, "modified": 1712112900.0215216, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" } ${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} = ['552d0e7a-7578-4806-a7a5-87aa68fa0b88'] ${LCMOPSID} ${id1[0]} Makes a variable available everywhere within the scope of the current suite. ${LCMOPSID} = 552d0e7a-7578-4806-a7a5-87aa68fa0b88 ${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.136: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 r4R5wW5rIbpBzNqaz7dIuSds6Y231yrn } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer r4R5wW5rIbpBzNqaz7dIuSds6Y231yrn'} body=None GET Response : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:16:40 GMT', 'Content-Length': '2845', 'Set-Cookie': 'session_id=de927f304e2b681b1450bf5a6e79dea99c8bbe9d; expires=Wed, 03 Apr 2024 05:16:40 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712112900.0215182, "lcmOperationType": "instantiate", "startTime": 1712112868.8704963, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112868.870529, "modified": 1712112900.0215216, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" } ${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} = ['FAILED'] ${id[0]} ${value} = FAILED ${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. FAILED != 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}/${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.136: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 r4R5wW5rIbpBzNqaz7dIuSds6Y231yrn } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer r4R5wW5rIbpBzNqaz7dIuSds6Y231yrn'} body=None GET Response : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:16:50 GMT', 'Content-Length': '2845', 'Set-Cookie': 'session_id=ff2244b486156aa64b9ca72123c2ab1a1d245b78; expires=Wed, 03 Apr 2024 05:16:50 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712112900.0215182, "lcmOperationType": "instantiate", "startTime": 1712112868.8704963, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112868.870529, "modified": 1712112900.0215216, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" } ${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} = ['FAILED'] ${id[0]} ${value} = FAILED ${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. FAILED != 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}/${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.136: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 r4R5wW5rIbpBzNqaz7dIuSds6Y231yrn } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer r4R5wW5rIbpBzNqaz7dIuSds6Y231yrn'} body=None GET Response : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:17:00 GMT', 'Content-Length': '2845', 'Set-Cookie': 'session_id=b181f56380dd9eb13fd906e5838b14e28b290642; expires=Wed, 03 Apr 2024 05:17:00 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712112900.0215182, "lcmOperationType": "instantiate", "startTime": 1712112868.8704963, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112868.870529, "modified": 1712112900.0215216, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" } ${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} = ['FAILED'] ${id[0]} ${value} = FAILED ${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. FAILED != 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}/${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.136: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 r4R5wW5rIbpBzNqaz7dIuSds6Y231yrn } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer r4R5wW5rIbpBzNqaz7dIuSds6Y231yrn'} body=None GET Response : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:17:10 GMT', 'Content-Length': '2845', 'Set-Cookie': 'session_id=3fb7bb06bca3f6dab90de9f057cceaff7bd1798c; expires=Wed, 03 Apr 2024 05:17:10 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712112900.0215182, "lcmOperationType": "instantiate", "startTime": 1712112868.8704963, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112868.870529, "modified": 1712112900.0215216, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" } ${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} = ['FAILED'] ${id[0]} ${value} = FAILED ${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. FAILED != COMPLETED ${status} = False 10s Pauses the test executed for the given time. Slept 10 seconds 4 ${index} Logs the given message with the given level. 4 ${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.136: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 r4R5wW5rIbpBzNqaz7dIuSds6Y231yrn } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer r4R5wW5rIbpBzNqaz7dIuSds6Y231yrn'} body=None GET Response : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:17:20 GMT', 'Content-Length': '2845', 'Set-Cookie': 'session_id=b6cf300e9a7fff6c0574c47b94c9990a4cc0253e; expires=Wed, 03 Apr 2024 05:17:20 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712112900.0215182, "lcmOperationType": "instantiate", "startTime": 1712112868.8704963, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112868.870529, "modified": 1712112900.0215216, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" } ${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} = ['FAILED'] ${id[0]} ${value} = FAILED ${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. FAILED != COMPLETED ${status} = False 10s Pauses the test executed for the given time. Slept 10 seconds 5 ${index} Logs the given message with the given level. 5 ${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.136: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 r4R5wW5rIbpBzNqaz7dIuSds6Y231yrn } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer r4R5wW5rIbpBzNqaz7dIuSds6Y231yrn'} body=None GET Response : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:17:30 GMT', 'Content-Length': '2845', 'Set-Cookie': 'session_id=704a294d3ea96568444c13d2944b4884aba56eaa; expires=Wed, 03 Apr 2024 05:17:30 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712112900.0215182, "lcmOperationType": "instantiate", "startTime": 1712112868.8704963, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112868.870529, "modified": 1712112900.0215216, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" } ${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} = ['FAILED'] ${id[0]} ${value} = FAILED ${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. FAILED != COMPLETED ${status} = False 10s Pauses the test executed for the given time. Slept 10 seconds 6 ${index} Logs the given message with the given level. 6 ${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.136: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 r4R5wW5rIbpBzNqaz7dIuSds6Y231yrn } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer r4R5wW5rIbpBzNqaz7dIuSds6Y231yrn'} body=None GET Response : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:17:40 GMT', 'Content-Length': '2845', 'Set-Cookie': 'session_id=0161aa6fdc91fe8a4eb19d9f3f5b396c964f973c; expires=Wed, 03 Apr 2024 05:17:40 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712112900.0215182, "lcmOperationType": "instantiate", "startTime": 1712112868.8704963, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112868.870529, "modified": 1712112900.0215216, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" } ${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} = ['FAILED'] ${id[0]} ${value} = FAILED ${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. FAILED != COMPLETED ${status} = False 10s Pauses the test executed for the given time. Slept 10 seconds 7 ${index} Logs the given message with the given level. 7 ${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.136: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 r4R5wW5rIbpBzNqaz7dIuSds6Y231yrn } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer r4R5wW5rIbpBzNqaz7dIuSds6Y231yrn'} body=None GET Response : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:17:51 GMT', 'Content-Length': '2845', 'Set-Cookie': 'session_id=7a43c26ea386e6b54134bdd37077d60887499b09; expires=Wed, 03 Apr 2024 05:17:51 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712112900.0215182, "lcmOperationType": "instantiate", "startTime": 1712112868.8704963, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112868.870529, "modified": 1712112900.0215216, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" } ${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} = ['FAILED'] ${id[0]} ${value} = FAILED ${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. FAILED != COMPLETED ${status} = False 10s Pauses the test executed for the given time. Slept 10 seconds 8 ${index} Logs the given message with the given level. 8 ${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.136: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 r4R5wW5rIbpBzNqaz7dIuSds6Y231yrn } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer r4R5wW5rIbpBzNqaz7dIuSds6Y231yrn'} body=None GET Response : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:18:01 GMT', 'Content-Length': '2845', 'Set-Cookie': 'session_id=f28bd601ba213d2e54b892d50cd22f26a354098f; expires=Wed, 03 Apr 2024 05:18:01 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712112900.0215182, "lcmOperationType": "instantiate", "startTime": 1712112868.8704963, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112868.870529, "modified": 1712112900.0215216, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" } ${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} = ['FAILED'] ${id[0]} ${value} = FAILED ${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. FAILED != COMPLETED ${status} = False 10s Pauses the test executed for the given time. Slept 10 seconds 9 ${index} Logs the given message with the given level. 9 ${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.136: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 r4R5wW5rIbpBzNqaz7dIuSds6Y231yrn } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer r4R5wW5rIbpBzNqaz7dIuSds6Y231yrn'} body=None GET Response : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:18:11 GMT', 'Content-Length': '2845', 'Set-Cookie': 'session_id=571ca59a5d905f24f5137f43aa1e896c503d6e18; expires=Wed, 03 Apr 2024 05:18:11 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712112900.0215182, "lcmOperationType": "instantiate", "startTime": 1712112868.8704963, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112868.870529, "modified": 1712112900.0215216, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" } ${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} = ['FAILED'] ${id[0]} ${value} = FAILED ${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. FAILED != COMPLETED ${status} = False 10s Pauses the test executed for the given time. Slept 10 seconds 10 ${index} Logs the given message with the given level. 10 ${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.136: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 r4R5wW5rIbpBzNqaz7dIuSds6Y231yrn } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer r4R5wW5rIbpBzNqaz7dIuSds6Y231yrn'} body=None GET Response : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:18:21 GMT', 'Content-Length': '2845', 'Set-Cookie': 'session_id=db5a5047322df73c52b6816b28404b6ba70a8626; expires=Wed, 03 Apr 2024 05:18:21 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712112900.0215182, "lcmOperationType": "instantiate", "startTime": 1712112868.8704963, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112868.870529, "modified": 1712112900.0215216, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" } ${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} = ['FAILED'] ${id[0]} ${value} = FAILED ${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. FAILED != COMPLETED ${status} = False 10s Pauses the test executed for the given time. Slept 10 seconds 11 ${index} Logs the given message with the given level. 11 ${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.136: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 r4R5wW5rIbpBzNqaz7dIuSds6Y231yrn } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer r4R5wW5rIbpBzNqaz7dIuSds6Y231yrn'} body=None GET Response : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:18:31 GMT', 'Content-Length': '2845', 'Set-Cookie': 'session_id=806f985fb1281ae0907747a9ceaef8107f99b244; expires=Wed, 03 Apr 2024 05:18:31 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712112900.0215182, "lcmOperationType": "instantiate", "startTime": 1712112868.8704963, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112868.870529, "modified": 1712112900.0215216, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" } ${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} = ['FAILED'] ${id[0]} ${value} = FAILED ${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. FAILED != COMPLETED ${status} = False 10s Pauses the test executed for the given time. Slept 10 seconds 12 ${index} Logs the given message with the given level. 12 ${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.136: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 r4R5wW5rIbpBzNqaz7dIuSds6Y231yrn } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer r4R5wW5rIbpBzNqaz7dIuSds6Y231yrn'} body=None GET Response : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:18:41 GMT', 'Content-Length': '2845', 'Set-Cookie': 'session_id=f46004916974324001827baba7e4276287da4a93; expires=Wed, 03 Apr 2024 05:18:41 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712112900.0215182, "lcmOperationType": "instantiate", "startTime": 1712112868.8704963, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112868.870529, "modified": 1712112900.0215216, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" } ${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} = ['FAILED'] ${id[0]} ${value} = FAILED ${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. FAILED != COMPLETED ${status} = False 10s Pauses the test executed for the given time. Slept 10 seconds 13 ${index} Logs the given message with the given level. 13 ${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.136: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 r4R5wW5rIbpBzNqaz7dIuSds6Y231yrn } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer r4R5wW5rIbpBzNqaz7dIuSds6Y231yrn'} body=None GET Response : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:18:51 GMT', 'Content-Length': '2845', 'Set-Cookie': 'session_id=81a880e3f3b726098f5435fc87e8980114d6708b; expires=Wed, 03 Apr 2024 05:18:51 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712112900.0215182, "lcmOperationType": "instantiate", "startTime": 1712112868.8704963, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112868.870529, "modified": 1712112900.0215216, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" } ${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} = ['FAILED'] ${id[0]} ${value} = FAILED ${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. FAILED != COMPLETED ${status} = False 10s Pauses the test executed for the given time. Slept 10 seconds 14 ${index} Logs the given message with the given level. 14 ${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.136: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 r4R5wW5rIbpBzNqaz7dIuSds6Y231yrn } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer r4R5wW5rIbpBzNqaz7dIuSds6Y231yrn'} body=None GET Response : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:19:01 GMT', 'Content-Length': '2845', 'Set-Cookie': 'session_id=a2850a3b6367fcf3f12d7bb4b71a28d847b2739f; expires=Wed, 03 Apr 2024 05:19:01 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "id": "552d0e7a-7578-4806-a7a5-87aa68fa0b88", "operationState": "FAILED", "queuePosition": 0, "stage": "", "errorMessage": "Stage 2/5: deployment of KDUs, VMs and execution environments. Detail: Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "detailedStatus": null, "statusEnteredTime": 1712112900.0215182, "lcmOperationType": "instantiate", "startTime": 1712112868.8704963, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712112868.870529, "modified": 1712112900.0215216, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Deploying KDU ldap: E0403 02:54:29.834477 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.838763 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.841708 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.845839 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nE0403 02:54:29.848553 181 memcache.go:265] couldn't get current server API group list: the server has asked for the client to provide credentials\nerror: You must be logged in to the server (the server has asked for the client to provide credentials)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/552d0e7a-7578-4806-a7a5-87aa68fa0b88", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/4ed1f42d-bbbd-4a71-905d-aa08bd877a38" }, "vnfInstanceId": "4ed1f42d-bbbd-4a71-905d-aa08bd877a38" } ${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} = ['FAILED'] ${id[0]} ${value} = FAILED ${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. FAILED != COMPLETED ${status} = False 10s Pauses the test executed for the given time. Slept 10 seconds 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.136 ${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.136' 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.136: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.136: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.136: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.136:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:19:11 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/Quy7srbONTLUNBUQKUsK7hxTv1cvxxPW', 'Content-Length': '656', 'Set-Cookie': 'session_id=494f132da8cded1cb6b8a057a251e144d63f9de6; expires=Wed, 03 Apr 2024 05:19:11 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1712117951.7213035, "expires": 1712121551.7213035, "_id": "Quy7srbONTLUNBUQKUsK7hxTv1cvxxPW", "id": "Quy7srbONTLUNBUQKUsK7hxTv1cvxxPW", "project_id": "906e76e1-3d4d-405e-9aef-801e4573a3ab", "project_name": "admin", "username": "admin", "user_id": "28afb60f-eaac-4d9e-bd83-f9227dcf3eda", "admin": true, "roles": [ { "name": "system_admin", "id": "15a84db6-68cf-4649-b63d-db1bf30e5d57" } ], "login_count": 0, "last_login": 1712117798.1900403, "admin_show": true, "user_show": false, "remote_port": 56554, "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} = ['Quy7srbONTLUNBUQKUsK7hxTv1cvxxPW', '15a84db6-68cf-4649-b63d-db1bf30e5d57'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = Quy7srbONTLUNBUQKUsK7hxTv1cvxxPW ${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.136: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 Quy7srbONTLUNBUQKUsK7hxTv1cvxxPW } ${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.136:9999/osm/vnflcm/v1/vnf_instances/e16a9fdd-57c2-48d8-96ed-4c303c47118d/scale path_url=/osm/vnflcm/v1/vnf_instances/e16a9fdd-57c2-48d8-96ed-4c303c47118d/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 Quy7srbONTLUNBUQKUsK7hxTv1cvxxPW', '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.136:9999/osm/vnflcm/v1/vnf_instances/e16a9fdd-57c2-48d8-96ed-4c303c47118d/scale status=202, reason=Accepted headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:19:13 GMT', 'Location': '/osm/vnflcm/v1/vnf_lcm_op_occs/627a89a4-55c3-486f-be83-c844de9a4aef', 'Content-Length': '53', 'Set-Cookie': 'session_id=2c1d9bc5eb6ebeef3f89ccabf039ae6f3d67d38a; expires=Wed, 03 Apr 2024 05:19:13 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "id": "627a89a4-55c3-486f-be83-c844de9a4aef" } ${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} = ['627a89a4-55c3-486f-be83-c844de9a4aef'] ${id[0]} ${value} = 627a89a4-55c3-486f-be83-c844de9a4aef ${id1} ${request_response.json()} $..id Get Value From JSON using JSONPath ${id1} = ['627a89a4-55c3-486f-be83-c844de9a4aef'] ${SCALEOUTID} ${id1[0]} Makes a variable available everywhere within the scope of the current suite. ${SCALEOUTID} = 627a89a4-55c3-486f-be83-c844de9a4aef ${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.136: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 Quy7srbONTLUNBUQKUsK7hxTv1cvxxPW } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/627a89a4-55c3-486f-be83-c844de9a4aef path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/627a89a4-55c3-486f-be83-c844de9a4aef headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer Quy7srbONTLUNBUQKUsK7hxTv1cvxxPW'} body=None GET Response : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/627a89a4-55c3-486f-be83-c844de9a4aef status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:19:14 GMT', 'Content-Length': '995', 'Set-Cookie': 'session_id=239910ab17095c9c99b95f68d07376dce8e3667d; expires=Wed, 03 Apr 2024 05:19:14 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "627a89a4-55c3-486f-be83-c844de9a4aef", "id": "627a89a4-55c3-486f-be83-c844de9a4aef", "operationState": "PROCESSING", "queuePosition": null, "stage": null, "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1712117953.850832, "lcmOperationType": "scale", "startTime": 1712117953.850832, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712117953.8508687, "modified": 1712117953.8508687, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/627a89a4-55c3-486f-be83-c844de9a4aef", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/e16a9fdd-57c2-48d8-96ed-4c303c47118d" }, "vnfInstanceId": "e16a9fdd-57c2-48d8-96ed-4c303c47118d" } ${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} = ['627a89a4-55c3-486f-be83-c844de9a4aef'] ${LCMOPSSCALEID} ${LcmopsScale[0]} Makes a variable available everywhere within the scope of the current suite. ${LCMOPSSCALEID} = 627a89a4-55c3-486f-be83-c844de9a4aef ${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.136: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 Quy7srbONTLUNBUQKUsK7hxTv1cvxxPW } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/627a89a4-55c3-486f-be83-c844de9a4aef path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/627a89a4-55c3-486f-be83-c844de9a4aef headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer Quy7srbONTLUNBUQKUsK7hxTv1cvxxPW'} body=None GET Response : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/627a89a4-55c3-486f-be83-c844de9a4aef status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:19:14 GMT', 'Content-Length': '995', 'Set-Cookie': 'session_id=0301840be536af8f8ffb631ec38f412656edb754; expires=Wed, 03 Apr 2024 05:19:14 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "627a89a4-55c3-486f-be83-c844de9a4aef", "id": "627a89a4-55c3-486f-be83-c844de9a4aef", "operationState": "PROCESSING", "queuePosition": null, "stage": null, "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1712117953.850832, "lcmOperationType": "scale", "startTime": 1712117953.850832, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712117953.8508687, "modified": 1712117953.8508687, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/627a89a4-55c3-486f-be83-c844de9a4aef", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/e16a9fdd-57c2-48d8-96ed-4c303c47118d" }, "vnfInstanceId": "e16a9fdd-57c2-48d8-96ed-4c303c47118d" } ${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.136: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 Quy7srbONTLUNBUQKUsK7hxTv1cvxxPW } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/627a89a4-55c3-486f-be83-c844de9a4aef path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/627a89a4-55c3-486f-be83-c844de9a4aef headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer Quy7srbONTLUNBUQKUsK7hxTv1cvxxPW'} body=None GET Response : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/627a89a4-55c3-486f-be83-c844de9a4aef status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:19:24 GMT', 'Content-Length': '1038', 'Set-Cookie': 'session_id=8f032b77ba2b8c796cbc57a5379e30f3ab7f5cb6; expires=Wed, 03 Apr 2024 05:19:24 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "627a89a4-55c3-486f-be83-c844de9a4aef", "id": "627a89a4-55c3-486f-be83-c844de9a4aef", "operationState": "PROCESSING", "queuePosition": 0, "stage": "", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1712117953.850832, "lcmOperationType": "scale", "startTime": 1712117953.850832, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712117953.8508687, "modified": 1712117954.2596254, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": " VIM: (progress 0/1)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/627a89a4-55c3-486f-be83-c844de9a4aef", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/e16a9fdd-57c2-48d8-96ed-4c303c47118d" }, "vnfInstanceId": "e16a9fdd-57c2-48d8-96ed-4c303c47118d" } ${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.136: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 Quy7srbONTLUNBUQKUsK7hxTv1cvxxPW } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/627a89a4-55c3-486f-be83-c844de9a4aef path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/627a89a4-55c3-486f-be83-c844de9a4aef headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer Quy7srbONTLUNBUQKUsK7hxTv1cvxxPW'} body=None GET Response : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/627a89a4-55c3-486f-be83-c844de9a4aef status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:19:34 GMT', 'Content-Length': '1038', 'Set-Cookie': 'session_id=9627458955fdc77096a99c2c8a5e82b483ffedfe; expires=Wed, 03 Apr 2024 05:19:34 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "627a89a4-55c3-486f-be83-c844de9a4aef", "id": "627a89a4-55c3-486f-be83-c844de9a4aef", "operationState": "PROCESSING", "queuePosition": 0, "stage": "", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1712117953.850832, "lcmOperationType": "scale", "startTime": 1712117953.850832, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712117953.8508687, "modified": 1712117954.2596254, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": " VIM: (progress 0/1)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/627a89a4-55c3-486f-be83-c844de9a4aef", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/e16a9fdd-57c2-48d8-96ed-4c303c47118d" }, "vnfInstanceId": "e16a9fdd-57c2-48d8-96ed-4c303c47118d" } ${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.136: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 Quy7srbONTLUNBUQKUsK7hxTv1cvxxPW } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/627a89a4-55c3-486f-be83-c844de9a4aef path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/627a89a4-55c3-486f-be83-c844de9a4aef headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer Quy7srbONTLUNBUQKUsK7hxTv1cvxxPW'} body=None GET Response : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/627a89a4-55c3-486f-be83-c844de9a4aef status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:19:44 GMT', 'Content-Length': '1021', 'Set-Cookie': 'session_id=9483b9f024e34eaef8677e532d21b9e7b3f1f7bd; expires=Wed, 03 Apr 2024 05:19:44 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "627a89a4-55c3-486f-be83-c844de9a4aef", "id": "627a89a4-55c3-486f-be83-c844de9a4aef", "operationState": "COMPLETED", "queuePosition": 0, "stage": "", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1712117984.3801224, "lcmOperationType": "scale", "startTime": 1712117953.850832, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712117953.8508687, "modified": 1712117984.3801253, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Done", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/627a89a4-55c3-486f-be83-c844de9a4aef", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/e16a9fdd-57c2-48d8-96ed-4c303c47118d" }, "vnfInstanceId": "e16a9fdd-57c2-48d8-96ed-4c303c47118d" } ${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.136 ${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.136' 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.136: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.136: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.136: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.136:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:19:44 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/CgEFux7kop1EL9HyGRfMWZOXjsflL3Nl', 'Content-Length': '656', 'Set-Cookie': 'session_id=09432a9662f9c4bb80b9ad9c28e70349bb69e6d4; expires=Wed, 03 Apr 2024 05:19:44 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1712117984.5083287, "expires": 1712121584.5083287, "_id": "CgEFux7kop1EL9HyGRfMWZOXjsflL3Nl", "id": "CgEFux7kop1EL9HyGRfMWZOXjsflL3Nl", "project_id": "906e76e1-3d4d-405e-9aef-801e4573a3ab", "project_name": "admin", "username": "admin", "user_id": "28afb60f-eaac-4d9e-bd83-f9227dcf3eda", "admin": true, "roles": [ { "name": "system_admin", "id": "15a84db6-68cf-4649-b63d-db1bf30e5d57" } ], "login_count": 0, "last_login": 1712117951.7213035, "admin_show": true, "user_show": false, "remote_port": 56147, "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} = ['CgEFux7kop1EL9HyGRfMWZOXjsflL3Nl', '15a84db6-68cf-4649-b63d-db1bf30e5d57'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = CgEFux7kop1EL9HyGRfMWZOXjsflL3Nl ${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.136: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 CgEFux7kop1EL9HyGRfMWZOXjsflL3Nl } ${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.136:9999/osm/vnflcm/v1/vnf_instances/e16a9fdd-57c2-48d8-96ed-4c303c47118d/terminate path_url=/osm/vnflcm/v1/vnf_instances/e16a9fdd-57c2-48d8-96ed-4c303c47118d/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 CgEFux7kop1EL9HyGRfMWZOXjsflL3Nl', 'Content-Length': '66'} body=b'{"terminationType": "GRACEFUL", "gracefulTerminationTimeout": "5"}' POST Response : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_instances/e16a9fdd-57c2-48d8-96ed-4c303c47118d/terminate status=202, reason=Accepted headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:19:46 GMT', 'Location': '/osm/vnflcm/v1/vnf_lcm_op_occs/7597c211-c0ea-4b44-979c-562de08eda72', 'Content-Length': '53', 'Set-Cookie': 'session_id=7a2f642bff2ca869d2d397200dc29904b5aeaf11; expires=Wed, 03 Apr 2024 05:19:46 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "id": "7597c211-c0ea-4b44-979c-562de08eda72" } ${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} = ['7597c211-c0ea-4b44-979c-562de08eda72'] ${TERMINATEID} ${id[0]} Makes a variable available everywhere within the scope of the current suite. ${TERMINATEID} = 7597c211-c0ea-4b44-979c-562de08eda72 ${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.136: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 CgEFux7kop1EL9HyGRfMWZOXjsflL3Nl } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/7597c211-c0ea-4b44-979c-562de08eda72 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/7597c211-c0ea-4b44-979c-562de08eda72 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer CgEFux7kop1EL9HyGRfMWZOXjsflL3Nl'} body=None GET Response : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/7597c211-c0ea-4b44-979c-562de08eda72 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:19:46 GMT', 'Content-Length': '1070', 'Set-Cookie': 'session_id=6a369e63982799522ac4b20d882918f3fa5709f2; expires=Wed, 03 Apr 2024 05:19:46 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "7597c211-c0ea-4b44-979c-562de08eda72", "id": "7597c211-c0ea-4b44-979c-562de08eda72", "operationState": "PROCESSING", "queuePosition": 0, "stage": "Stage 3/3 delete all.", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1712117986.6096125, "lcmOperationType": "terminate", "startTime": 1712117986.6096125, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712117986.609646, "modified": 1712117986.7179606, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Stage 3/3 delete all. 0/1. ", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/7597c211-c0ea-4b44-979c-562de08eda72", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/e16a9fdd-57c2-48d8-96ed-4c303c47118d" }, "vnfInstanceId": "e16a9fdd-57c2-48d8-96ed-4c303c47118d" } ${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} = ['7597c211-c0ea-4b44-979c-562de08eda72'] ${LCMOPSSCALEID} ${LcmopsTerminate[0]} Makes a variable available everywhere within the scope of the current suite. ${LCMOPSSCALEID} = 7597c211-c0ea-4b44-979c-562de08eda72 ${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.136: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 CgEFux7kop1EL9HyGRfMWZOXjsflL3Nl } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/7597c211-c0ea-4b44-979c-562de08eda72 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/7597c211-c0ea-4b44-979c-562de08eda72 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer CgEFux7kop1EL9HyGRfMWZOXjsflL3Nl'} body=None GET Response : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/7597c211-c0ea-4b44-979c-562de08eda72 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:19:46 GMT', 'Content-Length': '1089', 'Set-Cookie': 'session_id=08abe3deb5d71ee43c7dcef4d33b8533cca2ea7b; expires=Wed, 03 Apr 2024 05:19:46 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "7597c211-c0ea-4b44-979c-562de08eda72", "id": "7597c211-c0ea-4b44-979c-562de08eda72", "operationState": "PROCESSING", "queuePosition": 0, "stage": "Stage 3/3 delete all.", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1712117986.6096125, "lcmOperationType": "terminate", "startTime": 1712117986.6096125, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712117986.609646, "modified": 1712117986.8215425, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Stage 3/3 delete all. 0/1. VIM: (progress 0/5)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/7597c211-c0ea-4b44-979c-562de08eda72", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/e16a9fdd-57c2-48d8-96ed-4c303c47118d" }, "vnfInstanceId": "e16a9fdd-57c2-48d8-96ed-4c303c47118d" } ${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.136: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 CgEFux7kop1EL9HyGRfMWZOXjsflL3Nl } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/7597c211-c0ea-4b44-979c-562de08eda72 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/7597c211-c0ea-4b44-979c-562de08eda72 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer CgEFux7kop1EL9HyGRfMWZOXjsflL3Nl'} body=None GET Response : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/7597c211-c0ea-4b44-979c-562de08eda72 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:19:56 GMT', 'Content-Length': '1089', 'Set-Cookie': 'session_id=b967c5b8e53d3746cc46fd13187f252ce576d756; expires=Wed, 03 Apr 2024 05:19:56 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "7597c211-c0ea-4b44-979c-562de08eda72", "id": "7597c211-c0ea-4b44-979c-562de08eda72", "operationState": "PROCESSING", "queuePosition": 0, "stage": "Stage 3/3 delete all.", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1712117986.6096125, "lcmOperationType": "terminate", "startTime": 1712117986.6096125, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712117986.609646, "modified": 1712117986.8215425, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Stage 3/3 delete all. 0/1. VIM: (progress 0/5)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/7597c211-c0ea-4b44-979c-562de08eda72", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/e16a9fdd-57c2-48d8-96ed-4c303c47118d" }, "vnfInstanceId": "e16a9fdd-57c2-48d8-96ed-4c303c47118d" } ${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.136: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 CgEFux7kop1EL9HyGRfMWZOXjsflL3Nl } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/7597c211-c0ea-4b44-979c-562de08eda72 path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/7597c211-c0ea-4b44-979c-562de08eda72 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer CgEFux7kop1EL9HyGRfMWZOXjsflL3Nl'} body=None GET Response : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/7597c211-c0ea-4b44-979c-562de08eda72 status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:20:06 GMT', 'Content-Length': '1024', 'Set-Cookie': 'session_id=1372af608ddefd67a4b84a17cdc952be92bea552; expires=Wed, 03 Apr 2024 05:20:06 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "7597c211-c0ea-4b44-979c-562de08eda72", "id": "7597c211-c0ea-4b44-979c-562de08eda72", "operationState": "COMPLETED", "queuePosition": 0, "stage": "", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1712118002.053587, "lcmOperationType": "terminate", "startTime": 1712117986.6096125, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712117986.609646, "modified": 1712118002.0535896, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Done", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/7597c211-c0ea-4b44-979c-562de08eda72", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/e16a9fdd-57c2-48d8-96ed-4c303c47118d" }, "vnfInstanceId": "e16a9fdd-57c2-48d8-96ed-4c303c47118d" } ${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.136 ${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.136' 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.136: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.136: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.136: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.136:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:20:07 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/d9r05hirPZIgvS0H5014tB1rc9FVsOvp', 'Content-Length': '656', 'Set-Cookie': 'session_id=b4763b1d4139480e09e87a1414e64a7e0efe318d; expires=Wed, 03 Apr 2024 05:20:07 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1712118007.0821354, "expires": 1712121607.0821354, "_id": "d9r05hirPZIgvS0H5014tB1rc9FVsOvp", "id": "d9r05hirPZIgvS0H5014tB1rc9FVsOvp", "project_id": "906e76e1-3d4d-405e-9aef-801e4573a3ab", "project_name": "admin", "username": "admin", "user_id": "28afb60f-eaac-4d9e-bd83-f9227dcf3eda", "admin": true, "roles": [ { "name": "system_admin", "id": "15a84db6-68cf-4649-b63d-db1bf30e5d57" } ], "login_count": 0, "last_login": 1712117984.5083287, "admin_show": true, "user_show": false, "remote_port": 13138, "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} = ['d9r05hirPZIgvS0H5014tB1rc9FVsOvp', '15a84db6-68cf-4649-b63d-db1bf30e5d57'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = d9r05hirPZIgvS0H5014tB1rc9FVsOvp ${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.136: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 d9r05hirPZIgvS0H5014tB1rc9FVsOvp } ${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.136:9999/osm/vnflcm/v1/vnf_instances/e16a9fdd-57c2-48d8-96ed-4c303c47118d path_url=/osm/vnflcm/v1/vnf_instances/e16a9fdd-57c2-48d8-96ed-4c303c47118d headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer d9r05hirPZIgvS0H5014tB1rc9FVsOvp', 'Content-Length': '0'} body=None DELETE Response : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_instances/e16a9fdd-57c2-48d8-96ed-4c303c47118d status=204, reason=No Content headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:20:09 GMT', 'Set-Cookie': 'session_id=3bd90ce061854103e85012e60b27955427633f37; expires=Wed, 03 Apr 2024 05:20: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. 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 bdea32d9-55ee-40d0-b43e-3dd03f83afab ${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} = bdea32d9-55ee-40d0-b43e-3dd03f83afab ${id} ${VNFD_ID} = bdea32d9-55ee-40d0-b43e-3dd03f83afab ${VNFD_ID} Makes a variable available everywhere within the scope of the current suite. ${VNFD_ID} = bdea32d9-55ee-40d0-b43e-3dd03f83afab ${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} = 7a8df917-c55f-4ae7-a49d-b123d795de17 ${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} = 7a8df917-c55f-4ae7-a49d-b123d795de17 ${CREATED_VIM_ACCOUNT_ID} Makes a variable available everywhere within the scope of the current suite. ${CREATED_VIM_ACCOUNT_ID} = 7a8df917-c55f-4ae7-a49d-b123d795de17 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.136 ${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.136' 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.136: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.136: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.136: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.136:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:20:15 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/J7bqoqeIBlAwul5ePd6qExD3wBEfTioY', 'Content-Length': '656', 'Set-Cookie': 'session_id=343bf07bac23183e9f0085885a9e4a58b4e0b4ca; expires=Wed, 03 Apr 2024 05:20:15 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1712118015.0815651, "expires": 1712121615.0815651, "_id": "J7bqoqeIBlAwul5ePd6qExD3wBEfTioY", "id": "J7bqoqeIBlAwul5ePd6qExD3wBEfTioY", "project_id": "906e76e1-3d4d-405e-9aef-801e4573a3ab", "project_name": "admin", "username": "admin", "user_id": "28afb60f-eaac-4d9e-bd83-f9227dcf3eda", "admin": true, "roles": [ { "name": "system_admin", "id": "15a84db6-68cf-4649-b63d-db1bf30e5d57" } ], "login_count": 0, "last_login": 1712118014.8856683, "admin_show": true, "user_show": false, "remote_port": 63151, "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} = ['J7bqoqeIBlAwul5ePd6qExD3wBEfTioY', '15a84db6-68cf-4649-b63d-db1bf30e5d57'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = J7bqoqeIBlAwul5ePd6qExD3wBEfTioY ${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': '7a8df917-c55f-4ae7-a49d-b123d795de17', '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': '7a8df917-c55f-4ae7-a49d-b123d795de17', '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': '7a8df917-c55f-4ae7-a49d-b123d795de17', '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': '7a8df917-c55f-4ae7-a49d-b123d795de17', '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': '7a8df917-c55f-4ae7-a49d-b123d795de17', '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': '7a8df917-c55f-4ae7-a49d-b123d795de17', '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': '7a8df917-c55f-4ae7-a49d-b123d795de17', '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.136: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 J7bqoqeIBlAwul5ePd6qExD3wBEfTioY } ${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.136: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 J7bqoqeIBlAwul5ePd6qExD3wBEfTioY', 'Content-Length': '423'} body=b'{"vnfdId": "hackfest_basic-vnf", "vnfInstanceName": "sol003-instance", "vnfInstanceDescription": "Test vnfm instance description", "vimAccountId": "7a8df917-c55f-4ae7-a49d-b123d795de17", "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.136:9999/osm/vnflcm/v1/vnf_instances status=201, reason=Created headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:20:18 GMT', 'Location': '/osm/vnflcm/v1/vnf_instances/7774e40e-7aca-49dc-8572-b3a207a4eb58', 'Content-Length': '53', 'Set-Cookie': 'session_id=8f82cb165b6103f38f15961e7f46a5e5f522f895; expires=Wed, 03 Apr 2024 05:20:18 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "id": "7774e40e-7aca-49dc-8572-b3a207a4eb58" } ${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} = ['7774e40e-7aca-49dc-8572-b3a207a4eb58'] ${CREATEID} ${id[0]} Makes a variable available everywhere within the scope of the current suite. ${CREATEID} = 7774e40e-7aca-49dc-8572-b3a207a4eb58 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 | +--------------------+--------------------------------------+-----------+ | openldap_knf | 78f32878-8c8c-4d20-bcb0-c1c685d6d910 | sol006 | | two_helm_oci_knf | f151e649-6c3e-4979-8263-4c6ca952f3a3 | sol006 | | hackfest_basic-vnf | bdea32d9-55ee-40d0-b43e-3dd03f83afab | 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 | +--------------------+--------------------------------------+---------------------+------------------+-------------------+------------------------------------------+ | ldap | 636ca116-69ed-45c9-b91e-96c7e441a1d8 | 2024-04-03T02:54:28 | BROKEN | IDLE (None) | Operation: TERMINATING.7817ea25-2280- | | | | | | | 4088-87b9-f9741dea1f23, Stage 3/3 delete | | | | | | | all.. | | | | | | | Detail: Terminating KDU 'ldap': Error: | | | | | | | Kubernetes cluster unreachable: the | | | | | | | server has asked for the client to | | | | | | | provide credentials | | ldap | 88947844-0671-4026-8e01-f945ec62a776 | 2024-04-03T03:06:48 | BROKEN | IDLE (None) | Operation: INSTANTIATING.666e2969-29a2- | | | | | | | 4170-8734-e9c3cf200e3f, Stage 2/5: | | | | | | | deployment of KDUs, VMs and execution | | | | | | | environments. | | | | | | | Detail: Deploying KDU ldap: E0403 | | | | | | | 03:06:50.037863 242 memcache.go:265] | | | | | | | couldn't get current server API group | | | | | | | list: the server has asked for the | | | | | | | client to provide credentials | | | | | | | E0403 03:06:50.041464 242 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:06:50.043321 242 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:06:50.044859 242 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:06:50.046039 242 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | error: You must be logged in to the | | | | | | | server (the server has asked for the | | | | | | | client to provide credentials) | | ldap | 8c816366-0e1a-4dd7-91b6-bf26c59c1d94 | 2024-04-03T03:13:46 | BROKEN | IDLE (None) | Operation: INSTANTIATING.92d4c589-a8ea- | | | | | | | 42ec-92f3-ec413aaf86b7, Stage 2/5: | | | | | | | deployment of KDUs, VMs and execution | | | | | | | environments. | | | | | | | Detail: Deploying KDU haproxy: E0403 | | | | | | | 03:13:49.347147 275 memcache.go:265] | | | | | | | couldn't get current server API group | | | | | | | list: the server has asked for the | | | | | | | client to provide credentials | | | | | | | E0403 03:13:49.357255 275 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:13:49.359972 275 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:13:49.362433 275 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:13:49.364567 275 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | error: You must be logged in to the | | | | | | | server (the server has asked for the | | | | | | | client to provide credentials). | | | | | | | Deploying KDU ldap: E0403 | | | | | | | 03:13:49.517079 282 memcache.go:265] | | | | | | | couldn't get current server API group | | | | | | | list: the server has asked for the | | | | | | | client to provide credentials | | | | | | | E0403 03:13:49.519123 282 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:13:49.523318 282 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:13:49.526729 282 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:13:49.528909 282 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | error: You must be logged in to the | | | | | | | server (the server has asked for the | | | | | | | client to provide credentials) | | sol003-instance-ns | 62bf6c7f-d696-4837-ad3b-1849a38e8602 | 2024-04-03T04:20:18 | 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 | +--------------------------------------+------+--------------------------------------+------------------+--------------------+--------------------------------------+------------+ | 4ed1f42d-bbbd-4a71-905d-aa08bd877a38 | - | 636ca116-69ed-45c9-b91e-96c7e441a1d8 | openldap | openldap_knf | 7a8df917-c55f-4ae7-a49d-b123d795de17 | None | | d12f3a88-58d5-4b70-9457-9afec727e653 | - | 88947844-0671-4026-8e01-f945ec62a776 | openldap | openldap_knf | ba54a551-ceae-4c1d-94f4-7c80daa8a7f0 | None | | 30036867-fbb6-48c0-92af-fa5155ebf9aa | - | 8c816366-0e1a-4dd7-91b6-bf26c59c1d94 | two_helm_oci | two_helm_oci_knf | 7a8df917-c55f-4ae7-a49d-b123d795de17 | None | | 7774e40e-7aca-49dc-8572-b3a207a4eb58 | - | 62bf6c7f-d696-4837-ad3b-1849a38e8602 | 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.136 ${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.136' 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.136: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.136: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.136: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.136:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:20:22 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/WFKZc21feU5NI8BDK0Mq0rU6PH9BqB14', 'Content-Length': '655', 'Set-Cookie': 'session_id=ae747d1ee56ae4e57218c8278acb2697137d77da; expires=Wed, 03 Apr 2024 05:20:22 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1712118022.3881986, "expires": 1712121622.3881986, "_id": "WFKZc21feU5NI8BDK0Mq0rU6PH9BqB14", "id": "WFKZc21feU5NI8BDK0Mq0rU6PH9BqB14", "project_id": "906e76e1-3d4d-405e-9aef-801e4573a3ab", "project_name": "admin", "username": "admin", "user_id": "28afb60f-eaac-4d9e-bd83-f9227dcf3eda", "admin": true, "roles": [ { "name": "system_admin", "id": "15a84db6-68cf-4649-b63d-db1bf30e5d57" } ], "login_count": 0, "last_login": 1712118021.1790905, "admin_show": true, "user_show": false, "remote_port": 5000, "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} = ['WFKZc21feU5NI8BDK0Mq0rU6PH9BqB14', '15a84db6-68cf-4649-b63d-db1bf30e5d57'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = WFKZc21feU5NI8BDK0Mq0rU6PH9BqB14 ${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': '7a8df917-c55f-4ae7-a49d-b123d795de17'} ${UPDATED_JSON_OBJ} ${UPDATED_JSON_OBJ} $..vnfId ${CREATEID} Update value to JSON using JSONPath ${UPDATED_JSON_OBJ} = {'vnfName': 'sol003-instance', 'vnfDescription': 'vnf package', 'vnfId': '7774e40e-7aca-49dc-8572-b3a207a4eb58', 'vimAccountId': '7a8df917-c55f-4ae7-a49d-b123d795de17'} ${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': '7774e40e-7aca-49dc-8572-b3a207a4eb58', 'vimAccountId': '7a8df917-c55f-4ae7-a49d-b123d795de17'} ${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.136: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 WFKZc21feU5NI8BDK0Mq0rU6PH9BqB14 } ${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.136:9999/osm/vnflcm/v1/vnf_instances/7774e40e-7aca-49dc-8572-b3a207a4eb58/instantiate path_url=/osm/vnflcm/v1/vnf_instances/7774e40e-7aca-49dc-8572-b3a207a4eb58/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 WFKZc21feU5NI8BDK0Mq0rU6PH9BqB14', 'Content-Length': '168'} body=b'{"vnfName": "sol003-instance", "vnfDescription": "vnf package", "vnfId": "7774e40e-7aca-49dc-8572-b3a207a4eb58", "vimAccountId": "7a8df917-c55f-4ae7-a49d-b123d795de17"}' POST Response : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_instances/7774e40e-7aca-49dc-8572-b3a207a4eb58/instantiate status=202, reason=Accepted headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:20:25 GMT', 'Location': '/osm/vnflcm/v1/vnf_lcm_op_occs/9edccd3f-a560-4070-8bf1-0a513a12f4ba', 'Content-Length': '53', 'Set-Cookie': 'session_id=d287912a98278147e698d284b04cf860b9696337; expires=Wed, 03 Apr 2024 05:20:25 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "id": "9edccd3f-a560-4070-8bf1-0a513a12f4ba" } ${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} = ['9edccd3f-a560-4070-8bf1-0a513a12f4ba'] ${VNF_INSTANCE_ID} ${id[0]} Makes a variable available everywhere within the scope of the current suite. ${VNF_INSTANCE_ID} = 9edccd3f-a560-4070-8bf1-0a513a12f4ba 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 | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ | 2081ead1-3acb-476e-bc1c-ece0991e8a93 | osm-v150-merge-108 | ACTIVE | osm-ext=172.21.248.16 | ubuntu22.04 | osm.sanity | | a4f5989d-42be-4d94-a999-060250d754f3 | osm-master-merge-2943 | ACTIVE | osm-ext=172.21.248.136 | ubuntu22.04 | osm.sanity | | d1c13b29-6684-4bd4-b0dd-e37f812251b6 | tfs-controller | ACTIVE | osm-ext=172.21.249.222 | ubuntu22.04 | 8CPU16RAM120DISK | | 50ff3fab-0638-4c0c-90f0-482fda44502d | connectivity-checker | ACTIVE | osm-ext=172.21.248.52 | ubuntu22.04 | m1.small | | efef733e-fa09-4a84-9166-be07e67991ee | osm-cicd-4 | ACTIVE | osm-ext=172.21.249.4 | ubuntu22.04 | cicd.stage-3 | | cdb8074d-4819-48c2-a653-48f58644103f | osm-cicd-3 | ACTIVE | osm-ext=172.21.249.3 | ubuntu22.04 | 16CPU32RAM200DISK | | c577acd0-532d-40b1-a55f-df851a7c10b5 | osm-cicd-2 | ACTIVE | osm-ext=172.21.249.2 | ubuntu22.04 | 16CPU32RAM200DISK | | d60af501-35ea-4cad-a30f-a4b163ee1647 | osm-cicd-1 | ACTIVE | osm-ext=172.21.249.1 | ubuntu22.04 | cicd.stage-1 | | e7335e3f-07d7-4f3d-9696-f74456db12ef | grafana | ACTIVE | osm-ext=172.21.249.69 | ubuntu20.04 | srsLTE-vdu-flv-7 | | 0ad5ca31-1201-46ba-b146-cd855ed154a8 | prometheus | ACTIVE | osm-ext=172.21.248.212 | ubuntu20.04 | srsLTE-vdu-flv-7 | | edd53c21-a6c0-4719-a6ee-291adfb9c011 | inframon-juju-controller | ACTIVE | osm-ext=172.21.249.111 | ubuntu20.04 | vThunder_vnfd-VM-flv | | 2244faf7-d023-40c2-b255-70c68eee9cc5 | inframon-tools | ACTIVE | osm-ext=172.21.248.15 | ubuntu22.04 | m1.small | +--------------------------------------+--------------------------+--------+------------------------+-------------+----------------------+ ${rc} ${stdout} osm ns-list --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 | +--------------------+--------------------------------------+---------------------+----------+-------------------+------------------------------------------+ | ldap | 636ca116-69ed-45c9-b91e-96c7e441a1d8 | 2024-04-03T02:54:28 | BROKEN | IDLE (None) | Operation: TERMINATING.7817ea25-2280- | | | | | | | 4088-87b9-f9741dea1f23, Stage 3/3 delete | | | | | | | all.. | | | | | | | Detail: Terminating KDU 'ldap': Error: | | | | | | | Kubernetes cluster unreachable: the | | | | | | | server has asked for the client to | | | | | | | provide credentials | | ldap | 88947844-0671-4026-8e01-f945ec62a776 | 2024-04-03T03:06:48 | BROKEN | IDLE (None) | Operation: INSTANTIATING.666e2969-29a2- | | | | | | | 4170-8734-e9c3cf200e3f, Stage 2/5: | | | | | | | deployment of KDUs, VMs and execution | | | | | | | environments. | | | | | | | Detail: Deploying KDU ldap: E0403 | | | | | | | 03:06:50.037863 242 memcache.go:265] | | | | | | | couldn't get current server API group | | | | | | | list: the server has asked for the | | | | | | | client to provide credentials | | | | | | | E0403 03:06:50.041464 242 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:06:50.043321 242 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:06:50.044859 242 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:06:50.046039 242 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | error: You must be logged in to the | | | | | | | server (the server has asked for the | | | | | | | client to provide credentials) | | ldap | 8c816366-0e1a-4dd7-91b6-bf26c59c1d94 | 2024-04-03T03:13:46 | BROKEN | IDLE (None) | Operation: INSTANTIATING.92d4c589-a8ea- | | | | | | | 42ec-92f3-ec413aaf86b7, Stage 2/5: | | | | | | | deployment of KDUs, VMs and execution | | | | | | | environments. | | | | | | | Detail: Deploying KDU haproxy: E0403 | | | | | | | 03:13:49.347147 275 memcache.go:265] | | | | | | | couldn't get current server API group | | | | | | | list: the server has asked for the | | | | | | | client to provide credentials | | | | | | | E0403 03:13:49.357255 275 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:13:49.359972 275 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:13:49.362433 275 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:13:49.364567 275 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | error: You must be logged in to the | | | | | | | server (the server has asked for the | | | | | | | client to provide credentials). | | | | | | | Deploying KDU ldap: E0403 | | | | | | | 03:13:49.517079 282 memcache.go:265] | | | | | | | couldn't get current server API group | | | | | | | list: the server has asked for the | | | | | | | client to provide credentials | | | | | | | E0403 03:13:49.519123 282 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:13:49.523318 282 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:13:49.526729 282 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | E0403 03:13:49.528909 282 | | | | | | | memcache.go:265] couldn't get current | | | | | | | server API group list: the server has | | | | | | | asked for the client to provide | | | | | | | credentials | | | | | | | error: You must be logged in to the | | | | | | | server (the server has asked for the | | | | | | | client to provide credentials) | | sol003-instance-ns | 62bf6c7f-d696-4837-ad3b-1849a38e8602 | 2024-04-03T04:20:18 | BROKEN | IDLE (None) | Operation: INSTANTIATING.9edccd3f-a560- | | | | | | | 4070-8bf1-0a513a12f4ba, 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-3cf760df-7ed2-41e0-8f0e-33eefad72109'] | +--------------------+--------------------------------------+---------------------+----------+-------------------+------------------------------------------+ To get the history of all operations over a NS, run "osm ns-op-list NS_ID" For more details on the current operation, run "osm ns-op-show 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 | +--------------------------------------+------+--------------------------------------+------------------+--------------------+--------------------------------------+------------+ | 4ed1f42d-bbbd-4a71-905d-aa08bd877a38 | - | 636ca116-69ed-45c9-b91e-96c7e441a1d8 | openldap | openldap_knf | 7a8df917-c55f-4ae7-a49d-b123d795de17 | None | | d12f3a88-58d5-4b70-9457-9afec727e653 | - | 88947844-0671-4026-8e01-f945ec62a776 | openldap | openldap_knf | ba54a551-ceae-4c1d-94f4-7c80daa8a7f0 | None | | 30036867-fbb6-48c0-92af-fa5155ebf9aa | - | 8c816366-0e1a-4dd7-91b6-bf26c59c1d94 | two_helm_oci | two_helm_oci_knf | 7a8df917-c55f-4ae7-a49d-b123d795de17 | None | | 7774e40e-7aca-49dc-8572-b3a207a4eb58 | - | 62bf6c7f-d696-4837-ad3b-1849a38e8602 | 1 | hackfest_basic-vnf | 7a8df917-c55f-4ae7-a49d-b123d795de17 | 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} = 62bf6c7f-d696-4837-ad3b-1849a38e8602 ${stdout} Logs the given message with the given level. 62bf6c7f-d696-4837-ad3b-1849a38e8602 ${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} = 62bf6c7f-d696-4837-ad3b-1849a38e8602 ${NS_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NS_ID} = 62bf6c7f-d696-4837-ad3b-1849a38e8602 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 62bf6c7f-d696-4837-ad3b-1849a38e8602 --literal | grep nsd-id | awk '{print $2}' 2>&1'. ${stdout} = 32506194-62b1-4491-9c5a-227bf6936d96 ${stdout} Logs the given message with the given level. 32506194-62b1-4491-9c5a-227bf6936d96 ${stdout} ${id} = 32506194-62b1-4491-9c5a-227bf6936d96 ${NSD_ID} ${id} Makes a variable available everywhere within the scope of the current suite. ${NSD_ID} = 32506194-62b1-4491-9c5a-227bf6936d96 ${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 32506194-62b1-4491-9c5a-227bf6936d96 --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 62bf6c7f-d696-4837-ad3b-1849a38e8602 --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.136 ${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.136' 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.136: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.136: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.136: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.136:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:20:50 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/LUABnGweprD8XbHjfi33s8KATWrxAlKA', 'Content-Length': '653', 'Set-Cookie': 'session_id=5d7d2584e0e592ca48c9627c429820a33ab648b1; expires=Wed, 03 Apr 2024 05:20:50 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1712118050.037778, "expires": 1712121650.037778, "_id": "LUABnGweprD8XbHjfi33s8KATWrxAlKA", "id": "LUABnGweprD8XbHjfi33s8KATWrxAlKA", "project_id": "906e76e1-3d4d-405e-9aef-801e4573a3ab", "project_name": "admin", "username": "admin", "user_id": "28afb60f-eaac-4d9e-bd83-f9227dcf3eda", "admin": true, "roles": [ { "name": "system_admin", "id": "15a84db6-68cf-4649-b63d-db1bf30e5d57" } ], "login_count": 0, "last_login": 1712118048.8195348, "admin_show": true, "user_show": false, "remote_port": 5682, "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} = ['LUABnGweprD8XbHjfi33s8KATWrxAlKA', '15a84db6-68cf-4649-b63d-db1bf30e5d57'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = LUABnGweprD8XbHjfi33s8KATWrxAlKA ${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.136: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 LUABnGweprD8XbHjfi33s8KATWrxAlKA } ${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.136:9999/osm/vnflcm/v1/vnf_instances/7774e40e-7aca-49dc-8572-b3a207a4eb58/terminate path_url=/osm/vnflcm/v1/vnf_instances/7774e40e-7aca-49dc-8572-b3a207a4eb58/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 LUABnGweprD8XbHjfi33s8KATWrxAlKA', 'Content-Length': '66'} body=b'{"terminationType": "GRACEFUL", "gracefulTerminationTimeout": "5"}' POST Response : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_instances/7774e40e-7aca-49dc-8572-b3a207a4eb58/terminate status=202, reason=Accepted headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:20:53 GMT', 'Location': '/osm/vnflcm/v1/vnf_lcm_op_occs/dd5ad272-b47a-4ac7-9af3-681394eb7a0f', 'Content-Length': '53', 'Set-Cookie': 'session_id=2855f5c56dc883eb2946bbd41ad9f705c81f61e0; expires=Wed, 03 Apr 2024 05:20:53 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "id": "dd5ad272-b47a-4ac7-9af3-681394eb7a0f" } ${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} = ['dd5ad272-b47a-4ac7-9af3-681394eb7a0f'] ${terminateid} ${id[0]} Returns the given values which can then be assigned to a variables. ${terminateid} = dd5ad272-b47a-4ac7-9af3-681394eb7a0f ${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.136: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 LUABnGweprD8XbHjfi33s8KATWrxAlKA } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/dd5ad272-b47a-4ac7-9af3-681394eb7a0f path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/dd5ad272-b47a-4ac7-9af3-681394eb7a0f headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer LUABnGweprD8XbHjfi33s8KATWrxAlKA'} body=None GET Response : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/dd5ad272-b47a-4ac7-9af3-681394eb7a0f status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:20:53 GMT', 'Content-Length': '1090', 'Set-Cookie': 'session_id=1067588d623f97472386912bf9769fbc2f072a4e; expires=Wed, 03 Apr 2024 05:20:53 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "dd5ad272-b47a-4ac7-9af3-681394eb7a0f", "id": "dd5ad272-b47a-4ac7-9af3-681394eb7a0f", "operationState": "PROCESSING", "queuePosition": 0, "stage": "Stage 3/3 delete all.", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1712118053.1556406, "lcmOperationType": "terminate", "startTime": 1712118053.1556406, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712118053.1556823, "modified": 1712118053.2727818, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Stage 3/3 delete all. 0/1. VIM: (progress 0/4)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/dd5ad272-b47a-4ac7-9af3-681394eb7a0f", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/7774e40e-7aca-49dc-8572-b3a207a4eb58" }, "vnfInstanceId": "7774e40e-7aca-49dc-8572-b3a207a4eb58" } ${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} = ['dd5ad272-b47a-4ac7-9af3-681394eb7a0f'] ${LcmopsTerminate[0]} Logs the given message with the given level. dd5ad272-b47a-4ac7-9af3-681394eb7a0f ${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.136: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 LUABnGweprD8XbHjfi33s8KATWrxAlKA } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/dd5ad272-b47a-4ac7-9af3-681394eb7a0f path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/dd5ad272-b47a-4ac7-9af3-681394eb7a0f headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer LUABnGweprD8XbHjfi33s8KATWrxAlKA'} body=None GET Response : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/dd5ad272-b47a-4ac7-9af3-681394eb7a0f status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:20:53 GMT', 'Content-Length': '1090', 'Set-Cookie': 'session_id=0915d0ac6b5b4a88a4cf1451a44ca162e0cf8358; expires=Wed, 03 Apr 2024 05:20:53 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "dd5ad272-b47a-4ac7-9af3-681394eb7a0f", "id": "dd5ad272-b47a-4ac7-9af3-681394eb7a0f", "operationState": "PROCESSING", "queuePosition": 0, "stage": "Stage 3/3 delete all.", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1712118053.1556406, "lcmOperationType": "terminate", "startTime": 1712118053.1556406, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712118053.1556823, "modified": 1712118053.2727818, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Stage 3/3 delete all. 0/1. VIM: (progress 0/4)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/dd5ad272-b47a-4ac7-9af3-681394eb7a0f", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/7774e40e-7aca-49dc-8572-b3a207a4eb58" }, "vnfInstanceId": "7774e40e-7aca-49dc-8572-b3a207a4eb58" } ${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.136: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 LUABnGweprD8XbHjfi33s8KATWrxAlKA } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/dd5ad272-b47a-4ac7-9af3-681394eb7a0f path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/dd5ad272-b47a-4ac7-9af3-681394eb7a0f headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer LUABnGweprD8XbHjfi33s8KATWrxAlKA'} body=None GET Response : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/dd5ad272-b47a-4ac7-9af3-681394eb7a0f status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:21:03 GMT', 'Content-Length': '1090', 'Set-Cookie': 'session_id=00481bf117101624e6ba6937a3c13c26b8768b00; expires=Wed, 03 Apr 2024 05:21:03 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "dd5ad272-b47a-4ac7-9af3-681394eb7a0f", "id": "dd5ad272-b47a-4ac7-9af3-681394eb7a0f", "operationState": "PROCESSING", "queuePosition": 0, "stage": "Stage 3/3 delete all.", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1712118053.1556406, "lcmOperationType": "terminate", "startTime": 1712118053.1556406, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712118053.1556823, "modified": 1712118053.2727818, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Stage 3/3 delete all. 0/1. VIM: (progress 0/4)", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/dd5ad272-b47a-4ac7-9af3-681394eb7a0f", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/7774e40e-7aca-49dc-8572-b3a207a4eb58" }, "vnfInstanceId": "7774e40e-7aca-49dc-8572-b3a207a4eb58" } ${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.136: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 LUABnGweprD8XbHjfi33s8KATWrxAlKA } ${request_response} Session ${uri} headers=${headers} Sends a GET request on a previously created HTTP Session. GET Request : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/dd5ad272-b47a-4ac7-9af3-681394eb7a0f path_url=/osm/vnflcm/v1/vnf_lcm_op_occs/dd5ad272-b47a-4ac7-9af3-681394eb7a0f headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer LUABnGweprD8XbHjfi33s8KATWrxAlKA'} body=None GET Response : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_lcm_op_occs/dd5ad272-b47a-4ac7-9af3-681394eb7a0f status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:21:13 GMT', 'Content-Length': '1025', 'Set-Cookie': 'session_id=723b34311864a63f21357e6876adc8f393ee22a8; expires=Wed, 03 Apr 2024 05:21:13 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "_id": "dd5ad272-b47a-4ac7-9af3-681394eb7a0f", "id": "dd5ad272-b47a-4ac7-9af3-681394eb7a0f", "operationState": "COMPLETED", "queuePosition": 0, "stage": "", "errorMessage": null, "detailedStatus": null, "statusEnteredTime": 1712118068.3610094, "lcmOperationType": "terminate", "startTime": 1712118053.1556406, "isAutomaticInvocation": false, "isCancelPending": false, "_admin": { "created": 1712118053.1556823, "modified": 1712118068.361011, "projects_read": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "projects_write": [ "906e76e1-3d4d-405e-9aef-801e4573a3ab" ], "worker": "de63ac20c294" }, "detailed-status": "Done", "_links": { "self": "/osm/vnflcm/v1/vnf_lcm_op_occs/dd5ad272-b47a-4ac7-9af3-681394eb7a0f", "vnfInstance": "/osm/vnflcm/v1/vnf_instances/7774e40e-7aca-49dc-8572-b3a207a4eb58" }, "vnfInstanceId": "7774e40e-7aca-49dc-8572-b3a207a4eb58" } ${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.136 ${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.136' 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.136: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.136: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.136: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.136:9999/osm/admin/v1/tokens status=200, reason=OK headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:21:13 GMT', 'Www-Authenticate': 'Bearer realm="Needed a token or Authorization http header"', 'Location': '/osm/admin/v1/tokens/tmqm0dgwVBjOwnXb8n2t8PbUhYRSgZsR', 'Content-Length': '655', 'Set-Cookie': 'session_id=52b8ace645ad07c4917be1749a8b792047825304; expires=Wed, 03 Apr 2024 05:21:13 GMT; HttpOnly; Max-Age=3600; Path=/; Secure'} body={ "issued_at": 1712118073.5678852, "expires": 1712121673.5678852, "_id": "tmqm0dgwVBjOwnXb8n2t8PbUhYRSgZsR", "id": "tmqm0dgwVBjOwnXb8n2t8PbUhYRSgZsR", "project_id": "906e76e1-3d4d-405e-9aef-801e4573a3ab", "project_name": "admin", "username": "admin", "user_id": "28afb60f-eaac-4d9e-bd83-f9227dcf3eda", "admin": true, "roles": [ { "name": "system_admin", "id": "15a84db6-68cf-4649-b63d-db1bf30e5d57" } ], "login_count": 0, "last_login": 1712118050.037778, "admin_show": true, "user_show": false, "remote_port": 40553, "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} = ['tmqm0dgwVBjOwnXb8n2t8PbUhYRSgZsR', '15a84db6-68cf-4649-b63d-db1bf30e5d57'] ${ACCESS_TOKEN} ${access_token[0]} Makes a variable available everywhere within the scope of the current test. ${ACCESS_TOKEN} = tmqm0dgwVBjOwnXb8n2t8PbUhYRSgZsR ${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.136: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 tmqm0dgwVBjOwnXb8n2t8PbUhYRSgZsR } ${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.136:9999/osm/vnflcm/v1/vnf_instances/7774e40e-7aca-49dc-8572-b3a207a4eb58 path_url=/osm/vnflcm/v1/vnf_instances/7774e40e-7aca-49dc-8572-b3a207a4eb58 headers={'User-Agent': 'python-requests/2.31.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Authorization': 'Bearer tmqm0dgwVBjOwnXb8n2t8PbUhYRSgZsR', 'Content-Length': '0'} body=None DELETE Response : url=https://172.21.248.136:9999/osm/vnflcm/v1/vnf_instances/7774e40e-7aca-49dc-8572-b3a207a4eb58 status=204, reason=No Content headers={'Content-Type': 'application/json; charset=utf-8', 'Server': 'CherryPy/18.8.0', 'Date': 'Wed, 03 Apr 2024 04:21:15 GMT', 'Set-Cookie': 'session_id=9f445b314b97a85806bdbd1fdb232b134cb3469f; expires=Wed, 03 Apr 2024 05:21:15 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