2026-06-03 16:43:55,010 - INFO - Domain Default found not creating
2026-06-03 16:43:55,186 - INFO - Project ctest-TestBasicPolicy-25121434 not found, creating it
2026-06-03 16:43:55,684 - INFO - Created Project:ctest-TestBasicPolicy-25121434, ID : 3ffb3f9c-aabd-4163-b86a-271cfb337a99
2026-06-03 16:43:57,207 - INFO - ================================================================================
2026-06-03 16:43:57,207 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-06-03 16:43:57,207 - 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 16:43:57,469 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2026-06-03 16:43:57,469 - INFO - Initial checks done. Running the testcase now
2026-06-03 16:43:57,469 - INFO -
2026-06-03 16:43:58,023 - DEBUG - Response for create_network : {'network': {'id': 'd7f5504e-eda6-4d1a-853e-4774a3d8f949', 'name': 'ctest-vn-57828242', 'tenant_id': '3ffb3f9caabd4163b86a271cfb337a99', 'project_id': '3ffb3f9caabd4163b86a271cfb337a99', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25121434', 'ctest-vn-57828242'], 'port_security_enabled': True, 'description': ''}}
2026-06-03 16:43:58,223 - DEBUG - Response for create_subnet : {'subnet': {'id': '888c69ee-af99-448a-a2b3-7fa236c687ce', 'name': '', 'tenant_id': '3ffb3f9caabd4163b86a271cfb337a99', 'network_id': 'd7f5504e-eda6-4d1a-853e-4774a3d8f949', 'ip_version': 4, 'cidr': '121.21.93.192/26', 'allocation_pools': [{'start': '121.21.93.194', 'end': '121.21.93.254'}], 'gateway_ip': '121.21.93.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.21.93.194', 'tags': [], 'project_id': '3ffb3f9caabd4163b86a271cfb337a99'}}
2026-06-03 16:43:58,241 - INFO - Created VN ctest-vn-57828242
2026-06-03 16:43:58,292 - DEBUG - VN ctest-vn-57828242 UUID is d7f5504e-eda6-4d1a-853e-4774a3d8f949
2026-06-03 16:43:58,589 - DEBUG - Response for create_network : {'network': {'id': 'd6c5afe1-fadb-44f4-826b-d73f14c6eb5a', 'name': 'ctest-vn-97775910', 'tenant_id': '3ffb3f9caabd4163b86a271cfb337a99', 'project_id': '3ffb3f9caabd4163b86a271cfb337a99', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25121434', 'ctest-vn-97775910'], 'port_security_enabled': True, 'description': ''}}
2026-06-03 16:43:58,757 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a0b43e27-422c-4a07-84cf-a2312e22c481', 'name': '', 'tenant_id': '3ffb3f9caabd4163b86a271cfb337a99', 'network_id': 'd6c5afe1-fadb-44f4-826b-d73f14c6eb5a', 'ip_version': 4, 'cidr': '216.24.160.128/26', 'allocation_pools': [{'start': '216.24.160.130', 'end': '216.24.160.190'}], 'gateway_ip': '216.24.160.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '216.24.160.130', 'tags': [], 'project_id': '3ffb3f9caabd4163b86a271cfb337a99'}}
2026-06-03 16:43:58,775 - INFO - Created VN ctest-vn-97775910
2026-06-03 16:43:58,828 - DEBUG - VN ctest-vn-97775910 UUID is d6c5afe1-fadb-44f4-826b-d73f14c6eb5a
2026-06-03 16:43:58,984 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-25121434:ctest-vn-57828242, 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-25121434:ctest-vn-97775910, 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 16:43:59,279 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd7f5504e-eda6-4d1a-853e-4774a3d8f949', 'name': 'ctest-vn-57828242', 'tenant_id': '3ffb3f9caabd4163b86a271cfb337a99', 'project_id': '3ffb3f9caabd4163b86a271cfb337a99', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['888c69ee-af99-448a-a2b3-7fa236c687ce'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25121434', 'ctest-vn-57828242'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25121434', 'ctest-policy-allow-all-07795967']], 'subnet_ipam': [{'subnet_cidr': '121.21.93.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-03 16:43:59,518 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd6c5afe1-fadb-44f4-826b-d73f14c6eb5a', 'name': 'ctest-vn-97775910', 'tenant_id': '3ffb3f9caabd4163b86a271cfb337a99', 'project_id': '3ffb3f9caabd4163b86a271cfb337a99', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a0b43e27-422c-4a07-84cf-a2312e22c481'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25121434', 'ctest-vn-97775910'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25121434', 'ctest-policy-allow-all-07795967']], 'subnet_ipam': [{'subnet_cidr': '216.24.160.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-03 16:43:59,684 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-06-03 16:43:59,981 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-06-03 16:44:00,014 - DEBUG - Requesting: http://10.0.0.38:8082/domain/48f12088-9884-4e7e-a88e-94e33964d033
2026-06-03 16:44:00,027 - DEBUG - Requesting: http://10.0.0.38:8082/project/3ffb3f9c-aabd-4163-b86a-271cfb337a99
2026-06-03 16:44:00,100 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d7f5504e-eda6-4d1a-853e-4774a3d8f949
2026-06-03 16:44:00,113 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d7f5504e-eda6-4d1a-853e-4774a3d8f949
2026-06-03 16:44:00,124 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3c564546-6b37-4d7f-b5f2-9f6698443d32
2026-06-03 16:44:00,131 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3c564546-6b37-4d7f-b5f2-9f6698443d32
2026-06-03 16:44:00,138 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a596826b-f359-4eea-b9e4-74a8e163207e
2026-06-03 16:44:00,143 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-03 16:44:00,143 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d7f5504e-eda6-4d1a-853e-4774a3d8f949
2026-06-03 16:44:00,152 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3c564546-6b37-4d7f-b5f2-9f6698443d32
2026-06-03 16:44:00,165 - INFO - Verified VN network id 11 for VN d7f5504e-eda6-4d1a-853e-4774a3d8f949
2026-06-03 16:44:00,165 - INFO - Verifications in API Server for VN ctest-vn-57828242 passed
2026-06-03 16:44:00,166 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d7f5504e-eda6-4d1a-853e-4774a3d8f949
2026-06-03 16:44:00,174 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3c564546-6b37-4d7f-b5f2-9f6698443d32
2026-06-03 16:44:00,181 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3c564546-6b37-4d7f-b5f2-9f6698443d32
2026-06-03 16:44:00,189 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a596826b-f359-4eea-b9e4-74a8e163207e
2026-06-03 16:44:00,201 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25121434:ctest-vn-57828242', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25121434', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15561432387373387034', 'uuid-lslong': '9601190021891160393'}, 'enable': 'true', 'created': '2026-06-03T16:43:57', 'last-modified': '2026-06-03T16:43:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.943029'}
2026-06-03 16:44:00,207 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-03 16:44:00,207 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57828242 passed
2026-06-03 16:44:00,207 - DEBUG - ====Verifying policy data for ctest-vn-57828242 in API_Server ======
2026-06-03 16:44:00,207 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-06-03 16:44:00,213 - DEBUG - Requesting: http://10.0.0.38:8082/domain/48f12088-9884-4e7e-a88e-94e33964d033
2026-06-03 16:44:00,224 - DEBUG - Requesting: http://10.0.0.38:8082/project/3ffb3f9c-aabd-4163-b86a-271cfb337a99
2026-06-03 16:44:00,292 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d7f5504e-eda6-4d1a-853e-4774a3d8f949
2026-06-03 16:44:00,300 - DEBUG - ==>Verifying data for policy with id: 90e2cd32-c3c4-4b4a-91c8-c8bb6ccfb1c2, fqn: ['default-domain', 'ctest-TestBasicPolicy-25121434', 'ctest-policy-allow-all-07795967']
2026-06-03 16:44:00,300 - INFO - VN ctest-vn-57828242 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-03 16:44:00,300 - DEBUG - Verifying the vn in opserver
2026-06-03 16:44:00,300 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25121434:ctest-vn-57828242 virtual network link through opserver 10.0.0.38
2026-06-03 16:44:00,301 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-06-03 16:44:00,592 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-06-03 16:44:00,654 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25121434:ctest-vn-57828242', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25121434:ctest-vn-57828242?flat'}
2026-06-03 16:44:00,654 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25121434:ctest-vn-57828242 is found in opserver
2026-06-03 16:44:00,665 - DEBUG - Do not have enough data to verify VN in agent
2026-06-03 16:44:00,670 - DEBUG - VRF ids for VN ctest-vn-57828242: {}
2026-06-03 16:44:00,670 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-06-03 16:44:00,675 - DEBUG - Requesting: http://10.0.0.38:8082/domain/48f12088-9884-4e7e-a88e-94e33964d033
2026-06-03 16:44:00,686 - DEBUG - Requesting: http://10.0.0.38:8082/project/3ffb3f9c-aabd-4163-b86a-271cfb337a99
2026-06-03 16:44:00,758 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d6c5afe1-fadb-44f4-826b-d73f14c6eb5a
2026-06-03 16:44:00,770 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d6c5afe1-fadb-44f4-826b-d73f14c6eb5a
2026-06-03 16:44:00,781 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/154b1924-00e5-45c0-a2dd-a6044234f7b9
2026-06-03 16:44:00,788 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/154b1924-00e5-45c0-a2dd-a6044234f7b9
2026-06-03 16:44:00,797 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/577c3785-98d8-43cf-9474-30908215dd08
2026-06-03 16:44:00,803 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-03 16:44:00,803 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d6c5afe1-fadb-44f4-826b-d73f14c6eb5a
2026-06-03 16:44:00,812 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/154b1924-00e5-45c0-a2dd-a6044234f7b9
2026-06-03 16:44:00,828 - INFO - Verified VN network id 12 for VN d6c5afe1-fadb-44f4-826b-d73f14c6eb5a
2026-06-03 16:44:00,828 - INFO - Verifications in API Server for VN ctest-vn-97775910 passed
2026-06-03 16:44:00,828 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d6c5afe1-fadb-44f4-826b-d73f14c6eb5a
2026-06-03 16:44:00,838 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/154b1924-00e5-45c0-a2dd-a6044234f7b9
2026-06-03 16:44:00,845 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/154b1924-00e5-45c0-a2dd-a6044234f7b9
2026-06-03 16:44:00,853 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/577c3785-98d8-43cf-9474-30908215dd08
2026-06-03 16:44:00,865 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25121434:ctest-vn-97775910', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25121434', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15475969079639753972', 'uuid-lslong': '9397841713370164058'}, 'enable': 'true', 'created': '2026-06-03T16:43:58', 'last-modified': '2026-06-03T16:43:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.367763'}
2026-06-03 16:44:00,871 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-03 16:44:00,871 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97775910 passed
2026-06-03 16:44:00,871 - DEBUG - ====Verifying policy data for ctest-vn-97775910 in API_Server ======
2026-06-03 16:44:00,871 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-06-03 16:44:00,877 - DEBUG - Requesting: http://10.0.0.38:8082/domain/48f12088-9884-4e7e-a88e-94e33964d033
2026-06-03 16:44:00,888 - DEBUG - Requesting: http://10.0.0.38:8082/project/3ffb3f9c-aabd-4163-b86a-271cfb337a99
2026-06-03 16:44:00,958 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d6c5afe1-fadb-44f4-826b-d73f14c6eb5a
2026-06-03 16:44:00,967 - DEBUG - ==>Verifying data for policy with id: 90e2cd32-c3c4-4b4a-91c8-c8bb6ccfb1c2, fqn: ['default-domain', 'ctest-TestBasicPolicy-25121434', 'ctest-policy-allow-all-07795967']
2026-06-03 16:44:00,967 - INFO - VN ctest-vn-97775910 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-03 16:44:00,967 - DEBUG - Verifying the vn in opserver
2026-06-03 16:44:00,967 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25121434:ctest-vn-97775910 virtual network link through opserver 10.0.0.38
2026-06-03 16:44:00,967 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-06-03 16:44:00,977 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25121434:ctest-vn-97775910', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25121434:ctest-vn-97775910?flat'}
2026-06-03 16:44:00,977 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25121434:ctest-vn-97775910 is found in opserver
2026-06-03 16:44:00,987 - DEBUG - Do not have enough data to verify VN in agent
2026-06-03 16:44:00,993 - DEBUG - VRF ids for VN ctest-vn-97775910: {}
2026-06-03 16:44:01,054 - DEBUG - Services list from nova: [