2026-02-10 14:59:33,178 - INFO - Domain Default found not creating
2026-02-10 14:59:33,335 - INFO - Project ctest-TestBasicPolicy-78885128 not found, creating it
2026-02-10 14:59:33,801 - INFO - Created Project:ctest-TestBasicPolicy-78885128, ID : 75e415b0-9bca-42ee-95a2-1c25920d1c40
2026-02-10 14:59:35,259 - INFO - ================================================================================
2026-02-10 14:59:35,259 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-10 14:59:35,259 - 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-02-10 14:59:35,512 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2026-02-10 14:59:35,513 - INFO - Initial checks done. Running the testcase now
2026-02-10 14:59:35,513 - INFO -
2026-02-10 14:59:36,051 - DEBUG - Response for create_network : {'network': {'id': '0cede9d7-ab56-4aff-beb1-2f8f835701fa', 'name': 'ctest-vn-02593338', 'tenant_id': '75e415b09bca42ee95a21c25920d1c40', 'project_id': '75e415b09bca42ee95a21c25920d1c40', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78885128', 'ctest-vn-02593338'], 'port_security_enabled': True, 'description': ''}}
2026-02-10 14:59:36,202 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cdf157c5-36e7-440a-b2ca-561eb73e6d86', 'name': '', 'tenant_id': '75e415b09bca42ee95a21c25920d1c40', 'network_id': '0cede9d7-ab56-4aff-beb1-2f8f835701fa', 'ip_version': 4, 'cidr': '85.210.200.64/26', 'allocation_pools': [{'start': '85.210.200.66', 'end': '85.210.200.126'}], 'gateway_ip': '85.210.200.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '85.210.200.66', 'tags': [], 'project_id': '75e415b09bca42ee95a21c25920d1c40'}}
2026-02-10 14:59:36,224 - INFO - Created VN ctest-vn-02593338
2026-02-10 14:59:36,275 - DEBUG - VN ctest-vn-02593338 UUID is 0cede9d7-ab56-4aff-beb1-2f8f835701fa
2026-02-10 14:59:36,582 - DEBUG - Response for create_network : {'network': {'id': 'edbaf0af-8ae6-4509-8db4-b760ec565fe6', 'name': 'ctest-vn-91260489', 'tenant_id': '75e415b09bca42ee95a21c25920d1c40', 'project_id': '75e415b09bca42ee95a21c25920d1c40', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78885128', 'ctest-vn-91260489'], 'port_security_enabled': True, 'description': ''}}
2026-02-10 14:59:36,728 - DEBUG - Response for create_subnet : {'subnet': {'id': '365f8983-1668-4f7a-81e3-34844472005c', 'name': '', 'tenant_id': '75e415b09bca42ee95a21c25920d1c40', 'network_id': 'edbaf0af-8ae6-4509-8db4-b760ec565fe6', 'ip_version': 4, 'cidr': '45.141.164.192/26', 'allocation_pools': [{'start': '45.141.164.194', 'end': '45.141.164.254'}], 'gateway_ip': '45.141.164.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '45.141.164.194', 'tags': [], 'project_id': '75e415b09bca42ee95a21c25920d1c40'}}
2026-02-10 14:59:36,744 - INFO - Created VN ctest-vn-91260489
2026-02-10 14:59:36,795 - DEBUG - VN ctest-vn-91260489 UUID is edbaf0af-8ae6-4509-8db4-b760ec565fe6
2026-02-10 14:59:36,909 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-78885128:ctest-vn-02593338, 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-78885128:ctest-vn-91260489, 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-02-10 14:59:37,199 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0cede9d7-ab56-4aff-beb1-2f8f835701fa', 'name': 'ctest-vn-02593338', 'tenant_id': '75e415b09bca42ee95a21c25920d1c40', 'project_id': '75e415b09bca42ee95a21c25920d1c40', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cdf157c5-36e7-440a-b2ca-561eb73e6d86'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78885128', 'ctest-vn-02593338'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78885128', 'ctest-policy-allow-all-80858769']], 'subnet_ipam': [{'subnet_cidr': '85.210.200.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-10 14:59:37,412 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'edbaf0af-8ae6-4509-8db4-b760ec565fe6', 'name': 'ctest-vn-91260489', 'tenant_id': '75e415b09bca42ee95a21c25920d1c40', 'project_id': '75e415b09bca42ee95a21c25920d1c40', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['365f8983-1668-4f7a-81e3-34844472005c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78885128', 'ctest-vn-91260489'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78885128', 'ctest-policy-allow-all-80858769']], 'subnet_ipam': [{'subnet_cidr': '45.141.164.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-10 14:59:37,571 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-10 14:59:37,871 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-10 14:59:37,900 - DEBUG - Requesting: http://10.0.0.22:8082/domain/04c5743f-d8c6-4ded-bd47-24836b3ff855
2026-02-10 14:59:37,911 - DEBUG - Requesting: http://10.0.0.22:8082/project/75e415b0-9bca-42ee-95a2-1c25920d1c40
2026-02-10 14:59:37,987 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0cede9d7-ab56-4aff-beb1-2f8f835701fa
2026-02-10 14:59:37,997 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0cede9d7-ab56-4aff-beb1-2f8f835701fa
2026-02-10 14:59:38,004 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f2e351b7-d19f-4b7c-ae10-d12be82d3faa
2026-02-10 14:59:38,011 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f2e351b7-d19f-4b7c-ae10-d12be82d3faa
2026-02-10 14:59:38,017 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/30177a68-a046-4c5b-a1f6-4a4cb3278f67
2026-02-10 14:59:38,023 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-10 14:59:38,023 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0cede9d7-ab56-4aff-beb1-2f8f835701fa
2026-02-10 14:59:38,031 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f2e351b7-d19f-4b7c-ae10-d12be82d3faa
2026-02-10 14:59:38,044 - INFO - Verified VN network id 9 for VN 0cede9d7-ab56-4aff-beb1-2f8f835701fa
2026-02-10 14:59:38,044 - INFO - Verifications in API Server for VN ctest-vn-02593338 passed
2026-02-10 14:59:38,044 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0cede9d7-ab56-4aff-beb1-2f8f835701fa
2026-02-10 14:59:38,052 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f2e351b7-d19f-4b7c-ae10-d12be82d3faa
2026-02-10 14:59:38,059 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f2e351b7-d19f-4b7c-ae10-d12be82d3faa
2026-02-10 14:59:38,065 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/30177a68-a046-4c5b-a1f6-4a4cb3278f67
2026-02-10 14:59:38,075 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78885128:ctest-vn-02593338', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78885128', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '931657810437360383', 'uuid-lslong': '13740816231514440186'}, 'enable': 'true', 'created': '2026-02-10T14:59:36', 'last-modified': '2026-02-10T14:59:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.896216'}
2026-02-10 14:59:38,081 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-10 14:59:38,081 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02593338 passed
2026-02-10 14:59:38,081 - DEBUG - ====Verifying policy data for ctest-vn-02593338 in API_Server ======
2026-02-10 14:59:38,081 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-10 14:59:38,086 - DEBUG - Requesting: http://10.0.0.22:8082/domain/04c5743f-d8c6-4ded-bd47-24836b3ff855
2026-02-10 14:59:38,096 - DEBUG - Requesting: http://10.0.0.22:8082/project/75e415b0-9bca-42ee-95a2-1c25920d1c40
2026-02-10 14:59:38,163 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0cede9d7-ab56-4aff-beb1-2f8f835701fa
2026-02-10 14:59:38,171 - DEBUG - ==>Verifying data for policy with id: e70503c7-f2db-4eec-9c79-8584429b210d, fqn: ['default-domain', 'ctest-TestBasicPolicy-78885128', 'ctest-policy-allow-all-80858769']
2026-02-10 14:59:38,171 - INFO - VN ctest-vn-02593338 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-10 14:59:38,171 - DEBUG - Verifying the vn in opserver
2026-02-10 14:59:38,171 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78885128:ctest-vn-02593338 virtual network link through opserver 10.0.0.22
2026-02-10 14:59:38,171 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-02-10 14:59:38,461 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-02-10 14:59:38,517 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78885128:ctest-vn-02593338', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78885128:ctest-vn-02593338?flat'}
2026-02-10 14:59:38,517 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78885128:ctest-vn-02593338 is found in opserver
2026-02-10 14:59:38,526 - DEBUG - Do not have enough data to verify VN in agent
2026-02-10 14:59:38,530 - DEBUG - VRF ids for VN ctest-vn-02593338: {}
2026-02-10 14:59:38,531 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-10 14:59:38,536 - DEBUG - Requesting: http://10.0.0.22:8082/domain/04c5743f-d8c6-4ded-bd47-24836b3ff855
2026-02-10 14:59:38,548 - DEBUG - Requesting: http://10.0.0.22:8082/project/75e415b0-9bca-42ee-95a2-1c25920d1c40
2026-02-10 14:59:38,616 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/edbaf0af-8ae6-4509-8db4-b760ec565fe6
2026-02-10 14:59:38,626 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/edbaf0af-8ae6-4509-8db4-b760ec565fe6
2026-02-10 14:59:38,634 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9e886482-69c3-4f06-800a-9f64266f8b75
2026-02-10 14:59:38,641 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9e886482-69c3-4f06-800a-9f64266f8b75
2026-02-10 14:59:38,648 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/09e8cd27-d329-4ace-bb08-7e508ab870b7
2026-02-10 14:59:38,654 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-10 14:59:38,654 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/edbaf0af-8ae6-4509-8db4-b760ec565fe6
2026-02-10 14:59:38,663 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9e886482-69c3-4f06-800a-9f64266f8b75
2026-02-10 14:59:38,676 - INFO - Verified VN network id 10 for VN edbaf0af-8ae6-4509-8db4-b760ec565fe6
2026-02-10 14:59:38,676 - INFO - Verifications in API Server for VN ctest-vn-91260489 passed
2026-02-10 14:59:38,676 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/edbaf0af-8ae6-4509-8db4-b760ec565fe6
2026-02-10 14:59:38,684 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9e886482-69c3-4f06-800a-9f64266f8b75
2026-02-10 14:59:38,690 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9e886482-69c3-4f06-800a-9f64266f8b75
2026-02-10 14:59:38,696 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/09e8cd27-d329-4ace-bb08-7e508ab870b7
2026-02-10 14:59:38,705 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78885128:ctest-vn-91260489', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78885128', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17130268769397392649', 'uuid-lslong': '10210987882065584102'}, 'enable': 'true', 'created': '2026-02-10T14:59:36', 'last-modified': '2026-02-10T14:59:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.314786'}
2026-02-10 14:59:38,712 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-10 14:59:38,712 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91260489 passed
2026-02-10 14:59:38,712 - DEBUG - ====Verifying policy data for ctest-vn-91260489 in API_Server ======
2026-02-10 14:59:38,715 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-10 14:59:38,721 - DEBUG - Requesting: http://10.0.0.22:8082/domain/04c5743f-d8c6-4ded-bd47-24836b3ff855
2026-02-10 14:59:38,731 - DEBUG - Requesting: http://10.0.0.22:8082/project/75e415b0-9bca-42ee-95a2-1c25920d1c40
2026-02-10 14:59:38,801 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/edbaf0af-8ae6-4509-8db4-b760ec565fe6
2026-02-10 14:59:38,810 - DEBUG - ==>Verifying data for policy with id: e70503c7-f2db-4eec-9c79-8584429b210d, fqn: ['default-domain', 'ctest-TestBasicPolicy-78885128', 'ctest-policy-allow-all-80858769']
2026-02-10 14:59:38,810 - INFO - VN ctest-vn-91260489 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-10 14:59:38,810 - DEBUG - Verifying the vn in opserver
2026-02-10 14:59:38,810 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78885128:ctest-vn-91260489 virtual network link through opserver 10.0.0.22
2026-02-10 14:59:38,810 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-02-10 14:59:38,819 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78885128:ctest-vn-91260489', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78885128:ctest-vn-91260489?flat'}
2026-02-10 14:59:38,819 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78885128:ctest-vn-91260489 is found in opserver
2026-02-10 14:59:38,828 - DEBUG - Do not have enough data to verify VN in agent
2026-02-10 14:59:38,833 - DEBUG - VRF ids for VN ctest-vn-91260489: {}
2026-02-10 14:59:38,886 - DEBUG - Services list from nova: [