2026-01-05 03:04:08,567 - INFO - Domain Default found not creating
2026-01-05 03:04:08,746 - INFO - Project ctest-TestBasicPolicy-83748770 not found, creating it
2026-01-05 03:04:09,225 - INFO - Created Project:ctest-TestBasicPolicy-83748770, ID : a2213faf-175c-4690-adeb-c581f3cdaf08
2026-01-05 03:04:10,721 - INFO - ================================================================================
2026-01-05 03:04:10,721 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-05 03:04:10,721 - 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-01-05 03:04:10,992 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0'}} with
2026-01-05 03:04:10,992 - INFO - Initial checks done. Running the testcase now
2026-01-05 03:04:10,992 - INFO -
2026-01-05 03:04:11,581 - DEBUG - Response for create_network : {'network': {'id': '01d460c1-c8e7-4eb2-8be8-4cdc7d371070', 'name': 'ctest-vn-17718590', 'tenant_id': 'a2213faf175c4690adebc581f3cdaf08', 'project_id': 'a2213faf175c4690adebc581f3cdaf08', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83748770', 'ctest-vn-17718590'], 'port_security_enabled': True, 'description': ''}}
2026-01-05 03:04:11,747 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bb463cff-80a6-4015-bb6d-12deec988502', 'name': '', 'tenant_id': 'a2213faf175c4690adebc581f3cdaf08', 'network_id': '01d460c1-c8e7-4eb2-8be8-4cdc7d371070', 'ip_version': 4, 'cidr': '118.127.247.0/26', 'allocation_pools': [{'start': '118.127.247.2', 'end': '118.127.247.62'}], 'gateway_ip': '118.127.247.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '118.127.247.2', 'tags': [], 'project_id': 'a2213faf175c4690adebc581f3cdaf08'}}
2026-01-05 03:04:11,764 - INFO - Created VN ctest-vn-17718590
2026-01-05 03:04:11,815 - DEBUG - VN ctest-vn-17718590 UUID is 01d460c1-c8e7-4eb2-8be8-4cdc7d371070
2026-01-05 03:04:12,107 - DEBUG - Response for create_network : {'network': {'id': '08f6ade5-153f-4a3e-81b2-737495cdbf57', 'name': 'ctest-vn-73704930', 'tenant_id': 'a2213faf175c4690adebc581f3cdaf08', 'project_id': 'a2213faf175c4690adebc581f3cdaf08', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83748770', 'ctest-vn-73704930'], 'port_security_enabled': True, 'description': ''}}
2026-01-05 03:04:12,309 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e265b5b6-d1b2-4d72-a2f3-a2d1ccf341fe', 'name': '', 'tenant_id': 'a2213faf175c4690adebc581f3cdaf08', 'network_id': '08f6ade5-153f-4a3e-81b2-737495cdbf57', 'ip_version': 4, 'cidr': '125.240.22.192/26', 'allocation_pools': [{'start': '125.240.22.194', 'end': '125.240.22.254'}], 'gateway_ip': '125.240.22.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.240.22.194', 'tags': [], 'project_id': 'a2213faf175c4690adebc581f3cdaf08'}}
2026-01-05 03:04:12,325 - INFO - Created VN ctest-vn-73704930
2026-01-05 03:04:12,379 - DEBUG - VN ctest-vn-73704930 UUID is 08f6ade5-153f-4a3e-81b2-737495cdbf57
2026-01-05 03:04:12,530 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-83748770:ctest-vn-17718590, 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-83748770:ctest-vn-73704930, 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-01-05 03:04:12,819 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '01d460c1-c8e7-4eb2-8be8-4cdc7d371070', 'name': 'ctest-vn-17718590', 'tenant_id': 'a2213faf175c4690adebc581f3cdaf08', 'project_id': 'a2213faf175c4690adebc581f3cdaf08', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bb463cff-80a6-4015-bb6d-12deec988502'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83748770', 'ctest-vn-17718590'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-83748770', 'ctest-policy-allow-all-91049979']], 'subnet_ipam': [{'subnet_cidr': '118.127.247.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-05 03:04:13,062 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '08f6ade5-153f-4a3e-81b2-737495cdbf57', 'name': 'ctest-vn-73704930', 'tenant_id': 'a2213faf175c4690adebc581f3cdaf08', 'project_id': 'a2213faf175c4690adebc581f3cdaf08', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e265b5b6-d1b2-4d72-a2f3-a2d1ccf341fe'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83748770', 'ctest-vn-73704930'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-83748770', 'ctest-policy-allow-all-91049979']], 'subnet_ipam': [{'subnet_cidr': '125.240.22.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-05 03:04:13,231 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-05 03:04:13,529 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-05 03:04:13,561 - DEBUG - Requesting: http://10.0.0.22:8082/domain/26072c94-ea38-40a8-8151-a418d6e0b95d
2026-01-05 03:04:13,574 - DEBUG - Requesting: http://10.0.0.22:8082/project/a2213faf-175c-4690-adeb-c581f3cdaf08
2026-01-05 03:04:13,649 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/01d460c1-c8e7-4eb2-8be8-4cdc7d371070
2026-01-05 03:04:13,658 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/01d460c1-c8e7-4eb2-8be8-4cdc7d371070
2026-01-05 03:04:13,667 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ce87fac2-a973-45d9-baa1-362936438c43
2026-01-05 03:04:13,674 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ce87fac2-a973-45d9-baa1-362936438c43
2026-01-05 03:04:13,680 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/187e6e13-e443-4de8-a369-04d787bf7216
2026-01-05 03:04:13,686 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-05 03:04:13,686 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/01d460c1-c8e7-4eb2-8be8-4cdc7d371070
2026-01-05 03:04:13,694 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ce87fac2-a973-45d9-baa1-362936438c43
2026-01-05 03:04:13,709 - INFO - Verified VN network id 11 for VN 01d460c1-c8e7-4eb2-8be8-4cdc7d371070
2026-01-05 03:04:13,710 - INFO - Verifications in API Server for VN ctest-vn-17718590 passed
2026-01-05 03:04:13,710 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/01d460c1-c8e7-4eb2-8be8-4cdc7d371070
2026-01-05 03:04:13,719 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ce87fac2-a973-45d9-baa1-362936438c43
2026-01-05 03:04:13,726 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ce87fac2-a973-45d9-baa1-362936438c43
2026-01-05 03:04:13,732 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/187e6e13-e443-4de8-a369-04d787bf7216
2026-01-05 03:04:13,743 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-83748770:ctest-vn-17718590', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83748770', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '131836674516143794', 'uuid-lslong': '10081392275746132080'}, 'enable': 'true', 'created': '2026-01-05T03:04:11', 'last-modified': '2026-01-05T03:04:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.943371'}
2026-01-05 03:04:13,750 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-05 03:04:13,750 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17718590 passed
2026-01-05 03:04:13,750 - DEBUG - ====Verifying policy data for ctest-vn-17718590 in API_Server ======
2026-01-05 03:04:13,750 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-05 03:04:13,755 - DEBUG - Requesting: http://10.0.0.22:8082/domain/26072c94-ea38-40a8-8151-a418d6e0b95d
2026-01-05 03:04:13,766 - DEBUG - Requesting: http://10.0.0.22:8082/project/a2213faf-175c-4690-adeb-c581f3cdaf08
2026-01-05 03:04:13,838 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/01d460c1-c8e7-4eb2-8be8-4cdc7d371070
2026-01-05 03:04:13,846 - DEBUG - ==>Verifying data for policy with id: 6660d522-f490-45dd-9e92-39ef3222906c, fqn: ['default-domain', 'ctest-TestBasicPolicy-83748770', 'ctest-policy-allow-all-91049979']
2026-01-05 03:04:13,846 - INFO - VN ctest-vn-17718590 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-05 03:04:13,846 - DEBUG - Verifying the vn in opserver
2026-01-05 03:04:13,846 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-83748770:ctest-vn-17718590 virtual network link through opserver 10.0.0.22
2026-01-05 03:04:13,846 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-01-05 03:04:14,156 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-01-05 03:04:14,217 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-83748770:ctest-vn-17718590', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-83748770:ctest-vn-17718590?flat'}
2026-01-05 03:04:14,217 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-83748770:ctest-vn-17718590 is found in opserver
2026-01-05 03:04:14,226 - DEBUG - Do not have enough data to verify VN in agent
2026-01-05 03:04:14,230 - DEBUG - VRF ids for VN ctest-vn-17718590: {}
2026-01-05 03:04:14,231 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-05 03:04:14,236 - DEBUG - Requesting: http://10.0.0.22:8082/domain/26072c94-ea38-40a8-8151-a418d6e0b95d
2026-01-05 03:04:14,246 - DEBUG - Requesting: http://10.0.0.22:8082/project/a2213faf-175c-4690-adeb-c581f3cdaf08
2026-01-05 03:04:14,321 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/08f6ade5-153f-4a3e-81b2-737495cdbf57
2026-01-05 03:04:14,332 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/08f6ade5-153f-4a3e-81b2-737495cdbf57
2026-01-05 03:04:14,340 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2b4a4f59-aa6b-4ac5-90ba-be4bf9176ea0
2026-01-05 03:04:14,346 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2b4a4f59-aa6b-4ac5-90ba-be4bf9176ea0
2026-01-05 03:04:14,353 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/749c55bb-e3bc-4a31-9ac5-8cd7011e3df2
2026-01-05 03:04:14,360 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-05 03:04:14,360 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/08f6ade5-153f-4a3e-81b2-737495cdbf57
2026-01-05 03:04:14,368 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2b4a4f59-aa6b-4ac5-90ba-be4bf9176ea0
2026-01-05 03:04:14,380 - INFO - Verified VN network id 12 for VN 08f6ade5-153f-4a3e-81b2-737495cdbf57
2026-01-05 03:04:14,380 - INFO - Verifications in API Server for VN ctest-vn-73704930 passed
2026-01-05 03:04:14,380 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/08f6ade5-153f-4a3e-81b2-737495cdbf57
2026-01-05 03:04:14,388 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2b4a4f59-aa6b-4ac5-90ba-be4bf9176ea0
2026-01-05 03:04:14,394 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2b4a4f59-aa6b-4ac5-90ba-be4bf9176ea0
2026-01-05 03:04:14,399 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/749c55bb-e3bc-4a31-9ac5-8cd7011e3df2
2026-01-05 03:04:14,409 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-83748770:ctest-vn-73704930', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83748770', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '645894795989830206', 'uuid-lslong': '9345659121313890135'}, 'enable': 'true', 'created': '2026-01-05T03:04:12', 'last-modified': '2026-01-05T03:04:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.372258'}
2026-01-05 03:04:14,414 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-05 03:04:14,414 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73704930 passed
2026-01-05 03:04:14,414 - DEBUG - ====Verifying policy data for ctest-vn-73704930 in API_Server ======
2026-01-05 03:04:14,414 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-01-05 03:04:14,421 - DEBUG - Requesting: http://10.0.0.22:8082/domain/26072c94-ea38-40a8-8151-a418d6e0b95d
2026-01-05 03:04:14,430 - DEBUG - Requesting: http://10.0.0.22:8082/project/a2213faf-175c-4690-adeb-c581f3cdaf08
2026-01-05 03:04:14,500 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/08f6ade5-153f-4a3e-81b2-737495cdbf57
2026-01-05 03:04:14,508 - DEBUG - ==>Verifying data for policy with id: 6660d522-f490-45dd-9e92-39ef3222906c, fqn: ['default-domain', 'ctest-TestBasicPolicy-83748770', 'ctest-policy-allow-all-91049979']
2026-01-05 03:04:14,509 - INFO - VN ctest-vn-73704930 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-05 03:04:14,509 - DEBUG - Verifying the vn in opserver
2026-01-05 03:04:14,509 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-83748770:ctest-vn-73704930 virtual network link through opserver 10.0.0.22
2026-01-05 03:04:14,509 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-01-05 03:04:14,518 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-83748770:ctest-vn-73704930', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-83748770:ctest-vn-73704930?flat'}
2026-01-05 03:04:14,518 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-83748770:ctest-vn-73704930 is found in opserver
2026-01-05 03:04:14,527 - DEBUG - Do not have enough data to verify VN in agent
2026-01-05 03:04:14,532 - DEBUG - VRF ids for VN ctest-vn-73704930: {}
2026-01-05 03:04:14,588 - DEBUG - Services list from nova: [