2026-05-14 02:26:40,458 - INFO - Domain Default found not creating
2026-05-14 02:26:40,644 - INFO - Project ctest-TestBasicPolicy-36777376 not found, creating it
2026-05-14 02:26:41,121 - INFO - Created Project:ctest-TestBasicPolicy-36777376, ID : ed351f70-40a8-4637-8aba-0a8bbdf87ee4
2026-05-14 02:26:42,650 - INFO - ================================================================================
2026-05-14 02:26:42,650 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-05-14 02:26:42,650 - 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-14 02:26:42,904 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.25': '0'}} with
2026-05-14 02:26:42,904 - INFO - Initial checks done. Running the testcase now
2026-05-14 02:26:42,904 - INFO -
2026-05-14 02:26:43,470 - DEBUG - Response for create_network : {'network': {'id': '67d0242f-c480-41b5-84a8-b601cf2674db', 'name': 'ctest-vn-77579124', 'tenant_id': 'ed351f7040a846378aba0a8bbdf87ee4', 'project_id': 'ed351f7040a846378aba0a8bbdf87ee4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36777376', 'ctest-vn-77579124'], 'port_security_enabled': True, 'description': ''}}
2026-05-14 02:26:43,650 - DEBUG - Response for create_subnet : {'subnet': {'id': '3a8e3234-2b4d-4190-b41b-3eba5e41d07f', 'name': '', 'tenant_id': 'ed351f7040a846378aba0a8bbdf87ee4', 'network_id': '67d0242f-c480-41b5-84a8-b601cf2674db', 'ip_version': 4, 'cidr': '82.112.89.0/26', 'allocation_pools': [{'start': '82.112.89.2', 'end': '82.112.89.62'}], 'gateway_ip': '82.112.89.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '82.112.89.2', 'tags': [], 'project_id': 'ed351f7040a846378aba0a8bbdf87ee4'}}
2026-05-14 02:26:43,669 - INFO - Created VN ctest-vn-77579124
2026-05-14 02:26:43,722 - DEBUG - VN ctest-vn-77579124 UUID is 67d0242f-c480-41b5-84a8-b601cf2674db
2026-05-14 02:26:44,048 - DEBUG - Response for create_network : {'network': {'id': '648153a5-8066-4729-b9b1-80dfbe19ebea', 'name': 'ctest-vn-36949738', 'tenant_id': 'ed351f7040a846378aba0a8bbdf87ee4', 'project_id': 'ed351f7040a846378aba0a8bbdf87ee4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36777376', 'ctest-vn-36949738'], 'port_security_enabled': True, 'description': ''}}
2026-05-14 02:26:44,275 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c1660bf9-a808-489b-82c7-90eca8d41ff0', 'name': '', 'tenant_id': 'ed351f7040a846378aba0a8bbdf87ee4', 'network_id': '648153a5-8066-4729-b9b1-80dfbe19ebea', 'ip_version': 4, 'cidr': '143.14.210.128/26', 'allocation_pools': [{'start': '143.14.210.130', 'end': '143.14.210.190'}], 'gateway_ip': '143.14.210.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '143.14.210.130', 'tags': [], 'project_id': 'ed351f7040a846378aba0a8bbdf87ee4'}}
2026-05-14 02:26:44,297 - INFO - Created VN ctest-vn-36949738
2026-05-14 02:26:44,350 - DEBUG - VN ctest-vn-36949738 UUID is 648153a5-8066-4729-b9b1-80dfbe19ebea
2026-05-14 02:26:44,466 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-36777376:ctest-vn-77579124, 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-36777376:ctest-vn-36949738, 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-14 02:26:44,761 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '67d0242f-c480-41b5-84a8-b601cf2674db', 'name': 'ctest-vn-77579124', 'tenant_id': 'ed351f7040a846378aba0a8bbdf87ee4', 'project_id': 'ed351f7040a846378aba0a8bbdf87ee4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3a8e3234-2b4d-4190-b41b-3eba5e41d07f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36777376', 'ctest-vn-77579124'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36777376', 'ctest-policy-allow-all-32414580']], 'subnet_ipam': [{'subnet_cidr': '82.112.89.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-14 02:26:45,003 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '648153a5-8066-4729-b9b1-80dfbe19ebea', 'name': 'ctest-vn-36949738', 'tenant_id': 'ed351f7040a846378aba0a8bbdf87ee4', 'project_id': 'ed351f7040a846378aba0a8bbdf87ee4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c1660bf9-a808-489b-82c7-90eca8d41ff0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36777376', 'ctest-vn-36949738'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36777376', 'ctest-policy-allow-all-32414580']], 'subnet_ipam': [{'subnet_cidr': '143.14.210.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-14 02:26:45,178 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-05-14 02:26:45,475 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-05-14 02:26:45,511 - DEBUG - Requesting: http://10.0.0.141:8082/domain/5e32b91f-9dde-48ed-b852-dc4897e9e6c8
2026-05-14 02:26:45,522 - DEBUG - Requesting: http://10.0.0.141:8082/project/ed351f70-40a8-4637-8aba-0a8bbdf87ee4
2026-05-14 02:26:45,596 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/67d0242f-c480-41b5-84a8-b601cf2674db
2026-05-14 02:26:45,608 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/67d0242f-c480-41b5-84a8-b601cf2674db
2026-05-14 02:26:45,618 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/272d59d6-de72-424b-b3bc-0c377f88d160
2026-05-14 02:26:45,626 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/272d59d6-de72-424b-b3bc-0c377f88d160
2026-05-14 02:26:45,632 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/52b9d9f0-db34-4935-8d9d-b897991f689e
2026-05-14 02:26:45,638 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-14 02:26:45,638 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/67d0242f-c480-41b5-84a8-b601cf2674db
2026-05-14 02:26:45,648 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/272d59d6-de72-424b-b3bc-0c377f88d160
2026-05-14 02:26:45,666 - INFO - Verified VN network id 11 for VN 67d0242f-c480-41b5-84a8-b601cf2674db
2026-05-14 02:26:45,666 - INFO - Verifications in API Server for VN ctest-vn-77579124 passed
2026-05-14 02:26:45,666 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/67d0242f-c480-41b5-84a8-b601cf2674db
2026-05-14 02:26:45,678 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/272d59d6-de72-424b-b3bc-0c377f88d160
2026-05-14 02:26:45,687 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/272d59d6-de72-424b-b3bc-0c377f88d160
2026-05-14 02:26:45,695 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/52b9d9f0-db34-4935-8d9d-b897991f689e
2026-05-14 02:26:45,709 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36777376:ctest-vn-77579124', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36777376', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7480518768641196469', 'uuid-lslong': '9559090327980504283'}, 'enable': 'true', 'created': '2026-05-14T02:26:43', 'last-modified': '2026-05-14T02:26:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.964200'}
2026-05-14 02:26:45,718 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-14 02:26:45,718 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77579124 passed
2026-05-14 02:26:45,718 - DEBUG - ====Verifying policy data for ctest-vn-77579124 in API_Server ======
2026-05-14 02:26:45,719 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-05-14 02:26:45,725 - DEBUG - Requesting: http://10.0.0.141:8082/domain/5e32b91f-9dde-48ed-b852-dc4897e9e6c8
2026-05-14 02:26:45,736 - DEBUG - Requesting: http://10.0.0.141:8082/project/ed351f70-40a8-4637-8aba-0a8bbdf87ee4
2026-05-14 02:26:45,810 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/67d0242f-c480-41b5-84a8-b601cf2674db
2026-05-14 02:26:45,821 - DEBUG - ==>Verifying data for policy with id: b005e719-5618-4e4c-8eee-45097c399b50, fqn: ['default-domain', 'ctest-TestBasicPolicy-36777376', 'ctest-policy-allow-all-32414580']
2026-05-14 02:26:45,821 - INFO - VN ctest-vn-77579124 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-14 02:26:45,821 - DEBUG - Verifying the vn in opserver
2026-05-14 02:26:45,821 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36777376:ctest-vn-77579124 virtual network link through opserver 10.0.0.141
2026-05-14 02:26:45,821 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2026-05-14 02:26:46,121 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2026-05-14 02:26:46,190 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36777376:ctest-vn-77579124', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36777376:ctest-vn-77579124?flat'}
2026-05-14 02:26:46,190 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36777376:ctest-vn-77579124 is found in opserver
2026-05-14 02:26:46,200 - DEBUG - Do not have enough data to verify VN in agent
2026-05-14 02:26:46,204 - DEBUG - VRF ids for VN ctest-vn-77579124: {}
2026-05-14 02:26:46,204 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-05-14 02:26:46,210 - DEBUG - Requesting: http://10.0.0.141:8082/domain/5e32b91f-9dde-48ed-b852-dc4897e9e6c8
2026-05-14 02:26:46,220 - DEBUG - Requesting: http://10.0.0.141:8082/project/ed351f70-40a8-4637-8aba-0a8bbdf87ee4
2026-05-14 02:26:46,292 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/648153a5-8066-4729-b9b1-80dfbe19ebea
2026-05-14 02:26:46,303 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/648153a5-8066-4729-b9b1-80dfbe19ebea
2026-05-14 02:26:46,313 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/ad34ba02-b832-4a1c-aeda-97dd4a9d3193
2026-05-14 02:26:46,320 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/ad34ba02-b832-4a1c-aeda-97dd4a9d3193
2026-05-14 02:26:46,326 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/f5b3908b-5ab8-4b3f-a469-2d19d923d8f0
2026-05-14 02:26:46,332 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-14 02:26:46,332 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/648153a5-8066-4729-b9b1-80dfbe19ebea
2026-05-14 02:26:46,340 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/ad34ba02-b832-4a1c-aeda-97dd4a9d3193
2026-05-14 02:26:46,360 - INFO - Verified VN network id 12 for VN 648153a5-8066-4729-b9b1-80dfbe19ebea
2026-05-14 02:26:46,361 - INFO - Verifications in API Server for VN ctest-vn-36949738 passed
2026-05-14 02:26:46,361 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/648153a5-8066-4729-b9b1-80dfbe19ebea
2026-05-14 02:26:46,371 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/ad34ba02-b832-4a1c-aeda-97dd4a9d3193
2026-05-14 02:26:46,379 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/ad34ba02-b832-4a1c-aeda-97dd4a9d3193
2026-05-14 02:26:46,386 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/f5b3908b-5ab8-4b3f-a469-2d19d923d8f0
2026-05-14 02:26:46,400 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36777376:ctest-vn-36949738', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36777376', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7242161646077364009', 'uuid-lslong': '13380617666349886442'}, 'enable': 'true', 'created': '2026-05-14T02:26:44', 'last-modified': '2026-05-14T02:26:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.423674'}
2026-05-14 02:26:46,406 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-14 02:26:46,406 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36949738 passed
2026-05-14 02:26:46,406 - DEBUG - ====Verifying policy data for ctest-vn-36949738 in API_Server ======
2026-05-14 02:26:46,406 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-05-14 02:26:46,412 - DEBUG - Requesting: http://10.0.0.141:8082/domain/5e32b91f-9dde-48ed-b852-dc4897e9e6c8
2026-05-14 02:26:46,423 - DEBUG - Requesting: http://10.0.0.141:8082/project/ed351f70-40a8-4637-8aba-0a8bbdf87ee4
2026-05-14 02:26:46,493 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/648153a5-8066-4729-b9b1-80dfbe19ebea
2026-05-14 02:26:46,501 - DEBUG - ==>Verifying data for policy with id: b005e719-5618-4e4c-8eee-45097c399b50, fqn: ['default-domain', 'ctest-TestBasicPolicy-36777376', 'ctest-policy-allow-all-32414580']
2026-05-14 02:26:46,501 - INFO - VN ctest-vn-36949738 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-14 02:26:46,502 - DEBUG - Verifying the vn in opserver
2026-05-14 02:26:46,502 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36777376:ctest-vn-36949738 virtual network link through opserver 10.0.0.141
2026-05-14 02:26:46,502 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2026-05-14 02:26:46,511 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36777376:ctest-vn-36949738', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36777376:ctest-vn-36949738?flat'}
2026-05-14 02:26:46,511 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36777376:ctest-vn-36949738 is found in opserver
2026-05-14 02:26:46,522 - DEBUG - Do not have enough data to verify VN in agent
2026-05-14 02:26:46,526 - DEBUG - VRF ids for VN ctest-vn-36949738: {}
2026-05-14 02:26:46,586 - DEBUG - Services list from nova: [