2026-03-23 02:33:03,298 - INFO - Domain Default found not creating
2026-03-23 02:33:03,477 - INFO - Project ctest-TestBasicPolicy-57235186 not found, creating it
2026-03-23 02:33:03,952 - INFO - Created Project:ctest-TestBasicPolicy-57235186, ID : 28a85a14-571c-4641-a1e8-311f0b14d645
2026-03-23 02:33:05,537 - INFO - ================================================================================
2026-03-23 02:33:05,538 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-23 02:33:05,538 - 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-03-23 02:33:05,795 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.129': '0'}} with
2026-03-23 02:33:05,795 - INFO - Initial checks done. Running the testcase now
2026-03-23 02:33:05,795 - INFO -
2026-03-23 02:33:06,379 - DEBUG - Response for create_network : {'network': {'id': '44983cfc-7402-4269-8b69-d6af6f5535b8', 'name': 'ctest-vn-76805231', 'tenant_id': '28a85a14571c4641a1e8311f0b14d645', 'project_id': '28a85a14571c4641a1e8311f0b14d645', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57235186', 'ctest-vn-76805231'], 'port_security_enabled': True, 'description': ''}}
2026-03-23 02:33:06,600 - DEBUG - Response for create_subnet : {'subnet': {'id': '4acc9451-524a-42af-8e2a-920e3dc11c90', 'name': '', 'tenant_id': '28a85a14571c4641a1e8311f0b14d645', 'network_id': '44983cfc-7402-4269-8b69-d6af6f5535b8', 'ip_version': 4, 'cidr': '61.141.221.192/26', 'allocation_pools': [{'start': '61.141.221.194', 'end': '61.141.221.254'}], 'gateway_ip': '61.141.221.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '61.141.221.194', 'tags': [], 'project_id': '28a85a14571c4641a1e8311f0b14d645'}}
2026-03-23 02:33:06,620 - INFO - Created VN ctest-vn-76805231
2026-03-23 02:33:06,673 - DEBUG - VN ctest-vn-76805231 UUID is 44983cfc-7402-4269-8b69-d6af6f5535b8
2026-03-23 02:33:06,964 - DEBUG - Response for create_network : {'network': {'id': '42d3e2af-7255-4629-9dd7-2e02d897c488', 'name': 'ctest-vn-37111232', 'tenant_id': '28a85a14571c4641a1e8311f0b14d645', 'project_id': '28a85a14571c4641a1e8311f0b14d645', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57235186', 'ctest-vn-37111232'], 'port_security_enabled': True, 'description': ''}}
2026-03-23 02:33:07,145 - DEBUG - Response for create_subnet : {'subnet': {'id': 'adce3e04-972d-4ef1-9c27-e00c1a859956', 'name': '', 'tenant_id': '28a85a14571c4641a1e8311f0b14d645', 'network_id': '42d3e2af-7255-4629-9dd7-2e02d897c488', 'ip_version': 4, 'cidr': '168.183.113.192/26', 'allocation_pools': [{'start': '168.183.113.194', 'end': '168.183.113.254'}], 'gateway_ip': '168.183.113.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.183.113.194', 'tags': [], 'project_id': '28a85a14571c4641a1e8311f0b14d645'}}
2026-03-23 02:33:07,161 - INFO - Created VN ctest-vn-37111232
2026-03-23 02:33:07,213 - DEBUG - VN ctest-vn-37111232 UUID is 42d3e2af-7255-4629-9dd7-2e02d897c488
2026-03-23 02:33:07,365 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-57235186:ctest-vn-76805231, 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-57235186:ctest-vn-37111232, 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-03-23 02:33:07,659 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '44983cfc-7402-4269-8b69-d6af6f5535b8', 'name': 'ctest-vn-76805231', 'tenant_id': '28a85a14571c4641a1e8311f0b14d645', 'project_id': '28a85a14571c4641a1e8311f0b14d645', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4acc9451-524a-42af-8e2a-920e3dc11c90'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57235186', 'ctest-vn-76805231'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57235186', 'ctest-policy-allow-all-06162284']], 'subnet_ipam': [{'subnet_cidr': '61.141.221.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-23 02:33:07,934 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '42d3e2af-7255-4629-9dd7-2e02d897c488', 'name': 'ctest-vn-37111232', 'tenant_id': '28a85a14571c4641a1e8311f0b14d645', 'project_id': '28a85a14571c4641a1e8311f0b14d645', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['adce3e04-972d-4ef1-9c27-e00c1a859956'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57235186', 'ctest-vn-37111232'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57235186', 'ctest-policy-allow-all-06162284']], 'subnet_ipam': [{'subnet_cidr': '168.183.113.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-23 02:33:08,085 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-03-23 02:33:08,391 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-03-23 02:33:08,428 - DEBUG - Requesting: http://10.0.0.242:8082/domain/350aa37e-1f36-404e-942e-e5708f2ea1f5
2026-03-23 02:33:08,441 - DEBUG - Requesting: http://10.0.0.242:8082/project/28a85a14-571c-4641-a1e8-311f0b14d645
2026-03-23 02:33:08,523 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/44983cfc-7402-4269-8b69-d6af6f5535b8
2026-03-23 02:33:08,533 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/44983cfc-7402-4269-8b69-d6af6f5535b8
2026-03-23 02:33:08,544 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0bfb437b-a962-4cdb-a716-1dc5ca40e2ff
2026-03-23 02:33:08,553 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0bfb437b-a962-4cdb-a716-1dc5ca40e2ff
2026-03-23 02:33:08,561 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/672d82bf-8c92-4e1b-a947-f7a5699f7226
2026-03-23 02:33:08,569 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-23 02:33:08,569 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/44983cfc-7402-4269-8b69-d6af6f5535b8
2026-03-23 02:33:08,577 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0bfb437b-a962-4cdb-a716-1dc5ca40e2ff
2026-03-23 02:33:08,592 - INFO - Verified VN network id 11 for VN 44983cfc-7402-4269-8b69-d6af6f5535b8
2026-03-23 02:33:08,592 - INFO - Verifications in API Server for VN ctest-vn-76805231 passed
2026-03-23 02:33:08,592 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/44983cfc-7402-4269-8b69-d6af6f5535b8
2026-03-23 02:33:08,603 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0bfb437b-a962-4cdb-a716-1dc5ca40e2ff
2026-03-23 02:33:08,610 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0bfb437b-a962-4cdb-a716-1dc5ca40e2ff
2026-03-23 02:33:08,617 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/672d82bf-8c92-4e1b-a947-f7a5699f7226
2026-03-23 02:33:08,629 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57235186:ctest-vn-76805231', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57235186', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4942767646014849641', 'uuid-lslong': '10045796492802078136'}, 'enable': 'true', 'created': '2026-03-23T02:33:06', 'last-modified': '2026-03-23T02:33:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.991775'}
2026-03-23 02:33:08,636 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-23 02:33:08,637 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76805231 passed
2026-03-23 02:33:08,637 - DEBUG - ====Verifying policy data for ctest-vn-76805231 in API_Server ======
2026-03-23 02:33:08,637 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-03-23 02:33:08,643 - DEBUG - Requesting: http://10.0.0.242:8082/domain/350aa37e-1f36-404e-942e-e5708f2ea1f5
2026-03-23 02:33:08,655 - DEBUG - Requesting: http://10.0.0.242:8082/project/28a85a14-571c-4641-a1e8-311f0b14d645
2026-03-23 02:33:08,725 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/44983cfc-7402-4269-8b69-d6af6f5535b8
2026-03-23 02:33:08,734 - DEBUG - ==>Verifying data for policy with id: c9861d4a-a91c-436f-8924-2240b2996646, fqn: ['default-domain', 'ctest-TestBasicPolicy-57235186', 'ctest-policy-allow-all-06162284']
2026-03-23 02:33:08,734 - INFO - VN ctest-vn-76805231 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-23 02:33:08,734 - DEBUG - Verifying the vn in opserver
2026-03-23 02:33:08,734 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57235186:ctest-vn-76805231 virtual network link through opserver 10.0.0.242
2026-03-23 02:33:08,735 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-03-23 02:33:09,044 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-03-23 02:33:09,104 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57235186:ctest-vn-76805231', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57235186:ctest-vn-76805231?flat'}
2026-03-23 02:33:09,104 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57235186:ctest-vn-76805231 is found in opserver
2026-03-23 02:33:09,114 - DEBUG - Do not have enough data to verify VN in agent
2026-03-23 02:33:09,119 - DEBUG - VRF ids for VN ctest-vn-76805231: {}
2026-03-23 02:33:09,119 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-03-23 02:33:09,125 - DEBUG - Requesting: http://10.0.0.242:8082/domain/350aa37e-1f36-404e-942e-e5708f2ea1f5
2026-03-23 02:33:09,137 - DEBUG - Requesting: http://10.0.0.242:8082/project/28a85a14-571c-4641-a1e8-311f0b14d645
2026-03-23 02:33:09,208 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/42d3e2af-7255-4629-9dd7-2e02d897c488
2026-03-23 02:33:09,220 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/42d3e2af-7255-4629-9dd7-2e02d897c488
2026-03-23 02:33:09,230 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/dbf50dea-c761-4cb7-9478-8702852029a6
2026-03-23 02:33:09,238 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/dbf50dea-c761-4cb7-9478-8702852029a6
2026-03-23 02:33:09,244 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/f593baeb-8789-4e63-96fd-52e400ca65c3
2026-03-23 02:33:09,251 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-23 02:33:09,251 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/42d3e2af-7255-4629-9dd7-2e02d897c488
2026-03-23 02:33:09,260 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/dbf50dea-c761-4cb7-9478-8702852029a6
2026-03-23 02:33:09,273 - INFO - Verified VN network id 12 for VN 42d3e2af-7255-4629-9dd7-2e02d897c488
2026-03-23 02:33:09,273 - INFO - Verifications in API Server for VN ctest-vn-37111232 passed
2026-03-23 02:33:09,273 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/42d3e2af-7255-4629-9dd7-2e02d897c488
2026-03-23 02:33:09,283 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/dbf50dea-c761-4cb7-9478-8702852029a6
2026-03-23 02:33:09,290 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/dbf50dea-c761-4cb7-9478-8702852029a6
2026-03-23 02:33:09,299 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/f593baeb-8789-4e63-96fd-52e400ca65c3
2026-03-23 02:33:09,312 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57235186:ctest-vn-37111232', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57235186', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4815441669754537513', 'uuid-lslong': '11373609973706114184'}, 'enable': 'true', 'created': '2026-03-23T02:33:06', 'last-modified': '2026-03-23T02:33:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.444409'}
2026-03-23 02:33:09,318 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-23 02:33:09,318 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37111232 passed
2026-03-23 02:33:09,318 - DEBUG - ====Verifying policy data for ctest-vn-37111232 in API_Server ======
2026-03-23 02:33:09,318 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-03-23 02:33:09,325 - DEBUG - Requesting: http://10.0.0.242:8082/domain/350aa37e-1f36-404e-942e-e5708f2ea1f5
2026-03-23 02:33:09,335 - DEBUG - Requesting: http://10.0.0.242:8082/project/28a85a14-571c-4641-a1e8-311f0b14d645
2026-03-23 02:33:09,405 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/42d3e2af-7255-4629-9dd7-2e02d897c488
2026-03-23 02:33:09,414 - DEBUG - ==>Verifying data for policy with id: c9861d4a-a91c-436f-8924-2240b2996646, fqn: ['default-domain', 'ctest-TestBasicPolicy-57235186', 'ctest-policy-allow-all-06162284']
2026-03-23 02:33:09,414 - INFO - VN ctest-vn-37111232 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-23 02:33:09,414 - DEBUG - Verifying the vn in opserver
2026-03-23 02:33:09,414 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57235186:ctest-vn-37111232 virtual network link through opserver 10.0.0.242
2026-03-23 02:33:09,414 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-03-23 02:33:09,424 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57235186:ctest-vn-37111232', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57235186:ctest-vn-37111232?flat'}
2026-03-23 02:33:09,424 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57235186:ctest-vn-37111232 is found in opserver
2026-03-23 02:33:09,436 - DEBUG - Do not have enough data to verify VN in agent
2026-03-23 02:33:09,441 - DEBUG - VRF ids for VN ctest-vn-37111232: {}
2026-03-23 02:33:09,503 - DEBUG - Services list from nova: [