2026-03-06 13:13:58,608 - INFO - Reading existing Domain with UUID 18ce25eb-0c3f-4af5-9f79-0fc6a509b3f1
2026-03-06 13:13:58,621 - INFO - Using existing domain ['admin_domain'](18ce25eb-0c3f-4af5-9f79-0fc6a509b3f1)
2026-03-06 13:13:58,847 - INFO - Project ctest-TestBasicPolicy-28649092 not found, creating it
2026-03-06 13:13:59,387 - INFO - Created Project:ctest-TestBasicPolicy-28649092, ID : 82df8dca-fb59-477e-921a-87fd13ff2955
2026-03-06 13:14:01,293 - INFO - ================================================================================
2026-03-06 13:14:01,294 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-06 13:14:01,294 - 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-06 13:14:01,701 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.0.0.41': '0'}} with
2026-03-06 13:14:01,701 - INFO - Initial checks done. Running the testcase now
2026-03-06 13:14:01,701 - INFO -
2026-03-06 13:14:02,541 - DEBUG - Response for create_network : {'network': {'id': '45ed1af8-0807-4378-8c2c-d62f502bdeca', 'name': 'ctest-vn-54699782', 'tenant_id': '82df8dcafb59477e921a87fd13ff2955', 'project_id': '82df8dcafb59477e921a87fd13ff2955', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-28649092', 'ctest-vn-54699782'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2026-03-06 13:14:02,809 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a2c3db57-fb68-4aac-87e5-8ebd0a70898f', 'name': '', 'tenant_id': '82df8dcafb59477e921a87fd13ff2955', 'network_id': '45ed1af8-0807-4378-8c2c-d62f502bdeca', 'ip_version': 4, 'cidr': '195.16.244.128/26', 'allocation_pools': [{'start': '195.16.244.130', 'end': '195.16.244.190'}], 'gateway_ip': '195.16.244.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-03-06T13:14:02.701277', 'updated_at': '2026-03-06T13:14:02.701277', 'dns_server_address': '195.16.244.130', 'tags': [], 'project_id': '82df8dcafb59477e921a87fd13ff2955'}}
2026-03-06 13:14:02,878 - INFO - Created VN ctest-vn-54699782
2026-03-06 13:14:02,932 - DEBUG - VN ctest-vn-54699782 UUID is 45ed1af8-0807-4378-8c2c-d62f502bdeca
2026-03-06 13:14:03,457 - DEBUG - Response for create_network : {'network': {'id': '97c19c4d-63c4-4a0b-888d-4e4263d204d1', 'name': 'ctest-vn-32255144', 'tenant_id': '82df8dcafb59477e921a87fd13ff2955', 'project_id': '82df8dcafb59477e921a87fd13ff2955', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-28649092', 'ctest-vn-32255144'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2026-03-06 13:14:03,677 - DEBUG - Response for create_subnet : {'subnet': {'id': '945775f1-6ed9-40dc-9429-2a22529c79a8', 'name': '', 'tenant_id': '82df8dcafb59477e921a87fd13ff2955', 'network_id': '97c19c4d-63c4-4a0b-888d-4e4263d204d1', 'ip_version': 4, 'cidr': '122.245.251.0/26', 'allocation_pools': [{'start': '122.245.251.2', 'end': '122.245.251.62'}], 'gateway_ip': '122.245.251.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-03-06T13:14:03.562714', 'updated_at': '2026-03-06T13:14:03.562714', 'dns_server_address': '122.245.251.2', 'tags': [], 'project_id': '82df8dcafb59477e921a87fd13ff2955'}}
2026-03-06 13:14:03,746 - INFO - Created VN ctest-vn-32255144
2026-03-06 13:14:03,803 - DEBUG - VN ctest-vn-32255144 UUID is 97c19c4d-63c4-4a0b-888d-4e4263d204d1
2026-03-06 13:14:04,028 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-28649092:ctest-vn-54699782, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-28649092:ctest-vn-32255144, 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-06 13:14:04,460 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '45ed1af8-0807-4378-8c2c-d62f502bdeca', 'name': 'ctest-vn-54699782', 'tenant_id': '82df8dcafb59477e921a87fd13ff2955', 'project_id': '82df8dcafb59477e921a87fd13ff2955', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a2c3db57-fb68-4aac-87e5-8ebd0a70898f'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-28649092', 'ctest-vn-54699782'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-28649092', 'ctest-policy-allow-all-43496558']], 'subnet_ipam': [{'subnet_cidr': '195.16.244.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-03-06T13:14:02.451677', 'updated_at': '2026-03-06T13:14:02.717085'}}
2026-03-06 13:14:04,833 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '97c19c4d-63c4-4a0b-888d-4e4263d204d1', 'name': 'ctest-vn-32255144', 'tenant_id': '82df8dcafb59477e921a87fd13ff2955', 'project_id': '82df8dcafb59477e921a87fd13ff2955', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['945775f1-6ed9-40dc-9429-2a22529c79a8'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-28649092', 'ctest-vn-32255144'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-28649092', 'ctest-policy-allow-all-43496558']], 'subnet_ipam': [{'subnet_cidr': '122.245.251.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-03-06T13:14:03.378621', 'updated_at': '2026-03-06T13:14:03.579313'}}
2026-03-06 13:14:05,044 - DEBUG - Requesting: https://10.0.0.41:8082/domains
2026-03-06 13:14:05,401 - DEBUG - Requesting: https://10.0.0.41:8082/domains
2026-03-06 13:14:05,488 - DEBUG - Requesting: https://10.0.0.41:8082/domain/18ce25eb-0c3f-4af5-9f79-0fc6a509b3f1
2026-03-06 13:14:05,549 - DEBUG - Requesting: https://10.0.0.41:8082/project/82df8dca-fb59-477e-921a-87fd13ff2955
2026-03-06 13:14:05,629 - DEBUG - Requesting: https://10.0.0.41:8082/virtual-network/45ed1af8-0807-4378-8c2c-d62f502bdeca
2026-03-06 13:14:05,690 - DEBUG - Requesting: https://10.0.0.41:8082/virtual-network/45ed1af8-0807-4378-8c2c-d62f502bdeca
2026-03-06 13:14:05,749 - DEBUG - Requesting: https://10.0.0.41:8082/routing-instance/c18a1984-26b7-4f06-b8bf-9016259b713a
2026-03-06 13:14:05,805 - DEBUG - Requesting: https://10.0.0.41:8082/routing-instance/c18a1984-26b7-4f06-b8bf-9016259b713a
2026-03-06 13:14:05,861 - DEBUG - Requesting: https://10.0.0.41:8082/route-target/19e93667-6253-4351-bf6a-8cc5f38c3464
2026-03-06 13:14:05,916 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-06 13:14:05,916 - DEBUG - Requesting: https://10.0.0.41:8082/virtual-network/45ed1af8-0807-4378-8c2c-d62f502bdeca
2026-03-06 13:14:05,973 - DEBUG - Requesting: https://10.0.0.41:8082/routing-instance/c18a1984-26b7-4f06-b8bf-9016259b713a
2026-03-06 13:14:06,039 - INFO - Verified VN network id 11 for VN 45ed1af8-0807-4378-8c2c-d62f502bdeca
2026-03-06 13:14:06,040 - INFO - Verifications in API Server for VN ctest-vn-54699782 passed
2026-03-06 13:14:06,040 - DEBUG - Requesting: https://10.0.0.41:8082/virtual-network/45ed1af8-0807-4378-8c2c-d62f502bdeca
2026-03-06 13:14:06,102 - DEBUG - Requesting: https://10.0.0.41:8082/routing-instance/c18a1984-26b7-4f06-b8bf-9016259b713a
2026-03-06 13:14:06,165 - DEBUG - Requesting: https://10.0.0.41:8082/routing-instance/c18a1984-26b7-4f06-b8bf-9016259b713a
2026-03-06 13:14:06,225 - DEBUG - Requesting: https://10.0.0.41:8082/route-target/19e93667-6253-4351-bf6a-8cc5f38c3464
2026-03-06 13:14:06,333 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-28649092:ctest-vn-54699782', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28649092', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5038713210686358392', 'uuid-lslong': '10100683562982039242'}, 'enable': 'true', 'created': '2026-03-06T13:14:02', 'last-modified': '2026-03-06T13:14:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.897934'}
2026-03-06 13:14:06,386 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-06 13:14:06,386 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54699782 passed
2026-03-06 13:14:06,386 - DEBUG - ====Verifying policy data for ctest-vn-54699782 in API_Server ======
2026-03-06 13:14:06,386 - DEBUG - Requesting: https://10.0.0.41:8082/domains
2026-03-06 13:14:06,444 - DEBUG - Requesting: https://10.0.0.41:8082/domain/18ce25eb-0c3f-4af5-9f79-0fc6a509b3f1
2026-03-06 13:14:06,505 - DEBUG - Requesting: https://10.0.0.41:8082/project/82df8dca-fb59-477e-921a-87fd13ff2955
2026-03-06 13:14:06,593 - DEBUG - Requesting: https://10.0.0.41:8082/virtual-network/45ed1af8-0807-4378-8c2c-d62f502bdeca
2026-03-06 13:14:06,654 - DEBUG - ==>Verifying data for policy with id: 79887141-40db-411a-ac69-ed4c531255b2, fqn: ['admin_domain', 'ctest-TestBasicPolicy-28649092', 'ctest-policy-allow-all-43496558']
2026-03-06 13:14:06,654 - INFO - VN ctest-vn-54699782 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-06 13:14:06,654 - DEBUG - Verifying the vn in opserver
2026-03-06 13:14:06,654 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-28649092:ctest-vn-54699782 virtual network link through opserver 10.0.0.41
2026-03-06 13:14:06,654 - DEBUG - Requesting: https://10.0.0.41:8081/analytics/uves/virtual-networks
2026-03-06 13:14:07,005 - DEBUG - Requesting: https://10.0.0.41:8081/analytics/uves/virtual-networks
2026-03-06 13:14:07,132 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-28649092:ctest-vn-54699782', 'href': 'https://10.0.0.41:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-28649092:ctest-vn-54699782?flat'}
2026-03-06 13:14:07,132 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-28649092:ctest-vn-54699782 is found in opserver
2026-03-06 13:14:07,236 - DEBUG - Do not have enough data to verify VN in agent
2026-03-06 13:14:07,284 - DEBUG - VRF ids for VN ctest-vn-54699782: {}
2026-03-06 13:14:07,284 - DEBUG - Requesting: https://10.0.0.41:8082/domains
2026-03-06 13:14:07,336 - DEBUG - Requesting: https://10.0.0.41:8082/domain/18ce25eb-0c3f-4af5-9f79-0fc6a509b3f1
2026-03-06 13:14:07,401 - DEBUG - Requesting: https://10.0.0.41:8082/project/82df8dca-fb59-477e-921a-87fd13ff2955
2026-03-06 13:14:07,481 - DEBUG - Requesting: https://10.0.0.41:8082/virtual-network/97c19c4d-63c4-4a0b-888d-4e4263d204d1
2026-03-06 13:14:07,542 - DEBUG - Requesting: https://10.0.0.41:8082/virtual-network/97c19c4d-63c4-4a0b-888d-4e4263d204d1
2026-03-06 13:14:07,597 - DEBUG - Requesting: https://10.0.0.41:8082/routing-instance/36ec4940-620c-4f40-a772-be792226131d
2026-03-06 13:14:07,653 - DEBUG - Requesting: https://10.0.0.41:8082/routing-instance/36ec4940-620c-4f40-a772-be792226131d
2026-03-06 13:14:07,713 - DEBUG - Requesting: https://10.0.0.41:8082/route-target/c2bae508-2bd8-492f-82c5-7d4256c9bdcb
2026-03-06 13:14:07,773 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-06 13:14:07,773 - DEBUG - Requesting: https://10.0.0.41:8082/virtual-network/97c19c4d-63c4-4a0b-888d-4e4263d204d1
2026-03-06 13:14:07,830 - DEBUG - Requesting: https://10.0.0.41:8082/routing-instance/36ec4940-620c-4f40-a772-be792226131d
2026-03-06 13:14:07,898 - INFO - Verified VN network id 12 for VN 97c19c4d-63c4-4a0b-888d-4e4263d204d1
2026-03-06 13:14:07,898 - INFO - Verifications in API Server for VN ctest-vn-32255144 passed
2026-03-06 13:14:07,898 - DEBUG - Requesting: https://10.0.0.41:8082/virtual-network/97c19c4d-63c4-4a0b-888d-4e4263d204d1
2026-03-06 13:14:07,957 - DEBUG - Requesting: https://10.0.0.41:8082/routing-instance/36ec4940-620c-4f40-a772-be792226131d
2026-03-06 13:14:08,012 - DEBUG - Requesting: https://10.0.0.41:8082/routing-instance/36ec4940-620c-4f40-a772-be792226131d
2026-03-06 13:14:08,069 - DEBUG - Requesting: https://10.0.0.41:8082/route-target/c2bae508-2bd8-492f-82c5-7d4256c9bdcb
2026-03-06 13:14:08,177 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-28649092:ctest-vn-32255144', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28649092', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10935193226432498187', 'uuid-lslong': '9839606807923918033'}, 'enable': 'true', 'created': '2026-03-06T13:14:03', 'last-modified': '2026-03-06T13:14:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.375282'}
2026-03-06 13:14:08,230 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-06 13:14:08,230 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32255144 passed
2026-03-06 13:14:08,230 - DEBUG - ====Verifying policy data for ctest-vn-32255144 in API_Server ======
2026-03-06 13:14:08,230 - DEBUG - Requesting: https://10.0.0.41:8082/domains
2026-03-06 13:14:08,288 - DEBUG - Requesting: https://10.0.0.41:8082/domain/18ce25eb-0c3f-4af5-9f79-0fc6a509b3f1
2026-03-06 13:14:08,349 - DEBUG - Requesting: https://10.0.0.41:8082/project/82df8dca-fb59-477e-921a-87fd13ff2955
2026-03-06 13:14:08,433 - DEBUG - Requesting: https://10.0.0.41:8082/virtual-network/97c19c4d-63c4-4a0b-888d-4e4263d204d1
2026-03-06 13:14:08,490 - DEBUG - ==>Verifying data for policy with id: 79887141-40db-411a-ac69-ed4c531255b2, fqn: ['admin_domain', 'ctest-TestBasicPolicy-28649092', 'ctest-policy-allow-all-43496558']
2026-03-06 13:14:08,490 - INFO - VN ctest-vn-32255144 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-06 13:14:08,490 - DEBUG - Verifying the vn in opserver
2026-03-06 13:14:08,490 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-28649092:ctest-vn-32255144 virtual network link through opserver 10.0.0.41
2026-03-06 13:14:08,490 - DEBUG - Requesting: https://10.0.0.41:8081/analytics/uves/virtual-networks
2026-03-06 13:14:08,544 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-28649092:ctest-vn-32255144', 'href': 'https://10.0.0.41:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-28649092:ctest-vn-32255144?flat'}
2026-03-06 13:14:08,544 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-28649092:ctest-vn-32255144 is found in opserver
2026-03-06 13:14:08,648 - DEBUG - Do not have enough data to verify VN in agent
2026-03-06 13:14:08,700 - DEBUG - VRF ids for VN ctest-vn-32255144: {}
2026-03-06 13:14:08,777 - DEBUG - Services list from nova: [