2026-06-03 17:49:48,424 - INFO - Domain Default found not creating 2026-06-03 17:49:48,948 - INFO - Project ctest-TestBasicPolicy-91142123 not found, creating it 2026-06-03 17:49:49,470 - INFO - Created Project:ctest-TestBasicPolicy-91142123, ID : 318aa71d-d42a-40f2-9679-59de92028f07 2026-06-03 17:49:51,339 - INFO - ================================================================================ 2026-06-03 17:49:51,339 - INFO - STARTING TEST : test_basic_policy_allow_deny 2026-06-03 17:49:51,340 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2026-06-03 17:49:52,643 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.25': '0', '10.20.0.17': '0'}, '10.0.0.19': {'10.20.0.25': '0', '10.20.0.17': '0'}} with 2026-06-03 17:49:52,643 - INFO - Initial checks done. Running the testcase now 2026-06-03 17:49:52,643 - INFO - 2026-06-03 17:49:53,342 - DEBUG - Response for create_network : {'network': {'id': '5e26eb25-9b3f-4b11-b208-c80984cae1d7', 'name': 'ctest-vn-61318909', 'tenant_id': '318aa71dd42a40f2967959de92028f07', 'project_id': '318aa71dd42a40f2967959de92028f07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91142123', 'ctest-vn-61318909'], 'port_security_enabled': True, 'description': ''}} 2026-06-03 17:49:53,712 - DEBUG - Response for create_subnet : {'subnet': {'id': '3dea8d16-6a1d-44cc-8e62-3d2a47455a5b', 'name': '', 'tenant_id': '318aa71dd42a40f2967959de92028f07', 'network_id': '5e26eb25-9b3f-4b11-b208-c80984cae1d7', 'ip_version': 4, 'cidr': '1.124.184.64/26', 'allocation_pools': [{'start': '1.124.184.66', 'end': '1.124.184.126'}], 'gateway_ip': '1.124.184.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '1.124.184.66', 'tags': [], 'project_id': '318aa71dd42a40f2967959de92028f07'}} 2026-06-03 17:49:53,735 - INFO - Created VN ctest-vn-61318909 2026-06-03 17:49:53,752 - DEBUG - VN ctest-vn-61318909 UUID is 5e26eb25-9b3f-4b11-b208-c80984cae1d7 2026-06-03 17:49:54,157 - DEBUG - Response for create_network : {'network': {'id': '30c55ef8-c8ad-4bab-b97c-ba36d37c5ca3', 'name': 'ctest-vn-92936576', 'tenant_id': '318aa71dd42a40f2967959de92028f07', 'project_id': '318aa71dd42a40f2967959de92028f07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91142123', 'ctest-vn-92936576'], 'port_security_enabled': True, 'description': ''}} 2026-06-03 17:49:54,441 - DEBUG - Response for create_subnet : {'subnet': {'id': '1719634b-b732-47fd-b734-40b53e0ab9d6', 'name': '', 'tenant_id': '318aa71dd42a40f2967959de92028f07', 'network_id': '30c55ef8-c8ad-4bab-b97c-ba36d37c5ca3', 'ip_version': 4, 'cidr': '40.67.89.128/26', 'allocation_pools': [{'start': '40.67.89.130', 'end': '40.67.89.190'}], 'gateway_ip': '40.67.89.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.67.89.130', 'tags': [], 'project_id': '318aa71dd42a40f2967959de92028f07'}} 2026-06-03 17:49:54,467 - INFO - Created VN ctest-vn-92936576 2026-06-03 17:49:54,480 - DEBUG - VN ctest-vn-92936576 UUID is 30c55ef8-c8ad-4bab-b97c-ba36d37c5ca3 2026-06-03 17:49:54,614 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-91142123:ctest-vn-61318909, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-91142123:ctest-vn-92936576, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2026-06-03 17:49:54,957 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5e26eb25-9b3f-4b11-b208-c80984cae1d7', 'name': 'ctest-vn-61318909', 'tenant_id': '318aa71dd42a40f2967959de92028f07', 'project_id': '318aa71dd42a40f2967959de92028f07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3dea8d16-6a1d-44cc-8e62-3d2a47455a5b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91142123', 'ctest-vn-61318909'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91142123', 'ctest-policy-allow-all-92774965']], 'subnet_ipam': [{'subnet_cidr': '1.124.184.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-03 17:49:55,192 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '30c55ef8-c8ad-4bab-b97c-ba36d37c5ca3', 'name': 'ctest-vn-92936576', 'tenant_id': '318aa71dd42a40f2967959de92028f07', 'project_id': '318aa71dd42a40f2967959de92028f07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1719634b-b732-47fd-b734-40b53e0ab9d6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91142123', 'ctest-vn-92936576'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91142123', 'ctest-policy-allow-all-92774965']], 'subnet_ipam': [{'subnet_cidr': '40.67.89.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-03 17:49:55,323 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-03 17:49:55,645 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-03 17:49:55,706 - DEBUG - Requesting: http://10.0.0.50:8082/domain/cfce58c2-bdea-4e41-80d8-e31e3dad5e9f 2026-06-03 17:49:55,725 - DEBUG - Requesting: http://10.0.0.50:8082/project/318aa71d-d42a-40f2-9679-59de92028f07 2026-06-03 17:49:55,860 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5e26eb25-9b3f-4b11-b208-c80984cae1d7 2026-06-03 17:49:55,879 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5e26eb25-9b3f-4b11-b208-c80984cae1d7 2026-06-03 17:49:55,894 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/15c84ab6-e490-40ca-8006-270b960a668a 2026-06-03 17:49:55,906 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/15c84ab6-e490-40ca-8006-270b960a668a 2026-06-03 17:49:55,918 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f2c1dab0-1dc1-4342-a598-b4d458a8882f 2026-06-03 17:49:55,930 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-03 17:49:55,930 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5e26eb25-9b3f-4b11-b208-c80984cae1d7 2026-06-03 17:49:55,943 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/15c84ab6-e490-40ca-8006-270b960a668a 2026-06-03 17:49:55,962 - INFO - Verified VN network id 14 for VN 5e26eb25-9b3f-4b11-b208-c80984cae1d7 2026-06-03 17:49:55,962 - INFO - Verifications in API Server for VN ctest-vn-61318909 passed 2026-06-03 17:49:55,962 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5e26eb25-9b3f-4b11-b208-c80984cae1d7 2026-06-03 17:49:55,976 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/15c84ab6-e490-40ca-8006-270b960a668a 2026-06-03 17:49:55,986 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/15c84ab6-e490-40ca-8006-270b960a668a 2026-06-03 17:49:56,008 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f2c1dab0-1dc1-4342-a598-b4d458a8882f 2026-06-03 17:49:56,025 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91142123:ctest-vn-61318909', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91142123', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6784368435431164689', 'uuid-lslong': '12828723481773007319'}, 'enable': 'true', 'created': '2026-06-03T17:49:53', 'last-modified': '2026-06-03T17:49:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.105613'} 2026-06-03 17:49:56,035 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-03 17:49:56,044 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91142123:ctest-vn-61318909', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91142123', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6784368435431164689', 'uuid-lslong': '12828723481773007319'}, 'enable': 'true', 'created': '2026-06-03T17:49:53', 'last-modified': '2026-06-03T17:49:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.129070'} 2026-06-03 17:49:56,052 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-03 17:49:56,059 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91142123:ctest-vn-61318909', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91142123', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6784368435431164689', 'uuid-lslong': '12828723481773007319'}, 'enable': 'true', 'created': '2026-06-03T17:49:53', 'last-modified': '2026-06-03T17:49:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.138483'} 2026-06-03 17:49:56,065 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-03 17:49:56,066 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61318909 passed 2026-06-03 17:49:56,066 - DEBUG - ====Verifying policy data for ctest-vn-61318909 in API_Server ====== 2026-06-03 17:49:56,066 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-03 17:49:56,075 - DEBUG - Requesting: http://10.0.0.50:8082/domain/cfce58c2-bdea-4e41-80d8-e31e3dad5e9f 2026-06-03 17:49:56,092 - DEBUG - Requesting: http://10.0.0.50:8082/project/318aa71d-d42a-40f2-9679-59de92028f07 2026-06-03 17:49:56,209 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5e26eb25-9b3f-4b11-b208-c80984cae1d7 2026-06-03 17:49:56,229 - DEBUG - ==>Verifying data for policy with id: 58953e71-4935-4583-98f5-945dfac94bc7, fqn: ['default-domain', 'ctest-TestBasicPolicy-91142123', 'ctest-policy-allow-all-92774965'] 2026-06-03 17:49:56,229 - INFO - VN ctest-vn-61318909 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-03 17:49:56,230 - DEBUG - Verifying the vn in opserver 2026-06-03 17:49:56,230 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91142123:ctest-vn-61318909 virtual network link through opserver 10.0.0.50 2026-06-03 17:49:56,230 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-03 17:49:56,546 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-03 17:49:56,617 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91142123:ctest-vn-61318909', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91142123:ctest-vn-61318909?flat'} 2026-06-03 17:49:56,617 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91142123:ctest-vn-61318909 virtual network link through opserver 10.0.0.33 2026-06-03 17:49:56,617 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-03 17:49:56,912 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-03 17:49:56,979 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91142123:ctest-vn-61318909', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91142123:ctest-vn-61318909?flat'} 2026-06-03 17:49:56,979 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91142123:ctest-vn-61318909 virtual network link through opserver 10.0.0.249 2026-06-03 17:49:56,979 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-06-03 17:49:57,276 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-06-03 17:49:57,344 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91142123:ctest-vn-61318909', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91142123:ctest-vn-61318909?flat'} 2026-06-03 17:49:57,344 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91142123:ctest-vn-61318909 is found in opserver 2026-06-03 17:49:57,368 - DEBUG - Do not have enough data to verify VN in agent 2026-06-03 17:49:57,378 - DEBUG - VRF ids for VN ctest-vn-61318909: {} 2026-06-03 17:49:57,379 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-03 17:49:57,386 - DEBUG - Requesting: http://10.0.0.50:8082/domain/cfce58c2-bdea-4e41-80d8-e31e3dad5e9f 2026-06-03 17:49:57,398 - DEBUG - Requesting: http://10.0.0.50:8082/project/318aa71d-d42a-40f2-9679-59de92028f07 2026-06-03 17:49:57,505 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/30c55ef8-c8ad-4bab-b97c-ba36d37c5ca3 2026-06-03 17:49:57,526 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/30c55ef8-c8ad-4bab-b97c-ba36d37c5ca3 2026-06-03 17:49:57,539 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d9c1e347-6436-4cee-b0ff-f436b51a8bbe 2026-06-03 17:49:57,549 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d9c1e347-6436-4cee-b0ff-f436b51a8bbe 2026-06-03 17:49:57,558 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2155ec1a-f3ed-4f9f-8cd1-0a6d0f1f5792 2026-06-03 17:49:57,567 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-06-03 17:49:57,567 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/30c55ef8-c8ad-4bab-b97c-ba36d37c5ca3 2026-06-03 17:49:57,578 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d9c1e347-6436-4cee-b0ff-f436b51a8bbe 2026-06-03 17:49:57,598 - INFO - Verified VN network id 15 for VN 30c55ef8-c8ad-4bab-b97c-ba36d37c5ca3 2026-06-03 17:49:57,598 - INFO - Verifications in API Server for VN ctest-vn-92936576 passed 2026-06-03 17:49:57,598 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/30c55ef8-c8ad-4bab-b97c-ba36d37c5ca3 2026-06-03 17:49:57,614 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d9c1e347-6436-4cee-b0ff-f436b51a8bbe 2026-06-03 17:49:57,626 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d9c1e347-6436-4cee-b0ff-f436b51a8bbe 2026-06-03 17:49:57,636 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2155ec1a-f3ed-4f9f-8cd1-0a6d0f1f5792 2026-06-03 17:49:57,652 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91142123:ctest-vn-92936576', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91142123', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3514319506844240811', 'uuid-lslong': '13365762538767932579'}, 'enable': 'true', 'created': '2026-06-03T17:49:54', 'last-modified': '2026-06-03T17:49:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.504769'} 2026-06-03 17:49:57,661 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-06-03 17:49:57,667 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91142123:ctest-vn-92936576', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91142123', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3514319506844240811', 'uuid-lslong': '13365762538767932579'}, 'enable': 'true', 'created': '2026-06-03T17:49:54', 'last-modified': '2026-06-03T17:49:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.524822'} 2026-06-03 17:49:57,677 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-06-03 17:49:57,685 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91142123:ctest-vn-92936576', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91142123', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3514319506844240811', 'uuid-lslong': '13365762538767932579'}, 'enable': 'true', 'created': '2026-06-03T17:49:54', 'last-modified': '2026-06-03T17:49:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.540795'} 2026-06-03 17:49:57,695 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-06-03 17:49:57,695 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92936576 passed 2026-06-03 17:49:57,695 - DEBUG - ====Verifying policy data for ctest-vn-92936576 in API_Server ====== 2026-06-03 17:49:57,695 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-03 17:49:57,709 - DEBUG - Requesting: http://10.0.0.50:8082/domain/cfce58c2-bdea-4e41-80d8-e31e3dad5e9f 2026-06-03 17:49:57,727 - DEBUG - Requesting: http://10.0.0.50:8082/project/318aa71d-d42a-40f2-9679-59de92028f07 2026-06-03 17:49:57,847 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/30c55ef8-c8ad-4bab-b97c-ba36d37c5ca3 2026-06-03 17:49:57,862 - DEBUG - ==>Verifying data for policy with id: 58953e71-4935-4583-98f5-945dfac94bc7, fqn: ['default-domain', 'ctest-TestBasicPolicy-91142123', 'ctest-policy-allow-all-92774965'] 2026-06-03 17:49:57,862 - INFO - VN ctest-vn-92936576 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-03 17:49:57,862 - DEBUG - Verifying the vn in opserver 2026-06-03 17:49:57,862 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91142123:ctest-vn-92936576 virtual network link through opserver 10.0.0.50 2026-06-03 17:49:57,862 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-03 17:49:57,948 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91142123:ctest-vn-92936576', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91142123:ctest-vn-92936576?flat'} 2026-06-03 17:49:57,948 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91142123:ctest-vn-92936576 virtual network link through opserver 10.0.0.33 2026-06-03 17:49:57,948 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-03 17:49:58,051 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91142123:ctest-vn-92936576', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91142123:ctest-vn-92936576?flat'} 2026-06-03 17:49:58,051 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91142123:ctest-vn-92936576 virtual network link through opserver 10.0.0.249 2026-06-03 17:49:58,051 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-06-03 17:49:58,131 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91142123:ctest-vn-92936576', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91142123:ctest-vn-92936576?flat'} 2026-06-03 17:49:58,131 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91142123:ctest-vn-92936576 is found in opserver 2026-06-03 17:49:58,163 - DEBUG - Do not have enough data to verify VN in agent 2026-06-03 17:49:58,177 - DEBUG - VRF ids for VN ctest-vn-92936576: {} 2026-06-03 17:49:58,235 - DEBUG - Services list from nova: [, , , ] 2026-06-03 17:49:59,330 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-5883-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-5883-1) 2026-06-03 17:50:00,734 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-5883-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-5883-2) 2026-06-03 17:50:00,735 - INFO - Waiting for VM ctest-TestBasicPolicy-91142123-34076612 to be up.. 2026-06-03 17:50:00,825 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2026-06-03 17:50:05,927 - DEBUG - VM is in ACTIVE state now 2026-06-03 17:50:05,927 - INFO - VM name : ctest-TestBasicPolicy-91142123-34076612 2026-06-03 17:50:06,022 - DEBUG - VM ctest-TestBasicPolicy-91142123-34076612 ID is 7d477dff-ccde-4219-91a2-dd8731e282b0 2026-06-03 17:50:06,048 - DEBUG - VM ctest-TestBasicPolicy-91142123-34076612 launched on Node an-jenkins-deploy-platform-ansible-os-5883-1 2026-06-03 17:50:06,149 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/7d477dff-ccde-4219-91a2-dd8731e282b0 2026-06-03 17:50:06,450 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/7d477dff-ccde-4219-91a2-dd8731e282b0 2026-06-03 17:50:06,493 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/f5d29fed-38b3-4325-aa6d-4db227b1711b 2026-06-03 17:50:09,680 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1007ms') 2026-06-03 17:50:09,680 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-91142123-34076612 failed! 2026-06-03 17:50:09,699 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-91142123:ctest-vn-61318909 is 1.124.184.65 and allocation pool is NOT set 2026-06-03 17:50:13,776 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1010ms') 2026-06-03 17:50:13,776 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-91142123-34076612 failed! 2026-06-03 17:50:13,792 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-91142123:ctest-vn-61318909 is 1.124.184.65 and allocation pool is NOT set 2026-06-03 17:50:17,868 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1009ms') 2026-06-03 17:50:17,868 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-91142123-34076612 failed! 2026-06-03 17:50:17,882 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-91142123:ctest-vn-61318909 is 1.124.184.65 and allocation pool is NOT set 2026-06-03 17:50:21,959 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1019ms') 2026-06-03 17:50:21,960 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-91142123-34076612 failed! 2026-06-03 17:50:21,976 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-91142123:ctest-vn-61318909 is 1.124.184.65 and allocation pool is NOT set 2026-06-03 17:50:26,065 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1020ms') 2026-06-03 17:50:26,065 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-91142123-34076612 failed! 2026-06-03 17:50:26,082 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-91142123:ctest-vn-61318909 is 1.124.184.65 and allocation pool is NOT set 2026-06-03 17:50:30,152 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1007ms') 2026-06-03 17:50:30,152 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-91142123-34076612 failed! 2026-06-03 17:50:30,172 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-91142123:ctest-vn-61318909 is 1.124.184.65 and allocation pool is NOT set 2026-06-03 17:50:34,256 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1012ms') 2026-06-03 17:50:34,256 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-91142123-34076612 failed! 2026-06-03 17:50:34,275 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-91142123:ctest-vn-61318909 is 1.124.184.65 and allocation pool is NOT set 2026-06-03 17:50:38,346 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1010ms') 2026-06-03 17:50:38,346 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-91142123-34076612 failed! 2026-06-03 17:50:38,364 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-91142123:ctest-vn-61318909 is 1.124.184.65 and allocation pool is NOT set 2026-06-03 17:50:40,432 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=6.75 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.05 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 1.052/3.898/6.745/2.846 ms') 2026-06-03 17:50:40,432 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-91142123-34076612 passed 2026-06-03 17:50:40,504 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-06-03 17:50:40,504 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-91142123-34076612, IP 1.124.184.67, Port 22 2026-06-03 17:50:40,572 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2026-06-03 17:50:40,670 - DEBUG - VM ctest-TestBasicPolicy-91142123-34076612 is NOT ready for SSH connections, VM status: ACTIVE 2026-06-03 17:50:45,670 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-06-03 17:50:45,670 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-91142123-34076612, IP 1.124.184.67, Port 22 2026-06-03 17:50:45,751 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2026-06-03 17:50:45,873 - DEBUG - VM ctest-TestBasicPolicy-91142123-34076612 is NOT ready for SSH connections, VM status: ACTIVE 2026-06-03 17:50:50,874 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-06-03 17:50:50,874 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-91142123-34076612, IP 1.124.184.67, Port 22 2026-06-03 17:50:50,943 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2026-06-03 17:50:51,059 - DEBUG - VM ctest-TestBasicPolicy-91142123-34076612 is NOT ready for SSH connections, VM status: ACTIVE 2026-06-03 17:50:56,060 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-06-03 17:50:56,060 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-91142123-34076612, IP 1.124.184.67, Port 22 2026-06-03 17:50:56,129 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2026-06-03 17:50:56,229 - DEBUG - VM ctest-TestBasicPolicy-91142123-34076612 is NOT ready for SSH connections, VM status: ACTIVE 2026-06-03 17:51:01,230 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-06-03 17:51:01,230 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-91142123-34076612, IP 1.124.184.67, Port 22 2026-06-03 17:51:01,300 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2026-06-03 17:51:01,400 - DEBUG - VM ctest-TestBasicPolicy-91142123-34076612 is NOT ready for SSH connections, VM status: ACTIVE 2026-06-03 17:51:06,400 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-06-03 17:51:06,401 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-91142123-34076612, IP 1.124.184.67, Port 22 2026-06-03 17:51:06,567 - DEBUG - VM ctest-TestBasicPolicy-91142123-34076612 is ready for SSH connections 2026-06-03 17:51:06,567 - INFO - Waiting for VM ctest-TestBasicPolicy-91142123-98637461 to be up.. 2026-06-03 17:51:06,655 - DEBUG - VM is in ACTIVE state now 2026-06-03 17:51:06,655 - INFO - VM name : ctest-TestBasicPolicy-91142123-98637461 2026-06-03 17:51:06,741 - DEBUG - VM ctest-TestBasicPolicy-91142123-98637461 ID is baf35322-86e0-474c-9cda-d4665791f087 2026-06-03 17:51:06,741 - DEBUG - VM ctest-TestBasicPolicy-91142123-98637461 launched on Node an-jenkins-deploy-platform-ansible-os-5883-2 2026-06-03 17:51:06,830 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/baf35322-86e0-474c-9cda-d4665791f087 2026-06-03 17:51:06,846 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/3aed2a15-2741-499f-b848-cb688b3615e8 2026-06-03 17:51:08,021 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=3.32 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.35 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 3.323/3.338/3.353/0.015 ms') 2026-06-03 17:51:08,021 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-91142123-98637461 passed 2026-06-03 17:51:08,094 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-06-03 17:51:08,094 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-91142123-98637461, IP 40.67.89.131, Port 22 2026-06-03 17:51:08,270 - DEBUG - VM ctest-TestBasicPolicy-91142123-98637461 is ready for SSH connections 2026-06-03 17:51:08,270 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-06-03 17:51:08,270 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 40.67.89.131, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2026-06-03 17:51:08,270 - DEBUG - ping -s 56 -c 3 -W 1 40.67.89.131 2026-06-03 17:51:30,646 - DEBUG - PING 40.67.89.131 (40.67.89.131) 56(84) bytes of data. 64 bytes from 40.67.89.131: icmp_req=1 ttl=63 time=7.54 ms 64 bytes from 40.67.89.131: icmp_req=2 ttl=63 time=2.00 ms 64 bytes from 40.67.89.131: icmp_req=3 ttl=63 time=3.58 ms --- 40.67.89.131 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2004ms rtt min/avg/max/mdev = 2.007/4.381/7.548/2.330 ms 2026-06-03 17:51:30,647 - INFO - Ping to IP 40.67.89.131 from VM ctest-TestBasicPolicy-91142123-34076612 passed 2026-06-03 17:51:30,881 - DEBUG - Policy Update Response {"network-policy": {"uuid": "58953e71-4935-4583-98f5-945dfac94bc7", "href": "http://10.0.0.249:8082/network-policy/58953e71-4935-4583-98f5-945dfac94bc7"}} 2026-06-03 17:51:30,881 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-06-03 17:51:30,881 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 40.67.89.131, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2026-06-03 17:51:30,881 - DEBUG - ping -s 56 -c 3 -W 1 40.67.89.131 2026-06-03 17:51:34,375 - DEBUG - PING 40.67.89.131 (40.67.89.131) 56(84) bytes of data. 64 bytes from 40.67.89.131: icmp_req=1 ttl=63 time=4.15 ms --- 40.67.89.131 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2003ms rtt min/avg/max/mdev = 4.152/4.152/4.152/0.000 ms 2026-06-03 17:51:34,375 - WARNING - Ping to IP 40.67.89.131 from VM ctest-TestBasicPolicy-91142123-34076612 failed 2026-06-03 17:51:34,375 - INFO - Deleting VM ctest-TestBasicPolicy-91142123-98637461 2026-06-03 17:51:34,453 - INFO - Deleting VM ctest-TestBasicPolicy-91142123-34076612 2026-06-03 17:51:34,915 - INFO - Deleted policy ctest-policy-allow-all-92774965 2026-06-03 17:51:34,915 - INFO - Deleting VN ctest-vn-92936576 2026-06-03 17:51:34,986 - DEBUG - VN 30c55ef8-c8ad-4bab-b97c-ba36d37c5ca3 still in use: Unable to complete operation on network 30c55ef8-c8ad-4bab-b97c-ba36d37c5ca3. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e039614d-06e9-4315-91e4-28d518626999'] 2026-06-03 17:51:34,986 - WARNING - Deleting VN ctest-vn-92936576 failed..Will retry 2026-06-03 17:51:37,185 - DEBUG - Response for deleting network () 2026-06-03 17:51:37,185 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d9c1e347-6436-4cee-b0ff-f436b51a8bbe 2026-06-03 17:51:37,204 - DEBUG - Response Code: 404 2026-06-03 17:51:37,205 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-03 17:51:37,217 - DEBUG - Requesting: http://10.0.0.50:8082/domain/cfce58c2-bdea-4e41-80d8-e31e3dad5e9f 2026-06-03 17:51:37,235 - DEBUG - Requesting: http://10.0.0.50:8082/project/318aa71d-d42a-40f2-9679-59de92028f07 2026-06-03 17:51:37,341 - INFO - Validated that VN ctest-vn-92936576 is not found in API Server 2026-06-03 17:51:37,353 - DEBUG - VN ctest-vn-92936576 is not present in Agent 10.0.0.22 2026-06-03 17:51:37,364 - DEBUG - VN ctest-vn-92936576 is not present in Agent 10.0.0.19 2026-06-03 17:51:37,364 - INFO - Validated that VN ctest-vn-92936576 is not in any agent 2026-06-03 17:51:37,404 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-92936576 info 2026-06-03 17:51:37,404 - INFO - Deleting VN ctest-vn-61318909 2026-06-03 17:51:37,587 - DEBUG - Response for deleting network () 2026-06-03 17:51:37,587 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/15c84ab6-e490-40ca-8006-270b960a668a 2026-06-03 17:51:37,593 - DEBUG - Response Code: 404 2026-06-03 17:51:37,593 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-03 17:51:37,601 - DEBUG - Requesting: http://10.0.0.50:8082/domain/cfce58c2-bdea-4e41-80d8-e31e3dad5e9f 2026-06-03 17:51:37,633 - DEBUG - Requesting: http://10.0.0.50:8082/project/318aa71d-d42a-40f2-9679-59de92028f07 2026-06-03 17:51:37,731 - INFO - Validated that VN ctest-vn-61318909 is not found in API Server 2026-06-03 17:51:37,744 - DEBUG - VN ctest-vn-61318909 is not present in Agent 10.0.0.22 2026-06-03 17:51:37,756 - DEBUG - VN ctest-vn-61318909 is not present in Agent 10.0.0.19 2026-06-03 17:51:37,756 - INFO - Validated that VN ctest-vn-61318909 is not in any agent 2026-06-03 17:51:37,794 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-61318909 info 2026-06-03 17:51:39,174 - DEBUG - No XMPP flaps were noticed during the test
2026-06-03 17:51:39,174 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:48]
2026-06-03 17:51:39,174 - INFO - -------------------------------------------------------------------------------- 2026-06-03 17:51:39,965 - INFO - Deleted project: ctest-TestBasicPolicy-91142123, ID : 318aa71d-d42a-40f2-9679-59de92028f07