2026-05-04 02:58:54,708 - INFO - Domain Default found not creating 2026-05-04 02:58:54,897 - INFO - Project ctest-TestBasicPolicy-94685079 not found, creating it 2026-05-04 02:58:55,493 - INFO - Created Project:ctest-TestBasicPolicy-94685079, ID : ba03799c-338d-4676-b663-a0fb90ddd7bd 2026-05-04 02:58:57,848 - INFO - ================================================================================ 2026-05-04 02:58:57,848 - INFO - STARTING TEST : test_basic_policy_allow_deny 2026-05-04 02:58:57,848 - 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-05-04 02:58:59,140 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.193': '0', '10.20.0.129': '0'}, '10.0.0.141': {'10.20.0.18': '0', '10.20.0.193': '0'}} with 2026-05-04 02:58:59,140 - INFO - Initial checks done. Running the testcase now 2026-05-04 02:58:59,141 - INFO - 2026-05-04 02:58:59,829 - DEBUG - Response for create_network : {'network': {'id': '0c1d39a5-5c18-45b1-876a-fd9229bfbf4f', 'name': 'ctest-vn-03593203', 'tenant_id': 'ba03799c338d4676b663a0fb90ddd7bd', 'project_id': 'ba03799c338d4676b663a0fb90ddd7bd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94685079', 'ctest-vn-03593203'], 'port_security_enabled': True, 'description': ''}} 2026-05-04 02:59:00,070 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd3208623-8235-4e5d-92ea-c890732277e0', 'name': '', 'tenant_id': 'ba03799c338d4676b663a0fb90ddd7bd', 'network_id': '0c1d39a5-5c18-45b1-876a-fd9229bfbf4f', 'ip_version': 4, 'cidr': '122.154.147.64/26', 'allocation_pools': [{'start': '122.154.147.66', 'end': '122.154.147.126'}], 'gateway_ip': '122.154.147.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '122.154.147.66', 'tags': [], 'project_id': 'ba03799c338d4676b663a0fb90ddd7bd'}} 2026-05-04 02:59:00,096 - INFO - Created VN ctest-vn-03593203 2026-05-04 02:59:00,110 - DEBUG - VN ctest-vn-03593203 UUID is 0c1d39a5-5c18-45b1-876a-fd9229bfbf4f 2026-05-04 02:59:00,512 - DEBUG - Response for create_network : {'network': {'id': 'b1106c96-fce9-4dfc-9b0f-0d353c470dc5', 'name': 'ctest-vn-23310189', 'tenant_id': 'ba03799c338d4676b663a0fb90ddd7bd', 'project_id': 'ba03799c338d4676b663a0fb90ddd7bd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94685079', 'ctest-vn-23310189'], 'port_security_enabled': True, 'description': ''}} 2026-05-04 02:59:00,772 - DEBUG - Response for create_subnet : {'subnet': {'id': '52e4d33d-0388-4e69-aa55-f8da8484d016', 'name': '', 'tenant_id': 'ba03799c338d4676b663a0fb90ddd7bd', 'network_id': 'b1106c96-fce9-4dfc-9b0f-0d353c470dc5', 'ip_version': 4, 'cidr': '34.226.7.64/26', 'allocation_pools': [{'start': '34.226.7.66', 'end': '34.226.7.126'}], 'gateway_ip': '34.226.7.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34.226.7.66', 'tags': [], 'project_id': 'ba03799c338d4676b663a0fb90ddd7bd'}} 2026-05-04 02:59:00,795 - INFO - Created VN ctest-vn-23310189 2026-05-04 02:59:00,812 - DEBUG - VN ctest-vn-23310189 UUID is b1106c96-fce9-4dfc-9b0f-0d353c470dc5 2026-05-04 02:59:00,902 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-94685079:ctest-vn-03593203, 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-94685079:ctest-vn-23310189, 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-05-04 02:59:01,331 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0c1d39a5-5c18-45b1-876a-fd9229bfbf4f', 'name': 'ctest-vn-03593203', 'tenant_id': 'ba03799c338d4676b663a0fb90ddd7bd', 'project_id': 'ba03799c338d4676b663a0fb90ddd7bd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d3208623-8235-4e5d-92ea-c890732277e0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94685079', 'ctest-vn-03593203'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94685079', 'ctest-policy-allow-all-45076688']], 'subnet_ipam': [{'subnet_cidr': '122.154.147.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-04 02:59:01,589 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b1106c96-fce9-4dfc-9b0f-0d353c470dc5', 'name': 'ctest-vn-23310189', 'tenant_id': 'ba03799c338d4676b663a0fb90ddd7bd', 'project_id': 'ba03799c338d4676b663a0fb90ddd7bd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['52e4d33d-0388-4e69-aa55-f8da8484d016'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94685079', 'ctest-vn-23310189'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94685079', 'ctest-policy-allow-all-45076688']], 'subnet_ipam': [{'subnet_cidr': '34.226.7.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-04 02:59:01,730 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-05-04 02:59:02,041 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-05-04 02:59:02,078 - DEBUG - Requesting: http://10.0.0.129:8082/domain/de444c91-1c2e-4590-9dad-cf698cd9c62c 2026-05-04 02:59:02,094 - DEBUG - Requesting: http://10.0.0.129:8082/project/ba03799c-338d-4676-b663-a0fb90ddd7bd 2026-05-04 02:59:02,205 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/0c1d39a5-5c18-45b1-876a-fd9229bfbf4f 2026-05-04 02:59:02,220 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/0c1d39a5-5c18-45b1-876a-fd9229bfbf4f 2026-05-04 02:59:02,235 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/69851dc1-e289-444d-9327-106d95e6e770 2026-05-04 02:59:02,246 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/69851dc1-e289-444d-9327-106d95e6e770 2026-05-04 02:59:02,256 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/5019c7ae-0ef0-4d91-9321-dcb483f057a5 2026-05-04 02:59:02,264 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-04 02:59:02,264 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/0c1d39a5-5c18-45b1-876a-fd9229bfbf4f 2026-05-04 02:59:02,276 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/69851dc1-e289-444d-9327-106d95e6e770 2026-05-04 02:59:02,299 - INFO - Verified VN network id 12 for VN 0c1d39a5-5c18-45b1-876a-fd9229bfbf4f 2026-05-04 02:59:02,299 - INFO - Verifications in API Server for VN ctest-vn-03593203 passed 2026-05-04 02:59:02,299 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/0c1d39a5-5c18-45b1-876a-fd9229bfbf4f 2026-05-04 02:59:02,311 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/69851dc1-e289-444d-9327-106d95e6e770 2026-05-04 02:59:02,319 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/69851dc1-e289-444d-9327-106d95e6e770 2026-05-04 02:59:02,328 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/5019c7ae-0ef0-4d91-9321-dcb483f057a5 2026-05-04 02:59:02,343 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94685079:ctest-vn-03593203', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94685079', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '872917285157225905', 'uuid-lslong': '9757890346859085647'}, 'enable': 'true', 'created': '2026-05-04T02:58:59', 'last-modified': '2026-05-04T02:59:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.104530'} 2026-05-04 02:59:02,349 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-04 02:59:02,355 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94685079:ctest-vn-03593203', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94685079', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '872917285157225905', 'uuid-lslong': '9757890346859085647'}, 'enable': 'true', 'created': '2026-05-04T02:58:59', 'last-modified': '2026-05-04T02:59:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.119182'} 2026-05-04 02:59:02,361 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-04 02:59:02,370 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94685079:ctest-vn-03593203', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94685079', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '872917285157225905', 'uuid-lslong': '9757890346859085647'}, 'enable': 'true', 'created': '2026-05-04T02:58:59', 'last-modified': '2026-05-04T02:59:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.127808'} 2026-05-04 02:59:02,377 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-04 02:59:02,377 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03593203 passed 2026-05-04 02:59:02,377 - DEBUG - ====Verifying policy data for ctest-vn-03593203 in API_Server ====== 2026-05-04 02:59:02,377 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-05-04 02:59:02,384 - DEBUG - Requesting: http://10.0.0.129:8082/domain/de444c91-1c2e-4590-9dad-cf698cd9c62c 2026-05-04 02:59:02,395 - DEBUG - Requesting: http://10.0.0.129:8082/project/ba03799c-338d-4676-b663-a0fb90ddd7bd 2026-05-04 02:59:02,498 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/0c1d39a5-5c18-45b1-876a-fd9229bfbf4f 2026-05-04 02:59:02,515 - DEBUG - ==>Verifying data for policy with id: a678282c-acfe-4872-b725-c770a086259d, fqn: ['default-domain', 'ctest-TestBasicPolicy-94685079', 'ctest-policy-allow-all-45076688'] 2026-05-04 02:59:02,515 - INFO - VN ctest-vn-03593203 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-04 02:59:02,515 - DEBUG - Verifying the vn in opserver 2026-05-04 02:59:02,515 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94685079:ctest-vn-03593203 virtual network link through opserver 10.0.0.129 2026-05-04 02:59:02,516 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-05-04 02:59:02,837 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-05-04 02:59:02,919 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94685079:ctest-vn-03593203', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94685079:ctest-vn-03593203?flat'} 2026-05-04 02:59:02,919 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94685079:ctest-vn-03593203 virtual network link through opserver 10.0.0.50 2026-05-04 02:59:02,919 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-05-04 02:59:03,232 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-05-04 02:59:03,312 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94685079:ctest-vn-03593203', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94685079:ctest-vn-03593203?flat'} 2026-05-04 02:59:03,312 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94685079:ctest-vn-03593203 virtual network link through opserver 10.0.0.249 2026-05-04 02:59:03,312 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-05-04 02:59:03,614 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-05-04 02:59:03,690 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94685079:ctest-vn-03593203', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94685079:ctest-vn-03593203?flat'} 2026-05-04 02:59:03,690 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94685079:ctest-vn-03593203 is found in opserver 2026-05-04 02:59:03,717 - DEBUG - Do not have enough data to verify VN in agent 2026-05-04 02:59:03,727 - DEBUG - VRF ids for VN ctest-vn-03593203: {} 2026-05-04 02:59:03,727 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-05-04 02:59:03,734 - DEBUG - Requesting: http://10.0.0.129:8082/domain/de444c91-1c2e-4590-9dad-cf698cd9c62c 2026-05-04 02:59:03,753 - DEBUG - Requesting: http://10.0.0.129:8082/project/ba03799c-338d-4676-b663-a0fb90ddd7bd 2026-05-04 02:59:03,865 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/b1106c96-fce9-4dfc-9b0f-0d353c470dc5 2026-05-04 02:59:03,878 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/b1106c96-fce9-4dfc-9b0f-0d353c470dc5 2026-05-04 02:59:03,889 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/aee57869-e4db-4725-b789-acf2caf819fb 2026-05-04 02:59:03,898 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/aee57869-e4db-4725-b789-acf2caf819fb 2026-05-04 02:59:03,906 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/f371c7d6-b85d-4307-abe0-8ed46bfd43fa 2026-05-04 02:59:03,914 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-05-04 02:59:03,914 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/b1106c96-fce9-4dfc-9b0f-0d353c470dc5 2026-05-04 02:59:03,926 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/aee57869-e4db-4725-b789-acf2caf819fb 2026-05-04 02:59:03,943 - INFO - Verified VN network id 13 for VN b1106c96-fce9-4dfc-9b0f-0d353c470dc5 2026-05-04 02:59:03,943 - INFO - Verifications in API Server for VN ctest-vn-23310189 passed 2026-05-04 02:59:03,943 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/b1106c96-fce9-4dfc-9b0f-0d353c470dc5 2026-05-04 02:59:03,954 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/aee57869-e4db-4725-b789-acf2caf819fb 2026-05-04 02:59:03,963 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/aee57869-e4db-4725-b789-acf2caf819fb 2026-05-04 02:59:03,972 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/f371c7d6-b85d-4307-abe0-8ed46bfd43fa 2026-05-04 02:59:03,986 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94685079:ctest-vn-23310189', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94685079', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12758817140084657660', 'uuid-lslong': '11173163722825207237'}, 'enable': 'true', 'created': '2026-05-04T02:59:00', 'last-modified': '2026-05-04T02:59:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.447121'} 2026-05-04 02:59:03,993 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-05-04 02:59:04,000 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94685079:ctest-vn-23310189', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94685079', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12758817140084657660', 'uuid-lslong': '11173163722825207237'}, 'enable': 'true', 'created': '2026-05-04T02:59:00', 'last-modified': '2026-05-04T02:59:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.464606'} 2026-05-04 02:59:04,008 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-05-04 02:59:04,014 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94685079:ctest-vn-23310189', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94685079', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12758817140084657660', 'uuid-lslong': '11173163722825207237'}, 'enable': 'true', 'created': '2026-05-04T02:59:00', 'last-modified': '2026-05-04T02:59:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.480690'} 2026-05-04 02:59:04,021 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-05-04 02:59:04,021 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23310189 passed 2026-05-04 02:59:04,021 - DEBUG - ====Verifying policy data for ctest-vn-23310189 in API_Server ====== 2026-05-04 02:59:04,021 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-05-04 02:59:04,029 - DEBUG - Requesting: http://10.0.0.129:8082/domain/de444c91-1c2e-4590-9dad-cf698cd9c62c 2026-05-04 02:59:04,041 - DEBUG - Requesting: http://10.0.0.129:8082/project/ba03799c-338d-4676-b663-a0fb90ddd7bd 2026-05-04 02:59:04,167 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/b1106c96-fce9-4dfc-9b0f-0d353c470dc5 2026-05-04 02:59:04,188 - DEBUG - ==>Verifying data for policy with id: a678282c-acfe-4872-b725-c770a086259d, fqn: ['default-domain', 'ctest-TestBasicPolicy-94685079', 'ctest-policy-allow-all-45076688'] 2026-05-04 02:59:04,188 - INFO - VN ctest-vn-23310189 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-04 02:59:04,188 - DEBUG - Verifying the vn in opserver 2026-05-04 02:59:04,188 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94685079:ctest-vn-23310189 virtual network link through opserver 10.0.0.129 2026-05-04 02:59:04,188 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-05-04 02:59:04,268 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94685079:ctest-vn-23310189', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94685079:ctest-vn-23310189?flat'} 2026-05-04 02:59:04,268 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94685079:ctest-vn-23310189 virtual network link through opserver 10.0.0.50 2026-05-04 02:59:04,268 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-05-04 02:59:04,347 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94685079:ctest-vn-23310189', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94685079:ctest-vn-23310189?flat'} 2026-05-04 02:59:04,347 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94685079:ctest-vn-23310189 virtual network link through opserver 10.0.0.249 2026-05-04 02:59:04,347 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-05-04 02:59:04,438 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94685079:ctest-vn-23310189', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94685079:ctest-vn-23310189?flat'} 2026-05-04 02:59:04,438 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94685079:ctest-vn-23310189 is found in opserver 2026-05-04 02:59:04,468 - DEBUG - Do not have enough data to verify VN in agent 2026-05-04 02:59:04,488 - DEBUG - VRF ids for VN ctest-vn-23310189: {} 2026-05-04 02:59:04,561 - DEBUG - Services list from nova: [, , , ] 2026-05-04 02:59:05,698 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-5740-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-5740-1) 2026-05-04 02:59:07,262 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-5740-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-5740-2) 2026-05-04 02:59:07,262 - INFO - Waiting for VM ctest-TestBasicPolicy-94685079-51364284 to be up.. 2026-05-04 02:59:07,366 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2026-05-04 02:59:12,471 - DEBUG - VM is in ACTIVE state now 2026-05-04 02:59:12,471 - INFO - VM name : ctest-TestBasicPolicy-94685079-51364284 2026-05-04 02:59:12,562 - DEBUG - VM ctest-TestBasicPolicy-94685079-51364284 ID is 93b8313c-5710-43a0-9250-56988f9b71aa 2026-05-04 02:59:12,591 - DEBUG - VM ctest-TestBasicPolicy-94685079-51364284 launched on Node an-jenkins-deploy-platform-ansible-os-5740-1 2026-05-04 02:59:12,677 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/93b8313c-5710-43a0-9250-56988f9b71aa 2026-05-04 02:59:12,977 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/93b8313c-5710-43a0-9250-56988f9b71aa 2026-05-04 02:59:13,012 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/6e61cb42-d2a5-4338-ae21-6cf42bf7d861 2026-05-04 02:59:16,214 - 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 1031ms') 2026-05-04 02:59:16,214 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-94685079-51364284 failed! 2026-05-04 02:59:16,231 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-94685079:ctest-vn-03593203 is 122.154.147.65 and allocation pool is NOT set 2026-05-04 02:59:20,301 - 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 1006ms') 2026-05-04 02:59:20,301 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-94685079-51364284 failed! 2026-05-04 02:59:20,317 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-94685079:ctest-vn-03593203 is 122.154.147.65 and allocation pool is NOT set 2026-05-04 02:59:24,398 - 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 1016ms') 2026-05-04 02:59:24,398 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-94685079-51364284 failed! 2026-05-04 02:59:24,415 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-94685079:ctest-vn-03593203 is 122.154.147.65 and allocation pool is NOT set 2026-05-04 02:59:28,493 - 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 1015ms') 2026-05-04 02:59:28,493 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-94685079-51364284 failed! 2026-05-04 02:59:28,509 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-94685079:ctest-vn-03593203 is 122.154.147.65 and allocation pool is NOT set 2026-05-04 02:59:32,591 - 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-05-04 02:59:32,591 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-94685079-51364284 failed! 2026-05-04 02:59:32,609 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-94685079:ctest-vn-03593203 is 122.154.147.65 and allocation pool is NOT set 2026-05-04 02:59:36,688 - 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 1011ms') 2026-05-04 02:59:36,688 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-94685079-51364284 failed! 2026-05-04 02:59:36,707 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-94685079:ctest-vn-03593203 is 122.154.147.65 and allocation pool is NOT set 2026-05-04 02:59:40,779 - 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-05-04 02:59:40,780 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-94685079-51364284 failed! 2026-05-04 02:59:40,799 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-94685079:ctest-vn-03593203 is 122.154.147.65 and allocation pool is NOT set 2026-05-04 02:59:44,882 - 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 1013ms') 2026-05-04 02:59:44,882 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-94685079-51364284 failed! 2026-05-04 02:59:44,898 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-94685079:ctest-vn-03593203 is 122.154.147.65 and allocation pool is NOT set 2026-05-04 02:59:46,959 - 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.11 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.68 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 3.679/4.893/6.108/1.214 ms') 2026-05-04 02:59:46,959 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-94685079-51364284 passed 2026-05-04 02:59:47,031 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-05-04 02:59:47,031 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-94685079-51364284, IP 122.154.147.67, Port 22 2026-05-04 02:59:47,097 - 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-05-04 02:59:47,224 - DEBUG - VM ctest-TestBasicPolicy-94685079-51364284 is NOT ready for SSH connections, VM status: ACTIVE 2026-05-04 02:59:52,225 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-05-04 02:59:52,225 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-94685079-51364284, IP 122.154.147.67, Port 22 2026-05-04 02:59:52,294 - 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-05-04 02:59:52,405 - DEBUG - VM ctest-TestBasicPolicy-94685079-51364284 is NOT ready for SSH connections, VM status: ACTIVE 2026-05-04 02:59:57,406 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-05-04 02:59:57,406 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-94685079-51364284, IP 122.154.147.67, Port 22 2026-05-04 02:59:57,473 - 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-05-04 02:59:57,575 - DEBUG - VM ctest-TestBasicPolicy-94685079-51364284 is NOT ready for SSH connections, VM status: ACTIVE 2026-05-04 03:00:02,576 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-05-04 03:00:02,576 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-94685079-51364284, IP 122.154.147.67, Port 22 2026-05-04 03:00:02,644 - 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-05-04 03:00:02,764 - DEBUG - VM ctest-TestBasicPolicy-94685079-51364284 is NOT ready for SSH connections, VM status: ACTIVE 2026-05-04 03:00:07,765 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-05-04 03:00:07,765 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-94685079-51364284, IP 122.154.147.67, Port 22 2026-05-04 03:00:07,935 - DEBUG - VM ctest-TestBasicPolicy-94685079-51364284 is ready for SSH connections 2026-05-04 03:00:07,935 - INFO - Waiting for VM ctest-TestBasicPolicy-94685079-60327883 to be up.. 2026-05-04 03:00:08,041 - DEBUG - VM is in ACTIVE state now 2026-05-04 03:00:08,041 - INFO - VM name : ctest-TestBasicPolicy-94685079-60327883 2026-05-04 03:00:08,156 - DEBUG - VM ctest-TestBasicPolicy-94685079-60327883 ID is 6687840b-cfd0-4e0b-97cd-40f64f5d31fc 2026-05-04 03:00:08,156 - DEBUG - VM ctest-TestBasicPolicy-94685079-60327883 launched on Node an-jenkins-deploy-platform-ansible-os-5740-2 2026-05-04 03:00:08,266 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/6687840b-cfd0-4e0b-97cd-40f64f5d31fc 2026-05-04 03:00:08,279 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/61c208c9-5b4d-4a94-9db5-3d5a2c06f8cc 2026-05-04 03:00:09,466 - 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=2.61 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.44 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 2.435/2.524/2.614/0.089 ms') 2026-05-04 03:00:09,466 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-94685079-60327883 passed 2026-05-04 03:00:09,543 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-05-04 03:00:09,543 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-94685079-60327883, IP 34.226.7.67, Port 22 2026-05-04 03:00:09,612 - 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-05-04 03:00:09,732 - DEBUG - VM ctest-TestBasicPolicy-94685079-60327883 is NOT ready for SSH connections, VM status: ACTIVE 2026-05-04 03:00:14,732 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-05-04 03:00:14,733 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-94685079-60327883, IP 34.226.7.67, Port 22 2026-05-04 03:00:14,904 - DEBUG - VM ctest-TestBasicPolicy-94685079-60327883 is ready for SSH connections 2026-05-04 03:00:14,905 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-05-04 03:00:14,905 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 34.226.7.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2026-05-04 03:00:14,905 - DEBUG - ping -s 56 -c 3 -W 1 34.226.7.67 2026-05-04 03:01:05,210 - DEBUG - PING 34.226.7.67 (34.226.7.67) 56(84) bytes of data. 64 bytes from 34.226.7.67: icmp_req=1 ttl=63 time=8.34 ms 64 bytes from 34.226.7.67: icmp_req=2 ttl=63 time=1.34 ms 64 bytes from 34.226.7.67: icmp_req=3 ttl=63 time=1.56 ms --- 34.226.7.67 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2005ms rtt min/avg/max/mdev = 1.349/3.753/8.345/3.248 ms 2026-05-04 03:01:05,210 - INFO - Ping to IP 34.226.7.67 from VM ctest-TestBasicPolicy-94685079-51364284 passed 2026-05-04 03:01:05,469 - DEBUG - Policy Update Response {"network-policy": {"uuid": "a678282c-acfe-4872-b725-c770a086259d", "href": "http://10.0.0.249:8082/network-policy/a678282c-acfe-4872-b725-c770a086259d"}} 2026-05-04 03:01:05,469 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-05-04 03:01:05,469 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 34.226.7.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2026-05-04 03:01:05,470 - DEBUG - ping -s 56 -c 3 -W 1 34.226.7.67 2026-05-04 03:01:08,960 - DEBUG - PING 34.226.7.67 (34.226.7.67) 56(84) bytes of data. 64 bytes from 34.226.7.67: icmp_req=1 ttl=63 time=2.98 ms --- 34.226.7.67 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2012ms rtt min/avg/max/mdev = 2.989/2.989/2.989/0.000 ms 2026-05-04 03:01:08,960 - WARNING - Ping to IP 34.226.7.67 from VM ctest-TestBasicPolicy-94685079-51364284 failed 2026-05-04 03:01:08,960 - INFO - Deleting VM ctest-TestBasicPolicy-94685079-60327883 2026-05-04 03:01:09,059 - INFO - Deleting VM ctest-TestBasicPolicy-94685079-51364284 2026-05-04 03:01:09,586 - INFO - Deleted policy ctest-policy-allow-all-45076688 2026-05-04 03:01:09,586 - INFO - Deleting VN ctest-vn-23310189 2026-05-04 03:01:09,650 - DEBUG - VN b1106c96-fce9-4dfc-9b0f-0d353c470dc5 still in use: Unable to complete operation on network b1106c96-fce9-4dfc-9b0f-0d353c470dc5. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-3cc305db-0b5b-42c0-94d6-c7e1cca4c631'] 2026-05-04 03:01:09,650 - WARNING - Deleting VN ctest-vn-23310189 failed..Will retry 2026-05-04 03:01:11,938 - DEBUG - Response for deleting network () 2026-05-04 03:01:11,938 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/aee57869-e4db-4725-b789-acf2caf819fb 2026-05-04 03:01:11,946 - DEBUG - Response Code: 404 2026-05-04 03:01:11,946 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-05-04 03:01:11,953 - DEBUG - Requesting: http://10.0.0.129:8082/domain/de444c91-1c2e-4590-9dad-cf698cd9c62c 2026-05-04 03:01:12,002 - DEBUG - Requesting: http://10.0.0.129:8082/project/ba03799c-338d-4676-b663-a0fb90ddd7bd 2026-05-04 03:01:12,128 - INFO - Validated that VN ctest-vn-23310189 is not found in API Server 2026-05-04 03:01:12,140 - DEBUG - VN ctest-vn-23310189 is not present in Agent 10.0.0.41 2026-05-04 03:01:12,153 - DEBUG - VN ctest-vn-23310189 is not present in Agent 10.0.0.141 2026-05-04 03:01:12,153 - INFO - Validated that VN ctest-vn-23310189 is not in any agent 2026-05-04 03:01:12,190 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-23310189 info 2026-05-04 03:01:12,191 - INFO - Deleting VN ctest-vn-03593203 2026-05-04 03:01:12,401 - DEBUG - Response for deleting network () 2026-05-04 03:01:12,401 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/69851dc1-e289-444d-9327-106d95e6e770 2026-05-04 03:01:12,407 - DEBUG - Response Code: 404 2026-05-04 03:01:12,408 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-05-04 03:01:12,421 - DEBUG - Requesting: http://10.0.0.129:8082/domain/de444c91-1c2e-4590-9dad-cf698cd9c62c 2026-05-04 03:01:12,479 - DEBUG - Requesting: http://10.0.0.129:8082/project/ba03799c-338d-4676-b663-a0fb90ddd7bd 2026-05-04 03:01:12,591 - INFO - Validated that VN ctest-vn-03593203 is not found in API Server 2026-05-04 03:01:12,605 - DEBUG - VN ctest-vn-03593203 is not present in Agent 10.0.0.41 2026-05-04 03:01:12,621 - DEBUG - VN ctest-vn-03593203 is not present in Agent 10.0.0.141 2026-05-04 03:01:12,621 - INFO - Validated that VN ctest-vn-03593203 is not in any agent 2026-05-04 03:01:12,661 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-03593203 info 2026-05-04 03:01:13,936 - DEBUG - No XMPP flaps were noticed during the test
2026-05-04 03:01:13,937 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:02:16]
2026-05-04 03:01:13,937 - INFO - -------------------------------------------------------------------------------- 2026-05-04 03:01:14,691 - INFO - Deleted project: ctest-TestBasicPolicy-94685079, ID : ba03799c-338d-4676-b663-a0fb90ddd7bd