2026-06-16 15:35:30,387 - INFO - Domain Default found not creating
2026-06-16 15:35:30,513 - INFO - Project ctest-TestBasicPolicy-80889178 not found, creating it
2026-06-16 15:35:30,927 - INFO - Created Project:ctest-TestBasicPolicy-80889178, ID : 4daed8d0-2c4e-4844-b248-fc32e9dbe5e3
2026-06-16 15:35:32,363 - INFO - ================================================================================
2026-06-16 15:35:32,363 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-06-16 15:35:32,363 - 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-16 15:35:32,615 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.254': '0'}} with
2026-06-16 15:35:32,615 - INFO - Initial checks done. Running the testcase now
2026-06-16 15:35:32,615 - INFO -
2026-06-16 15:35:33,189 - DEBUG - Response for create_network : {'network': {'id': 'c24044cc-9db8-4efc-abcf-b684873612d2', 'name': 'ctest-vn-53531048', 'tenant_id': '4daed8d02c4e4844b248fc32e9dbe5e3', 'project_id': '4daed8d02c4e4844b248fc32e9dbe5e3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80889178', 'ctest-vn-53531048'], 'port_security_enabled': True, 'description': ''}}
2026-06-16 15:35:33,344 - DEBUG - Response for create_subnet : {'subnet': {'id': '354f0c3f-314c-4bfb-8862-a46159703ddf', 'name': '', 'tenant_id': '4daed8d02c4e4844b248fc32e9dbe5e3', 'network_id': 'c24044cc-9db8-4efc-abcf-b684873612d2', 'ip_version': 4, 'cidr': '8.45.209.0/26', 'allocation_pools': [{'start': '8.45.209.2', 'end': '8.45.209.62'}], 'gateway_ip': '8.45.209.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.45.209.2', 'tags': [], 'project_id': '4daed8d02c4e4844b248fc32e9dbe5e3'}}
2026-06-16 15:35:33,357 - INFO - Created VN ctest-vn-53531048
2026-06-16 15:35:33,406 - DEBUG - VN ctest-vn-53531048 UUID is c24044cc-9db8-4efc-abcf-b684873612d2
2026-06-16 15:35:33,673 - DEBUG - Response for create_network : {'network': {'id': '8b266d11-f18f-48af-88ae-898b0cafc387', 'name': 'ctest-vn-26146704', 'tenant_id': '4daed8d02c4e4844b248fc32e9dbe5e3', 'project_id': '4daed8d02c4e4844b248fc32e9dbe5e3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80889178', 'ctest-vn-26146704'], 'port_security_enabled': True, 'description': ''}}
2026-06-16 15:35:33,847 - DEBUG - Response for create_subnet : {'subnet': {'id': '345185c0-fb0d-4828-acaf-53005bceeac1', 'name': '', 'tenant_id': '4daed8d02c4e4844b248fc32e9dbe5e3', 'network_id': '8b266d11-f18f-48af-88ae-898b0cafc387', 'ip_version': 4, 'cidr': '70.0.184.64/26', 'allocation_pools': [{'start': '70.0.184.66', 'end': '70.0.184.126'}], 'gateway_ip': '70.0.184.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '70.0.184.66', 'tags': [], 'project_id': '4daed8d02c4e4844b248fc32e9dbe5e3'}}
2026-06-16 15:35:33,859 - INFO - Created VN ctest-vn-26146704
2026-06-16 15:35:33,910 - DEBUG - VN ctest-vn-26146704 UUID is 8b266d11-f18f-48af-88ae-898b0cafc387
2026-06-16 15:35:34,046 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-80889178:ctest-vn-53531048, 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-80889178:ctest-vn-26146704, 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-16 15:35:34,326 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c24044cc-9db8-4efc-abcf-b684873612d2', 'name': 'ctest-vn-53531048', 'tenant_id': '4daed8d02c4e4844b248fc32e9dbe5e3', 'project_id': '4daed8d02c4e4844b248fc32e9dbe5e3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['354f0c3f-314c-4bfb-8862-a46159703ddf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80889178', 'ctest-vn-53531048'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80889178', 'ctest-policy-allow-all-69765595']], 'subnet_ipam': [{'subnet_cidr': '8.45.209.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-16 15:35:34,535 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8b266d11-f18f-48af-88ae-898b0cafc387', 'name': 'ctest-vn-26146704', 'tenant_id': '4daed8d02c4e4844b248fc32e9dbe5e3', 'project_id': '4daed8d02c4e4844b248fc32e9dbe5e3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['345185c0-fb0d-4828-acaf-53005bceeac1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80889178', 'ctest-vn-26146704'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80889178', 'ctest-policy-allow-all-69765595']], 'subnet_ipam': [{'subnet_cidr': '70.0.184.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-16 15:35:34,702 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-06-16 15:35:35,017 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-06-16 15:35:35,039 - DEBUG - Requesting: http://10.0.0.249:8082/domain/e2f0874c-0aab-4053-9e5f-665aec1ff033
2026-06-16 15:35:35,048 - DEBUG - Requesting: http://10.0.0.249:8082/project/4daed8d0-2c4e-4844-b248-fc32e9dbe5e3
2026-06-16 15:35:35,116 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c24044cc-9db8-4efc-abcf-b684873612d2
2026-06-16 15:35:35,126 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c24044cc-9db8-4efc-abcf-b684873612d2
2026-06-16 15:35:35,133 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/7ab29c6f-60c2-4876-88b3-938a70abb49e
2026-06-16 15:35:35,138 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/7ab29c6f-60c2-4876-88b3-938a70abb49e
2026-06-16 15:35:35,143 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/a58a3c98-7bdb-4088-bc83-bdd53ff6acf8
2026-06-16 15:35:35,148 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-16 15:35:35,148 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c24044cc-9db8-4efc-abcf-b684873612d2
2026-06-16 15:35:35,155 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/7ab29c6f-60c2-4876-88b3-938a70abb49e
2026-06-16 15:35:35,166 - INFO - Verified VN network id 11 for VN c24044cc-9db8-4efc-abcf-b684873612d2
2026-06-16 15:35:35,166 - INFO - Verifications in API Server for VN ctest-vn-53531048 passed
2026-06-16 15:35:35,166 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c24044cc-9db8-4efc-abcf-b684873612d2
2026-06-16 15:35:35,173 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/7ab29c6f-60c2-4876-88b3-938a70abb49e
2026-06-16 15:35:35,178 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/7ab29c6f-60c2-4876-88b3-938a70abb49e
2026-06-16 15:35:35,184 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/a58a3c98-7bdb-4088-bc83-bdd53ff6acf8
2026-06-16 15:35:35,193 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80889178:ctest-vn-53531048', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80889178', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13997263287477620476', 'uuid-lslong': '12380314580985189074'}, 'enable': 'true', 'created': '2026-06-16T15:35:33', 'last-modified': '2026-06-16T15:35:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.888680'}
2026-06-16 15:35:35,198 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-16 15:35:35,198 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53531048 passed
2026-06-16 15:35:35,198 - DEBUG - ====Verifying policy data for ctest-vn-53531048 in API_Server ======
2026-06-16 15:35:35,198 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-06-16 15:35:35,202 - DEBUG - Requesting: http://10.0.0.249:8082/domain/e2f0874c-0aab-4053-9e5f-665aec1ff033
2026-06-16 15:35:35,209 - DEBUG - Requesting: http://10.0.0.249:8082/project/4daed8d0-2c4e-4844-b248-fc32e9dbe5e3
2026-06-16 15:35:35,277 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c24044cc-9db8-4efc-abcf-b684873612d2
2026-06-16 15:35:35,285 - DEBUG - ==>Verifying data for policy with id: b0052aa0-b0d6-4346-bf48-8c0a80a3f056, fqn: ['default-domain', 'ctest-TestBasicPolicy-80889178', 'ctest-policy-allow-all-69765595']
2026-06-16 15:35:35,285 - INFO - VN ctest-vn-53531048 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-16 15:35:35,285 - DEBUG - Verifying the vn in opserver
2026-06-16 15:35:35,285 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80889178:ctest-vn-53531048 virtual network link through opserver 10.0.0.249
2026-06-16 15:35:35,285 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-06-16 15:35:35,600 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-06-16 15:35:35,644 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80889178:ctest-vn-53531048', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80889178:ctest-vn-53531048?flat'}
2026-06-16 15:35:35,644 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80889178:ctest-vn-53531048 is found in opserver
2026-06-16 15:35:35,653 - DEBUG - Do not have enough data to verify VN in agent
2026-06-16 15:35:35,656 - DEBUG - VRF ids for VN ctest-vn-53531048: {}
2026-06-16 15:35:35,656 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-06-16 15:35:35,660 - DEBUG - Requesting: http://10.0.0.249:8082/domain/e2f0874c-0aab-4053-9e5f-665aec1ff033
2026-06-16 15:35:35,669 - DEBUG - Requesting: http://10.0.0.249:8082/project/4daed8d0-2c4e-4844-b248-fc32e9dbe5e3
2026-06-16 15:35:35,732 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/8b266d11-f18f-48af-88ae-898b0cafc387
2026-06-16 15:35:35,743 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/8b266d11-f18f-48af-88ae-898b0cafc387
2026-06-16 15:35:35,750 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e45f229f-fa61-4db7-bbd0-5f6b3a333f5f
2026-06-16 15:35:35,755 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e45f229f-fa61-4db7-bbd0-5f6b3a333f5f
2026-06-16 15:35:35,760 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/b2a04d6a-1949-4a20-add4-0689df959aa0
2026-06-16 15:35:35,764 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-16 15:35:35,765 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/8b266d11-f18f-48af-88ae-898b0cafc387
2026-06-16 15:35:35,771 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e45f229f-fa61-4db7-bbd0-5f6b3a333f5f
2026-06-16 15:35:35,783 - INFO - Verified VN network id 12 for VN 8b266d11-f18f-48af-88ae-898b0cafc387
2026-06-16 15:35:35,783 - INFO - Verifications in API Server for VN ctest-vn-26146704 passed
2026-06-16 15:35:35,783 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/8b266d11-f18f-48af-88ae-898b0cafc387
2026-06-16 15:35:35,790 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e45f229f-fa61-4db7-bbd0-5f6b3a333f5f
2026-06-16 15:35:35,795 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e45f229f-fa61-4db7-bbd0-5f6b3a333f5f
2026-06-16 15:35:35,800 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/b2a04d6a-1949-4a20-add4-0689df959aa0
2026-06-16 15:35:35,809 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80889178:ctest-vn-26146704', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80889178', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10026821544221558959', 'uuid-lslong': '9848960665412158343'}, 'enable': 'true', 'created': '2026-06-16T15:35:33', 'last-modified': '2026-06-16T15:35:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.291672'}
2026-06-16 15:35:35,814 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-16 15:35:35,814 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26146704 passed
2026-06-16 15:35:35,815 - DEBUG - ====Verifying policy data for ctest-vn-26146704 in API_Server ======
2026-06-16 15:35:35,815 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-06-16 15:35:35,819 - DEBUG - Requesting: http://10.0.0.249:8082/domain/e2f0874c-0aab-4053-9e5f-665aec1ff033
2026-06-16 15:35:35,827 - DEBUG - Requesting: http://10.0.0.249:8082/project/4daed8d0-2c4e-4844-b248-fc32e9dbe5e3
2026-06-16 15:35:35,895 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/8b266d11-f18f-48af-88ae-898b0cafc387
2026-06-16 15:35:35,902 - DEBUG - ==>Verifying data for policy with id: b0052aa0-b0d6-4346-bf48-8c0a80a3f056, fqn: ['default-domain', 'ctest-TestBasicPolicy-80889178', 'ctest-policy-allow-all-69765595']
2026-06-16 15:35:35,902 - INFO - VN ctest-vn-26146704 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-16 15:35:35,903 - DEBUG - Verifying the vn in opserver
2026-06-16 15:35:35,903 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80889178:ctest-vn-26146704 virtual network link through opserver 10.0.0.249
2026-06-16 15:35:35,903 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-06-16 15:35:35,910 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80889178:ctest-vn-26146704', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80889178:ctest-vn-26146704?flat'}
2026-06-16 15:35:35,910 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80889178:ctest-vn-26146704 is found in opserver
2026-06-16 15:35:35,917 - DEBUG - Do not have enough data to verify VN in agent
2026-06-16 15:35:35,921 - DEBUG - VRF ids for VN ctest-vn-26146704: {}
2026-06-16 15:35:35,966 - DEBUG - Services list from nova: [