2025-10-20 13:59:16,939 - INFO - Reading existing Domain with UUID 359ab6ea-20cc-44f4-9df6-3d9ae739b7c5
2025-10-20 13:59:16,950 - INFO - Using existing domain ['admin_domain'](359ab6ea-20cc-44f4-9df6-3d9ae739b7c5)
2025-10-20 13:59:17,154 - INFO - Project ctest-TestBasicPolicy-71960822 not found, creating it
2025-10-20 13:59:17,680 - INFO - Created Project:ctest-TestBasicPolicy-71960822, ID : 994e0023-974e-413f-ba2e-8dd749a7b743
2025-10-20 13:59:19,407 - INFO - ================================================================================
2025-10-20 13:59:19,407 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-20 13:59:19,407 - 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
2025-10-20 13:59:19,801 - DEBUG - Nothing to compare xmpp stats {'10.0.0.137': {'10.0.0.137': '0'}} with
2025-10-20 13:59:19,801 - INFO - Initial checks done. Running the testcase now
2025-10-20 13:59:19,801 - INFO -
2025-10-20 13:59:20,556 - DEBUG - Response for create_network : {'network': {'id': '41632307-47d6-4ecb-be2d-23b2cb9c137b', 'name': 'ctest-vn-35005359', 'tenant_id': '994e0023974e413fba2e8dd749a7b743', 'project_id': '994e0023974e413fba2e8dd749a7b743', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-71960822', 'ctest-vn-35005359'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-10-20 13:59:20,762 - DEBUG - Response for create_subnet : {'subnet': {'id': '73e2414f-8c2d-492a-b1ef-0fde3a68ae83', 'name': '', 'tenant_id': '994e0023974e413fba2e8dd749a7b743', 'network_id': '41632307-47d6-4ecb-be2d-23b2cb9c137b', 'ip_version': 4, 'cidr': '182.133.147.0/26', 'allocation_pools': [{'start': '182.133.147.2', 'end': '182.133.147.62'}], 'gateway_ip': '182.133.147.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-20T13:59:20.661663', 'updated_at': '2025-10-20T13:59:20.661663', 'dns_server_address': '182.133.147.2', 'tags': [], 'project_id': '994e0023974e413fba2e8dd749a7b743'}}
2025-10-20 13:59:20,827 - INFO - Created VN ctest-vn-35005359
2025-10-20 13:59:20,880 - DEBUG - VN ctest-vn-35005359 UUID is 41632307-47d6-4ecb-be2d-23b2cb9c137b
2025-10-20 13:59:21,402 - DEBUG - Response for create_network : {'network': {'id': '01bb910d-1226-4021-a549-a0a2d5526217', 'name': 'ctest-vn-62196205', 'tenant_id': '994e0023974e413fba2e8dd749a7b743', 'project_id': '994e0023974e413fba2e8dd749a7b743', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-71960822', 'ctest-vn-62196205'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-10-20 13:59:21,632 - DEBUG - Response for create_subnet : {'subnet': {'id': '873bd277-0979-4fdb-9263-709a881b864d', 'name': '', 'tenant_id': '994e0023974e413fba2e8dd749a7b743', 'network_id': '01bb910d-1226-4021-a549-a0a2d5526217', 'ip_version': 4, 'cidr': '101.128.227.0/26', 'allocation_pools': [{'start': '101.128.227.2', 'end': '101.128.227.62'}], 'gateway_ip': '101.128.227.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-20T13:59:21.527151', 'updated_at': '2025-10-20T13:59:21.527151', 'dns_server_address': '101.128.227.2', 'tags': [], 'project_id': '994e0023974e413fba2e8dd749a7b743'}}
2025-10-20 13:59:21,698 - INFO - Created VN ctest-vn-62196205
2025-10-20 13:59:21,752 - DEBUG - VN ctest-vn-62196205 UUID is 01bb910d-1226-4021-a549-a0a2d5526217
2025-10-20 13:59:21,960 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-71960822:ctest-vn-35005359, 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-71960822:ctest-vn-62196205, 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]
2025-10-20 13:59:22,355 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '41632307-47d6-4ecb-be2d-23b2cb9c137b', 'name': 'ctest-vn-35005359', 'tenant_id': '994e0023974e413fba2e8dd749a7b743', 'project_id': '994e0023974e413fba2e8dd749a7b743', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['73e2414f-8c2d-492a-b1ef-0fde3a68ae83'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-71960822', 'ctest-vn-35005359'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-71960822', 'ctest-policy-allow-all-37324797']], 'subnet_ipam': [{'subnet_cidr': '182.133.147.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-20T13:59:20.476734', 'updated_at': '2025-10-20T13:59:20.676710'}}
2025-10-20 13:59:22,691 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '01bb910d-1226-4021-a549-a0a2d5526217', 'name': 'ctest-vn-62196205', 'tenant_id': '994e0023974e413fba2e8dd749a7b743', 'project_id': '994e0023974e413fba2e8dd749a7b743', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['873bd277-0979-4fdb-9263-709a881b864d'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-71960822', 'ctest-vn-62196205'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-71960822', 'ctest-policy-allow-all-37324797']], 'subnet_ipam': [{'subnet_cidr': '101.128.227.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-20T13:59:21.325988', 'updated_at': '2025-10-20T13:59:21.541564'}}
2025-10-20 13:59:22,904 - DEBUG - Requesting: https://10.0.0.137:8082/domains
2025-10-20 13:59:23,250 - DEBUG - Requesting: https://10.0.0.137:8082/domains
2025-10-20 13:59:23,328 - DEBUG - Requesting: https://10.0.0.137:8082/domain/359ab6ea-20cc-44f4-9df6-3d9ae739b7c5
2025-10-20 13:59:23,385 - DEBUG - Requesting: https://10.0.0.137:8082/project/994e0023-974e-413f-ba2e-8dd749a7b743
2025-10-20 13:59:23,473 - DEBUG - Requesting: https://10.0.0.137:8082/virtual-network/41632307-47d6-4ecb-be2d-23b2cb9c137b
2025-10-20 13:59:23,530 - DEBUG - Requesting: https://10.0.0.137:8082/virtual-network/41632307-47d6-4ecb-be2d-23b2cb9c137b
2025-10-20 13:59:23,586 - DEBUG - Requesting: https://10.0.0.137:8082/routing-instance/bd41fa09-a175-4aee-bee4-3bab4012f7a4
2025-10-20 13:59:23,637 - DEBUG - Requesting: https://10.0.0.137:8082/routing-instance/bd41fa09-a175-4aee-bee4-3bab4012f7a4
2025-10-20 13:59:23,697 - DEBUG - Requesting: https://10.0.0.137:8082/route-target/b7b3dee0-6436-4cc0-a9f6-68b4c5fe876c
2025-10-20 13:59:23,753 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-20 13:59:23,753 - DEBUG - Requesting: https://10.0.0.137:8082/virtual-network/41632307-47d6-4ecb-be2d-23b2cb9c137b
2025-10-20 13:59:23,811 - DEBUG - Requesting: https://10.0.0.137:8082/routing-instance/bd41fa09-a175-4aee-bee4-3bab4012f7a4
2025-10-20 13:59:23,874 - INFO - Verified VN network id 11 for VN 41632307-47d6-4ecb-be2d-23b2cb9c137b
2025-10-20 13:59:23,874 - INFO - Verifications in API Server for VN ctest-vn-35005359 passed
2025-10-20 13:59:23,875 - DEBUG - Requesting: https://10.0.0.137:8082/virtual-network/41632307-47d6-4ecb-be2d-23b2cb9c137b
2025-10-20 13:59:23,931 - DEBUG - Requesting: https://10.0.0.137:8082/routing-instance/bd41fa09-a175-4aee-bee4-3bab4012f7a4
2025-10-20 13:59:23,985 - DEBUG - Requesting: https://10.0.0.137:8082/routing-instance/bd41fa09-a175-4aee-bee4-3bab4012f7a4
2025-10-20 13:59:24,041 - DEBUG - Requesting: https://10.0.0.137:8082/route-target/b7b3dee0-6436-4cc0-a9f6-68b4c5fe876c
2025-10-20 13:59:24,141 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-71960822:ctest-vn-35005359', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71960822', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4711648149336641227', 'uuid-lslong': '13703648491985441659'}, 'enable': 'true', 'created': '2025-10-20T13:59:20', 'last-modified': '2025-10-20T13:59:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.809068'}
2025-10-20 13:59:24,190 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-20 13:59:24,191 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35005359 passed
2025-10-20 13:59:24,191 - DEBUG - ====Verifying policy data for ctest-vn-35005359 in API_Server ======
2025-10-20 13:59:24,191 - DEBUG - Requesting: https://10.0.0.137:8082/domains
2025-10-20 13:59:24,240 - DEBUG - Requesting: https://10.0.0.137:8082/domain/359ab6ea-20cc-44f4-9df6-3d9ae739b7c5
2025-10-20 13:59:24,297 - DEBUG - Requesting: https://10.0.0.137:8082/project/994e0023-974e-413f-ba2e-8dd749a7b743
2025-10-20 13:59:24,377 - DEBUG - Requesting: https://10.0.0.137:8082/virtual-network/41632307-47d6-4ecb-be2d-23b2cb9c137b
2025-10-20 13:59:24,434 - DEBUG - ==>Verifying data for policy with id: 40432e16-7084-4a8f-9645-7b63ba765dbe, fqn: ['admin_domain', 'ctest-TestBasicPolicy-71960822', 'ctest-policy-allow-all-37324797']
2025-10-20 13:59:24,434 - INFO - VN ctest-vn-35005359 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-20 13:59:24,434 - DEBUG - Verifying the vn in opserver
2025-10-20 13:59:24,434 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-71960822:ctest-vn-35005359 virtual network link through opserver 10.0.0.137
2025-10-20 13:59:24,434 - DEBUG - Requesting: https://10.0.0.137:8081/analytics/uves/virtual-networks
2025-10-20 13:59:24,780 - DEBUG - Requesting: https://10.0.0.137:8081/analytics/uves/virtual-networks
2025-10-20 13:59:24,893 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-71960822:ctest-vn-35005359', 'href': 'https://10.0.0.137:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-71960822:ctest-vn-35005359?flat'}
2025-10-20 13:59:24,893 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-71960822:ctest-vn-35005359 is found in opserver
2025-10-20 13:59:24,996 - DEBUG - Do not have enough data to verify VN in agent
2025-10-20 13:59:25,049 - DEBUG - VRF ids for VN ctest-vn-35005359: {}
2025-10-20 13:59:25,049 - DEBUG - Requesting: https://10.0.0.137:8082/domains
2025-10-20 13:59:25,100 - DEBUG - Requesting: https://10.0.0.137:8082/domain/359ab6ea-20cc-44f4-9df6-3d9ae739b7c5
2025-10-20 13:59:25,162 - DEBUG - Requesting: https://10.0.0.137:8082/project/994e0023-974e-413f-ba2e-8dd749a7b743
2025-10-20 13:59:25,241 - DEBUG - Requesting: https://10.0.0.137:8082/virtual-network/01bb910d-1226-4021-a549-a0a2d5526217
2025-10-20 13:59:25,298 - DEBUG - Requesting: https://10.0.0.137:8082/virtual-network/01bb910d-1226-4021-a549-a0a2d5526217
2025-10-20 13:59:25,354 - DEBUG - Requesting: https://10.0.0.137:8082/routing-instance/ee7f48b4-77ab-4395-a61b-ece5b057e5d2
2025-10-20 13:59:25,409 - DEBUG - Requesting: https://10.0.0.137:8082/routing-instance/ee7f48b4-77ab-4395-a61b-ece5b057e5d2
2025-10-20 13:59:25,461 - DEBUG - Requesting: https://10.0.0.137:8082/route-target/d41e6302-e6d4-4cc9-8f74-df008f2538b1
2025-10-20 13:59:25,513 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-20 13:59:25,513 - DEBUG - Requesting: https://10.0.0.137:8082/virtual-network/01bb910d-1226-4021-a549-a0a2d5526217
2025-10-20 13:59:25,574 - DEBUG - Requesting: https://10.0.0.137:8082/routing-instance/ee7f48b4-77ab-4395-a61b-ece5b057e5d2
2025-10-20 13:59:25,638 - INFO - Verified VN network id 12 for VN 01bb910d-1226-4021-a549-a0a2d5526217
2025-10-20 13:59:25,638 - INFO - Verifications in API Server for VN ctest-vn-62196205 passed
2025-10-20 13:59:25,638 - DEBUG - Requesting: https://10.0.0.137:8082/virtual-network/01bb910d-1226-4021-a549-a0a2d5526217
2025-10-20 13:59:25,698 - DEBUG - Requesting: https://10.0.0.137:8082/routing-instance/ee7f48b4-77ab-4395-a61b-ece5b057e5d2
2025-10-20 13:59:25,753 - DEBUG - Requesting: https://10.0.0.137:8082/routing-instance/ee7f48b4-77ab-4395-a61b-ece5b057e5d2
2025-10-20 13:59:25,809 - DEBUG - Requesting: https://10.0.0.137:8082/route-target/d41e6302-e6d4-4cc9-8f74-df008f2538b1
2025-10-20 13:59:25,910 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-71960822:ctest-vn-62196205', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71960822', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '124852900007919649', 'uuid-lslong': '11910227310782079511'}, 'enable': 'true', 'created': '2025-10-20T13:59:21', 'last-modified': '2025-10-20T13:59:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.245827'}
2025-10-20 13:59:25,962 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-20 13:59:25,963 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62196205 passed
2025-10-20 13:59:25,963 - DEBUG - ====Verifying policy data for ctest-vn-62196205 in API_Server ======
2025-10-20 13:59:25,963 - DEBUG - Requesting: https://10.0.0.137:8082/domains
2025-10-20 13:59:26,013 - DEBUG - Requesting: https://10.0.0.137:8082/domain/359ab6ea-20cc-44f4-9df6-3d9ae739b7c5
2025-10-20 13:59:26,074 - DEBUG - Requesting: https://10.0.0.137:8082/project/994e0023-974e-413f-ba2e-8dd749a7b743
2025-10-20 13:59:26,145 - DEBUG - Requesting: https://10.0.0.137:8082/virtual-network/01bb910d-1226-4021-a549-a0a2d5526217
2025-10-20 13:59:26,202 - DEBUG - ==>Verifying data for policy with id: 40432e16-7084-4a8f-9645-7b63ba765dbe, fqn: ['admin_domain', 'ctest-TestBasicPolicy-71960822', 'ctest-policy-allow-all-37324797']
2025-10-20 13:59:26,202 - INFO - VN ctest-vn-62196205 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-20 13:59:26,202 - DEBUG - Verifying the vn in opserver
2025-10-20 13:59:26,202 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-71960822:ctest-vn-62196205 virtual network link through opserver 10.0.0.137
2025-10-20 13:59:26,202 - DEBUG - Requesting: https://10.0.0.137:8081/analytics/uves/virtual-networks
2025-10-20 13:59:26,256 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-71960822:ctest-vn-62196205', 'href': 'https://10.0.0.137:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-71960822:ctest-vn-62196205?flat'}
2025-10-20 13:59:26,256 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-71960822:ctest-vn-62196205 is found in opserver
2025-10-20 13:59:26,353 - DEBUG - Do not have enough data to verify VN in agent
2025-10-20 13:59:26,400 - DEBUG - VRF ids for VN ctest-vn-62196205: {}
2025-10-20 13:59:26,472 - DEBUG - Services list from nova: [