2026-05-07 13:36:03,738 - INFO - Domain Default found not creating
2026-05-07 13:36:03,938 - INFO - Project ctest-TestBasicPolicy-49206385 not found, creating it
2026-05-07 13:36:04,461 - INFO - Created Project:ctest-TestBasicPolicy-49206385, ID : bcf1cf0b-c71f-49c6-9831-1f33d71ed0e6
2026-05-07 13:36:06,194 - INFO - ================================================================================
2026-05-07 13:36:06,194 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-05-07 13:36:06,195 - 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-07 13:36:06,463 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-05-07 13:36:06,463 - INFO - Initial checks done. Running the testcase now
2026-05-07 13:36:06,463 - INFO -
2026-05-07 13:36:07,113 - DEBUG - Response for create_network : {'network': {'id': '183e5504-1fe4-478b-a8a9-6ee33116509f', 'name': 'ctest-vn-96203079', 'tenant_id': 'bcf1cf0bc71f49c698311f33d71ed0e6', 'project_id': 'bcf1cf0bc71f49c698311f33d71ed0e6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49206385', 'ctest-vn-96203079'], 'port_security_enabled': True, 'description': ''}}
2026-05-07 13:36:07,278 - DEBUG - Response for create_subnet : {'subnet': {'id': '9e63058e-1a08-4cc6-9dbd-2c1be6988c26', 'name': '', 'tenant_id': 'bcf1cf0bc71f49c698311f33d71ed0e6', 'network_id': '183e5504-1fe4-478b-a8a9-6ee33116509f', 'ip_version': 4, 'cidr': '111.214.144.0/26', 'allocation_pools': [{'start': '111.214.144.2', 'end': '111.214.144.62'}], 'gateway_ip': '111.214.144.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.214.144.2', 'tags': [], 'project_id': 'bcf1cf0bc71f49c698311f33d71ed0e6'}}
2026-05-07 13:36:07,300 - INFO - Created VN ctest-vn-96203079
2026-05-07 13:36:07,354 - DEBUG - VN ctest-vn-96203079 UUID is 183e5504-1fe4-478b-a8a9-6ee33116509f
2026-05-07 13:36:07,684 - DEBUG - Response for create_network : {'network': {'id': '0074d7db-9300-4f21-baa8-5841cd2fe32e', 'name': 'ctest-vn-61263098', 'tenant_id': 'bcf1cf0bc71f49c698311f33d71ed0e6', 'project_id': 'bcf1cf0bc71f49c698311f33d71ed0e6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49206385', 'ctest-vn-61263098'], 'port_security_enabled': True, 'description': ''}}
2026-05-07 13:36:07,929 - DEBUG - Response for create_subnet : {'subnet': {'id': '23d9838a-549e-4247-80c9-d44a7cc4cf89', 'name': '', 'tenant_id': 'bcf1cf0bc71f49c698311f33d71ed0e6', 'network_id': '0074d7db-9300-4f21-baa8-5841cd2fe32e', 'ip_version': 4, 'cidr': '1.139.41.0/26', 'allocation_pools': [{'start': '1.139.41.2', 'end': '1.139.41.62'}], 'gateway_ip': '1.139.41.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '1.139.41.2', 'tags': [], 'project_id': 'bcf1cf0bc71f49c698311f33d71ed0e6'}}
2026-05-07 13:36:07,950 - INFO - Created VN ctest-vn-61263098
2026-05-07 13:36:08,002 - DEBUG - VN ctest-vn-61263098 UUID is 0074d7db-9300-4f21-baa8-5841cd2fe32e
2026-05-07 13:36:08,128 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-49206385:ctest-vn-96203079, 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-49206385:ctest-vn-61263098, 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-07 13:36:08,447 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '183e5504-1fe4-478b-a8a9-6ee33116509f', 'name': 'ctest-vn-96203079', 'tenant_id': 'bcf1cf0bc71f49c698311f33d71ed0e6', 'project_id': 'bcf1cf0bc71f49c698311f33d71ed0e6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9e63058e-1a08-4cc6-9dbd-2c1be6988c26'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49206385', 'ctest-vn-96203079'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49206385', 'ctest-policy-allow-all-79382034']], 'subnet_ipam': [{'subnet_cidr': '111.214.144.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-07 13:36:08,685 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0074d7db-9300-4f21-baa8-5841cd2fe32e', 'name': 'ctest-vn-61263098', 'tenant_id': 'bcf1cf0bc71f49c698311f33d71ed0e6', 'project_id': 'bcf1cf0bc71f49c698311f33d71ed0e6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['23d9838a-549e-4247-80c9-d44a7cc4cf89'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49206385', 'ctest-vn-61263098'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49206385', 'ctest-policy-allow-all-79382034']], 'subnet_ipam': [{'subnet_cidr': '1.139.41.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-07 13:36:08,858 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-07 13:36:09,197 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-07 13:36:09,234 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f808bc8c-cbd6-4bbf-bf13-589ba3ff05fc
2026-05-07 13:36:09,247 - DEBUG - Requesting: http://10.0.0.50:8082/project/bcf1cf0b-c71f-49c6-9831-1f33d71ed0e6
2026-05-07 13:36:09,330 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/183e5504-1fe4-478b-a8a9-6ee33116509f
2026-05-07 13:36:09,343 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/183e5504-1fe4-478b-a8a9-6ee33116509f
2026-05-07 13:36:09,354 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f8028d32-42f3-43e4-aa28-7e088a4c0fde
2026-05-07 13:36:09,362 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f8028d32-42f3-43e4-aa28-7e088a4c0fde
2026-05-07 13:36:09,371 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f968cbb7-4838-4249-9b89-ac1d2dc54f99
2026-05-07 13:36:09,379 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-07 13:36:09,380 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/183e5504-1fe4-478b-a8a9-6ee33116509f
2026-05-07 13:36:09,391 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f8028d32-42f3-43e4-aa28-7e088a4c0fde
2026-05-07 13:36:09,410 - INFO - Verified VN network id 12 for VN 183e5504-1fe4-478b-a8a9-6ee33116509f
2026-05-07 13:36:09,410 - INFO - Verifications in API Server for VN ctest-vn-96203079 passed
2026-05-07 13:36:09,410 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/183e5504-1fe4-478b-a8a9-6ee33116509f
2026-05-07 13:36:09,423 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f8028d32-42f3-43e4-aa28-7e088a4c0fde
2026-05-07 13:36:09,433 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f8028d32-42f3-43e4-aa28-7e088a4c0fde
2026-05-07 13:36:09,441 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f968cbb7-4838-4249-9b89-ac1d2dc54f99
2026-05-07 13:36:09,456 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49206385:ctest-vn-96203079', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49206385', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1746927181669615499', 'uuid-lslong': '12153366991496171679'}, 'enable': 'true', 'created': '2026-05-07T13:36:07', 'last-modified': '2026-05-07T13:36:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.042312'}
2026-05-07 13:36:09,462 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-07 13:36:09,463 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96203079 passed
2026-05-07 13:36:09,463 - DEBUG - ====Verifying policy data for ctest-vn-96203079 in API_Server ======
2026-05-07 13:36:09,463 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-07 13:36:09,469 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f808bc8c-cbd6-4bbf-bf13-589ba3ff05fc
2026-05-07 13:36:09,482 - DEBUG - Requesting: http://10.0.0.50:8082/project/bcf1cf0b-c71f-49c6-9831-1f33d71ed0e6
2026-05-07 13:36:09,558 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/183e5504-1fe4-478b-a8a9-6ee33116509f
2026-05-07 13:36:09,570 - DEBUG - ==>Verifying data for policy with id: 8e7fd075-af55-4b99-af9c-ecdfad12bccb, fqn: ['default-domain', 'ctest-TestBasicPolicy-49206385', 'ctest-policy-allow-all-79382034']
2026-05-07 13:36:09,570 - INFO - VN ctest-vn-96203079 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-07 13:36:09,570 - DEBUG - Verifying the vn in opserver
2026-05-07 13:36:09,570 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49206385:ctest-vn-96203079 virtual network link through opserver 10.0.0.50
2026-05-07 13:36:09,571 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-05-07 13:36:09,914 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-05-07 13:36:10,005 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49206385:ctest-vn-96203079', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49206385:ctest-vn-96203079?flat'}
2026-05-07 13:36:10,005 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49206385:ctest-vn-96203079 is found in opserver
2026-05-07 13:36:10,016 - DEBUG - Do not have enough data to verify VN in agent
2026-05-07 13:36:10,021 - DEBUG - VRF ids for VN ctest-vn-96203079: {}
2026-05-07 13:36:10,021 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-07 13:36:10,027 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f808bc8c-cbd6-4bbf-bf13-589ba3ff05fc
2026-05-07 13:36:10,039 - DEBUG - Requesting: http://10.0.0.50:8082/project/bcf1cf0b-c71f-49c6-9831-1f33d71ed0e6
2026-05-07 13:36:10,121 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0074d7db-9300-4f21-baa8-5841cd2fe32e
2026-05-07 13:36:10,136 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0074d7db-9300-4f21-baa8-5841cd2fe32e
2026-05-07 13:36:10,146 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3d2f046e-ac1c-4786-b9e5-2625fa0fcab0
2026-05-07 13:36:10,154 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3d2f046e-ac1c-4786-b9e5-2625fa0fcab0
2026-05-07 13:36:10,162 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/665076b9-ce7b-4f62-994f-5d213a7e88af
2026-05-07 13:36:10,169 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-07 13:36:10,169 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0074d7db-9300-4f21-baa8-5841cd2fe32e
2026-05-07 13:36:10,179 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3d2f046e-ac1c-4786-b9e5-2625fa0fcab0
2026-05-07 13:36:10,198 - INFO - Verified VN network id 13 for VN 0074d7db-9300-4f21-baa8-5841cd2fe32e
2026-05-07 13:36:10,198 - INFO - Verifications in API Server for VN ctest-vn-61263098 passed
2026-05-07 13:36:10,198 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0074d7db-9300-4f21-baa8-5841cd2fe32e
2026-05-07 13:36:10,208 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3d2f046e-ac1c-4786-b9e5-2625fa0fcab0
2026-05-07 13:36:10,217 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3d2f046e-ac1c-4786-b9e5-2625fa0fcab0
2026-05-07 13:36:10,226 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/665076b9-ce7b-4f62-994f-5d213a7e88af
2026-05-07 13:36:10,239 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49206385:ctest-vn-61263098', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49206385', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '32888435362516769', 'uuid-lslong': '13450097326780572462'}, 'enable': 'true', 'created': '2026-05-07T13:36:07', 'last-modified': '2026-05-07T13:36:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.571841'}
2026-05-07 13:36:10,246 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-07 13:36:10,246 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61263098 passed
2026-05-07 13:36:10,247 - DEBUG - ====Verifying policy data for ctest-vn-61263098 in API_Server ======
2026-05-07 13:36:10,247 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-07 13:36:10,254 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f808bc8c-cbd6-4bbf-bf13-589ba3ff05fc
2026-05-07 13:36:10,267 - DEBUG - Requesting: http://10.0.0.50:8082/project/bcf1cf0b-c71f-49c6-9831-1f33d71ed0e6
2026-05-07 13:36:10,341 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0074d7db-9300-4f21-baa8-5841cd2fe32e
2026-05-07 13:36:10,353 - DEBUG - ==>Verifying data for policy with id: 8e7fd075-af55-4b99-af9c-ecdfad12bccb, fqn: ['default-domain', 'ctest-TestBasicPolicy-49206385', 'ctest-policy-allow-all-79382034']
2026-05-07 13:36:10,353 - INFO - VN ctest-vn-61263098 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-07 13:36:10,353 - DEBUG - Verifying the vn in opserver
2026-05-07 13:36:10,353 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49206385:ctest-vn-61263098 virtual network link through opserver 10.0.0.50
2026-05-07 13:36:10,353 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-05-07 13:36:10,365 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49206385:ctest-vn-61263098', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49206385:ctest-vn-61263098?flat'}
2026-05-07 13:36:10,365 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49206385:ctest-vn-61263098 is found in opserver
2026-05-07 13:36:10,376 - DEBUG - Do not have enough data to verify VN in agent
2026-05-07 13:36:10,381 - DEBUG - VRF ids for VN ctest-vn-61263098: {}
2026-05-07 13:36:10,458 - DEBUG - Services list from nova: [