2025-12-09 03:24:31,281 - INFO - Domain Default found not creating
2025-12-09 03:24:31,447 - INFO - Project ctest-TestBasicPolicy-48324629 not found, creating it
2025-12-09 03:24:31,887 - INFO - Created Project:ctest-TestBasicPolicy-48324629, ID : c8fa96e3-f404-4233-ba5f-a4a62b57f478
2025-12-09 03:24:33,329 - INFO - ================================================================================
2025-12-09 03:24:33,329 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-09 03:24:33,329 - 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-12-09 03:24:33,585 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.14': '0'}} with
2025-12-09 03:24:33,585 - INFO - Initial checks done. Running the testcase now
2025-12-09 03:24:33,585 - INFO -
2025-12-09 03:24:34,115 - DEBUG - Response for create_network : {'network': {'id': '132b4274-55a4-4061-99ee-93c952c59da0', 'name': 'ctest-vn-16554543', 'tenant_id': 'c8fa96e3f4044233ba5fa4a62b57f478', 'project_id': 'c8fa96e3f4044233ba5fa4a62b57f478', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48324629', 'ctest-vn-16554543'], 'port_security_enabled': True, 'description': ''}}
2025-12-09 03:24:34,307 - DEBUG - Response for create_subnet : {'subnet': {'id': '7c8f9bd5-b938-41bc-9dd3-ff465fe007de', 'name': '', 'tenant_id': 'c8fa96e3f4044233ba5fa4a62b57f478', 'network_id': '132b4274-55a4-4061-99ee-93c952c59da0', 'ip_version': 4, 'cidr': '3.38.163.128/26', 'allocation_pools': [{'start': '3.38.163.130', 'end': '3.38.163.190'}], 'gateway_ip': '3.38.163.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3.38.163.130', 'tags': [], 'project_id': 'c8fa96e3f4044233ba5fa4a62b57f478'}}
2025-12-09 03:24:34,322 - INFO - Created VN ctest-vn-16554543
2025-12-09 03:24:34,372 - DEBUG - VN ctest-vn-16554543 UUID is 132b4274-55a4-4061-99ee-93c952c59da0
2025-12-09 03:24:34,676 - DEBUG - Response for create_network : {'network': {'id': 'c1bc44b9-4210-47bd-a912-5297433ec64f', 'name': 'ctest-vn-60854720', 'tenant_id': 'c8fa96e3f4044233ba5fa4a62b57f478', 'project_id': 'c8fa96e3f4044233ba5fa4a62b57f478', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48324629', 'ctest-vn-60854720'], 'port_security_enabled': True, 'description': ''}}
2025-12-09 03:24:34,853 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f4e69383-d2e0-4f9f-a758-5030b9ba4b11', 'name': '', 'tenant_id': 'c8fa96e3f4044233ba5fa4a62b57f478', 'network_id': 'c1bc44b9-4210-47bd-a912-5297433ec64f', 'ip_version': 4, 'cidr': '115.229.116.64/26', 'allocation_pools': [{'start': '115.229.116.66', 'end': '115.229.116.126'}], 'gateway_ip': '115.229.116.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '115.229.116.66', 'tags': [], 'project_id': 'c8fa96e3f4044233ba5fa4a62b57f478'}}
2025-12-09 03:24:34,871 - INFO - Created VN ctest-vn-60854720
2025-12-09 03:24:34,924 - DEBUG - VN ctest-vn-60854720 UUID is c1bc44b9-4210-47bd-a912-5297433ec64f
2025-12-09 03:24:35,072 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-48324629:ctest-vn-16554543, 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-48324629:ctest-vn-60854720, 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-12-09 03:24:35,353 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '132b4274-55a4-4061-99ee-93c952c59da0', 'name': 'ctest-vn-16554543', 'tenant_id': 'c8fa96e3f4044233ba5fa4a62b57f478', 'project_id': 'c8fa96e3f4044233ba5fa4a62b57f478', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7c8f9bd5-b938-41bc-9dd3-ff465fe007de'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48324629', 'ctest-vn-16554543'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48324629', 'ctest-policy-allow-all-80176726']], 'subnet_ipam': [{'subnet_cidr': '3.38.163.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-09 03:24:35,591 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c1bc44b9-4210-47bd-a912-5297433ec64f', 'name': 'ctest-vn-60854720', 'tenant_id': 'c8fa96e3f4044233ba5fa4a62b57f478', 'project_id': 'c8fa96e3f4044233ba5fa4a62b57f478', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f4e69383-d2e0-4f9f-a758-5030b9ba4b11'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48324629', 'ctest-vn-60854720'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48324629', 'ctest-policy-allow-all-80176726']], 'subnet_ipam': [{'subnet_cidr': '115.229.116.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-09 03:24:35,752 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-12-09 03:24:36,048 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-12-09 03:24:36,081 - DEBUG - Requesting: http://10.0.0.19:8082/domain/805ad1c5-d90d-4cdc-b9a3-318ea9ede812
2025-12-09 03:24:36,096 - DEBUG - Requesting: http://10.0.0.19:8082/project/c8fa96e3-f404-4233-ba5f-a4a62b57f478
2025-12-09 03:24:36,170 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/132b4274-55a4-4061-99ee-93c952c59da0
2025-12-09 03:24:36,179 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/132b4274-55a4-4061-99ee-93c952c59da0
2025-12-09 03:24:36,186 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/d205f02e-396b-4fbb-b9bf-4d22b7d12cc5
2025-12-09 03:24:36,192 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/d205f02e-396b-4fbb-b9bf-4d22b7d12cc5
2025-12-09 03:24:36,198 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/70ca6cbf-24e0-483c-9b81-0a1f2f39317c
2025-12-09 03:24:36,203 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-09 03:24:36,203 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/132b4274-55a4-4061-99ee-93c952c59da0
2025-12-09 03:24:36,211 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/d205f02e-396b-4fbb-b9bf-4d22b7d12cc5
2025-12-09 03:24:36,224 - INFO - Verified VN network id 11 for VN 132b4274-55a4-4061-99ee-93c952c59da0
2025-12-09 03:24:36,224 - INFO - Verifications in API Server for VN ctest-vn-16554543 passed
2025-12-09 03:24:36,225 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/132b4274-55a4-4061-99ee-93c952c59da0
2025-12-09 03:24:36,232 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/d205f02e-396b-4fbb-b9bf-4d22b7d12cc5
2025-12-09 03:24:36,237 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/d205f02e-396b-4fbb-b9bf-4d22b7d12cc5
2025-12-09 03:24:36,242 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/70ca6cbf-24e0-483c-9b81-0a1f2f39317c
2025-12-09 03:24:36,251 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48324629:ctest-vn-16554543', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48324629', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1381270778139656289', 'uuid-lslong': '11091965425146502560'}, 'enable': 'true', 'created': '2025-12-09T03:24:34', 'last-modified': '2025-12-09T03:24:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.919147'}
2025-12-09 03:24:36,257 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-09 03:24:36,257 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16554543 passed
2025-12-09 03:24:36,257 - DEBUG - ====Verifying policy data for ctest-vn-16554543 in API_Server ======
2025-12-09 03:24:36,257 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-12-09 03:24:36,261 - DEBUG - Requesting: http://10.0.0.19:8082/domain/805ad1c5-d90d-4cdc-b9a3-318ea9ede812
2025-12-09 03:24:36,271 - DEBUG - Requesting: http://10.0.0.19:8082/project/c8fa96e3-f404-4233-ba5f-a4a62b57f478
2025-12-09 03:24:36,336 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/132b4274-55a4-4061-99ee-93c952c59da0
2025-12-09 03:24:36,343 - DEBUG - ==>Verifying data for policy with id: 8d37452b-e071-408e-bc83-4f169df20d90, fqn: ['default-domain', 'ctest-TestBasicPolicy-48324629', 'ctest-policy-allow-all-80176726']
2025-12-09 03:24:36,343 - INFO - VN ctest-vn-16554543 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-09 03:24:36,343 - DEBUG - Verifying the vn in opserver
2025-12-09 03:24:36,343 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48324629:ctest-vn-16554543 virtual network link through opserver 10.0.0.19
2025-12-09 03:24:36,344 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-12-09 03:24:36,642 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-12-09 03:24:36,697 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48324629:ctest-vn-16554543', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48324629:ctest-vn-16554543?flat'}
2025-12-09 03:24:36,698 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48324629:ctest-vn-16554543 is found in opserver
2025-12-09 03:24:36,706 - DEBUG - Do not have enough data to verify VN in agent
2025-12-09 03:24:36,709 - DEBUG - VRF ids for VN ctest-vn-16554543: {}
2025-12-09 03:24:36,710 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-12-09 03:24:36,714 - DEBUG - Requesting: http://10.0.0.19:8082/domain/805ad1c5-d90d-4cdc-b9a3-318ea9ede812
2025-12-09 03:24:36,725 - DEBUG - Requesting: http://10.0.0.19:8082/project/c8fa96e3-f404-4233-ba5f-a4a62b57f478
2025-12-09 03:24:36,795 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/c1bc44b9-4210-47bd-a912-5297433ec64f
2025-12-09 03:24:36,814 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/c1bc44b9-4210-47bd-a912-5297433ec64f
2025-12-09 03:24:36,822 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/671775f2-2dee-4789-b82c-836ad540e066
2025-12-09 03:24:36,828 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/671775f2-2dee-4789-b82c-836ad540e066
2025-12-09 03:24:36,835 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/6d38f25d-32d4-4d13-bc14-9c772d2a55b8
2025-12-09 03:24:36,841 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-09 03:24:36,841 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/c1bc44b9-4210-47bd-a912-5297433ec64f
2025-12-09 03:24:36,848 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/671775f2-2dee-4789-b82c-836ad540e066
2025-12-09 03:24:36,859 - INFO - Verified VN network id 12 for VN c1bc44b9-4210-47bd-a912-5297433ec64f
2025-12-09 03:24:36,859 - INFO - Verifications in API Server for VN ctest-vn-60854720 passed
2025-12-09 03:24:36,859 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/c1bc44b9-4210-47bd-a912-5297433ec64f
2025-12-09 03:24:36,866 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/671775f2-2dee-4789-b82c-836ad540e066
2025-12-09 03:24:36,871 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/671775f2-2dee-4789-b82c-836ad540e066
2025-12-09 03:24:36,876 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/6d38f25d-32d4-4d13-bc14-9c772d2a55b8
2025-12-09 03:24:36,885 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48324629:ctest-vn-60854720', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48324629', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13960108507409696701', 'uuid-lslong': '12182890751612339791'}, 'enable': 'true', 'created': '2025-12-09T03:24:34', 'last-modified': '2025-12-09T03:24:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.327561'}
2025-12-09 03:24:36,889 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-09 03:24:36,889 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60854720 passed
2025-12-09 03:24:36,889 - DEBUG - ====Verifying policy data for ctest-vn-60854720 in API_Server ======
2025-12-09 03:24:36,890 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-12-09 03:24:36,894 - DEBUG - Requesting: http://10.0.0.19:8082/domain/805ad1c5-d90d-4cdc-b9a3-318ea9ede812
2025-12-09 03:24:36,903 - DEBUG - Requesting: http://10.0.0.19:8082/project/c8fa96e3-f404-4233-ba5f-a4a62b57f478
2025-12-09 03:24:36,969 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/c1bc44b9-4210-47bd-a912-5297433ec64f
2025-12-09 03:24:36,977 - DEBUG - ==>Verifying data for policy with id: 8d37452b-e071-408e-bc83-4f169df20d90, fqn: ['default-domain', 'ctest-TestBasicPolicy-48324629', 'ctest-policy-allow-all-80176726']
2025-12-09 03:24:36,977 - INFO - VN ctest-vn-60854720 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-09 03:24:36,977 - DEBUG - Verifying the vn in opserver
2025-12-09 03:24:36,977 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48324629:ctest-vn-60854720 virtual network link through opserver 10.0.0.19
2025-12-09 03:24:36,977 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-12-09 03:24:36,984 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48324629:ctest-vn-60854720', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48324629:ctest-vn-60854720?flat'}
2025-12-09 03:24:36,984 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48324629:ctest-vn-60854720 is found in opserver
2025-12-09 03:24:36,992 - DEBUG - Do not have enough data to verify VN in agent
2025-12-09 03:24:36,996 - DEBUG - VRF ids for VN ctest-vn-60854720: {}
2025-12-09 03:24:37,048 - DEBUG - Services list from nova: [