2025-12-08 19:42:20,229 - INFO - Domain Default found not creating
2025-12-08 19:42:20,424 - INFO - Project ctest-TestBasicPolicy-34157352 not found, creating it
2025-12-08 19:42:20,906 - INFO - Created Project:ctest-TestBasicPolicy-34157352, ID : a692b332-0eb7-4f91-9177-6fefea7da23a
2025-12-08 19:42:22,494 - INFO - ================================================================================
2025-12-08 19:42:22,494 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-08 19:42:22,494 - 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-08 19:42:22,755 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.25': '0'}} with
2025-12-08 19:42:22,755 - INFO - Initial checks done. Running the testcase now
2025-12-08 19:42:22,755 - INFO -
2025-12-08 19:42:23,368 - DEBUG - Response for create_network : {'network': {'id': '7b4aed8e-4e2c-44da-ac8a-9c9d4b796e40', 'name': 'ctest-vn-29408617', 'tenant_id': 'a692b3320eb74f9191776fefea7da23a', 'project_id': 'a692b3320eb74f9191776fefea7da23a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34157352', 'ctest-vn-29408617'], 'port_security_enabled': True, 'description': ''}}
2025-12-08 19:42:23,551 - DEBUG - Response for create_subnet : {'subnet': {'id': '86b76fb9-843e-4cd7-9447-6d640e155cc8', 'name': '', 'tenant_id': 'a692b3320eb74f9191776fefea7da23a', 'network_id': '7b4aed8e-4e2c-44da-ac8a-9c9d4b796e40', 'ip_version': 4, 'cidr': '12.203.196.128/26', 'allocation_pools': [{'start': '12.203.196.130', 'end': '12.203.196.190'}], 'gateway_ip': '12.203.196.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '12.203.196.130', 'tags': [], 'project_id': 'a692b3320eb74f9191776fefea7da23a'}}
2025-12-08 19:42:23,570 - INFO - Created VN ctest-vn-29408617
2025-12-08 19:42:23,621 - DEBUG - VN ctest-vn-29408617 UUID is 7b4aed8e-4e2c-44da-ac8a-9c9d4b796e40
2025-12-08 19:42:23,919 - DEBUG - Response for create_network : {'network': {'id': '46bd95ce-8d6a-4dc0-a1a0-fc36bf5f6cf8', 'name': 'ctest-vn-57628217', 'tenant_id': 'a692b3320eb74f9191776fefea7da23a', 'project_id': 'a692b3320eb74f9191776fefea7da23a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34157352', 'ctest-vn-57628217'], 'port_security_enabled': True, 'description': ''}}
2025-12-08 19:42:24,143 - DEBUG - Response for create_subnet : {'subnet': {'id': '9b0e2fa6-5d94-4aff-a502-ddb860ae559c', 'name': '', 'tenant_id': 'a692b3320eb74f9191776fefea7da23a', 'network_id': '46bd95ce-8d6a-4dc0-a1a0-fc36bf5f6cf8', 'ip_version': 4, 'cidr': '118.103.148.64/26', 'allocation_pools': [{'start': '118.103.148.66', 'end': '118.103.148.126'}], 'gateway_ip': '118.103.148.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '118.103.148.66', 'tags': [], 'project_id': 'a692b3320eb74f9191776fefea7da23a'}}
2025-12-08 19:42:24,161 - INFO - Created VN ctest-vn-57628217
2025-12-08 19:42:24,213 - DEBUG - VN ctest-vn-57628217 UUID is 46bd95ce-8d6a-4dc0-a1a0-fc36bf5f6cf8
2025-12-08 19:42:24,324 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-34157352:ctest-vn-29408617, 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-34157352:ctest-vn-57628217, 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-08 19:42:24,620 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7b4aed8e-4e2c-44da-ac8a-9c9d4b796e40', 'name': 'ctest-vn-29408617', 'tenant_id': 'a692b3320eb74f9191776fefea7da23a', 'project_id': 'a692b3320eb74f9191776fefea7da23a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['86b76fb9-843e-4cd7-9447-6d640e155cc8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34157352', 'ctest-vn-29408617'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34157352', 'ctest-policy-allow-all-86503178']], 'subnet_ipam': [{'subnet_cidr': '12.203.196.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-08 19:42:24,860 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '46bd95ce-8d6a-4dc0-a1a0-fc36bf5f6cf8', 'name': 'ctest-vn-57628217', 'tenant_id': 'a692b3320eb74f9191776fefea7da23a', 'project_id': 'a692b3320eb74f9191776fefea7da23a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9b0e2fa6-5d94-4aff-a502-ddb860ae559c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34157352', 'ctest-vn-57628217'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34157352', 'ctest-policy-allow-all-86503178']], 'subnet_ipam': [{'subnet_cidr': '118.103.148.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-08 19:42:25,013 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-12-08 19:42:25,331 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-12-08 19:42:25,368 - DEBUG - Requesting: http://10.0.0.19:8082/domain/d4e20ce0-2b09-40cd-a5a1-5dc2b5c5efe5
2025-12-08 19:42:25,380 - DEBUG - Requesting: http://10.0.0.19:8082/project/a692b332-0eb7-4f91-9177-6fefea7da23a
2025-12-08 19:42:25,452 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/7b4aed8e-4e2c-44da-ac8a-9c9d4b796e40
2025-12-08 19:42:25,463 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/7b4aed8e-4e2c-44da-ac8a-9c9d4b796e40
2025-12-08 19:42:25,473 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/24b0128f-dbd7-4fca-856f-fb0b94b1774c
2025-12-08 19:42:25,481 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/24b0128f-dbd7-4fca-856f-fb0b94b1774c
2025-12-08 19:42:25,488 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/a3bc5c7a-38d6-4186-b76d-519fd0b58dcd
2025-12-08 19:42:25,494 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-08 19:42:25,494 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/7b4aed8e-4e2c-44da-ac8a-9c9d4b796e40
2025-12-08 19:42:25,503 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/24b0128f-dbd7-4fca-856f-fb0b94b1774c
2025-12-08 19:42:25,518 - INFO - Verified VN network id 11 for VN 7b4aed8e-4e2c-44da-ac8a-9c9d4b796e40
2025-12-08 19:42:25,519 - INFO - Verifications in API Server for VN ctest-vn-29408617 passed
2025-12-08 19:42:25,519 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/7b4aed8e-4e2c-44da-ac8a-9c9d4b796e40
2025-12-08 19:42:25,530 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/24b0128f-dbd7-4fca-856f-fb0b94b1774c
2025-12-08 19:42:25,538 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/24b0128f-dbd7-4fca-856f-fb0b94b1774c
2025-12-08 19:42:25,546 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/a3bc5c7a-38d6-4186-b76d-519fd0b58dcd
2025-12-08 19:42:25,560 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34157352:ctest-vn-29408617', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34157352', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8884174410394387674', 'uuid-lslong': '12432921920699723328'}, 'enable': 'true', 'created': '2025-12-08T19:42:23', 'last-modified': '2025-12-08T19:42:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.958135'}
2025-12-08 19:42:25,567 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-08 19:42:25,567 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-29408617 passed
2025-12-08 19:42:25,567 - DEBUG - ====Verifying policy data for ctest-vn-29408617 in API_Server ======
2025-12-08 19:42:25,567 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-12-08 19:42:25,573 - DEBUG - Requesting: http://10.0.0.19:8082/domain/d4e20ce0-2b09-40cd-a5a1-5dc2b5c5efe5
2025-12-08 19:42:25,583 - DEBUG - Requesting: http://10.0.0.19:8082/project/a692b332-0eb7-4f91-9177-6fefea7da23a
2025-12-08 19:42:25,654 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/7b4aed8e-4e2c-44da-ac8a-9c9d4b796e40
2025-12-08 19:42:25,663 - DEBUG - ==>Verifying data for policy with id: d7f14a98-05fe-4110-938c-cb4d1baf1640, fqn: ['default-domain', 'ctest-TestBasicPolicy-34157352', 'ctest-policy-allow-all-86503178']
2025-12-08 19:42:25,663 - INFO - VN ctest-vn-29408617 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-08 19:42:25,663 - DEBUG - Verifying the vn in opserver
2025-12-08 19:42:25,663 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34157352:ctest-vn-29408617 virtual network link through opserver 10.0.0.19
2025-12-08 19:42:25,663 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-12-08 19:42:25,962 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-12-08 19:42:26,039 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34157352:ctest-vn-29408617', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34157352:ctest-vn-29408617?flat'}
2025-12-08 19:42:26,039 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34157352:ctest-vn-29408617 is found in opserver
2025-12-08 19:42:26,051 - DEBUG - Do not have enough data to verify VN in agent
2025-12-08 19:42:26,056 - DEBUG - VRF ids for VN ctest-vn-29408617: {}
2025-12-08 19:42:26,056 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-12-08 19:42:26,061 - DEBUG - Requesting: http://10.0.0.19:8082/domain/d4e20ce0-2b09-40cd-a5a1-5dc2b5c5efe5
2025-12-08 19:42:26,074 - DEBUG - Requesting: http://10.0.0.19:8082/project/a692b332-0eb7-4f91-9177-6fefea7da23a
2025-12-08 19:42:26,143 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/46bd95ce-8d6a-4dc0-a1a0-fc36bf5f6cf8
2025-12-08 19:42:26,155 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/46bd95ce-8d6a-4dc0-a1a0-fc36bf5f6cf8
2025-12-08 19:42:26,165 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/e8ede88c-9bc6-4520-a52f-8e586cde4215
2025-12-08 19:42:26,172 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/e8ede88c-9bc6-4520-a52f-8e586cde4215
2025-12-08 19:42:26,179 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/73b3616a-481a-4b54-9d93-898a13a608a2
2025-12-08 19:42:26,186 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-08 19:42:26,186 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/46bd95ce-8d6a-4dc0-a1a0-fc36bf5f6cf8
2025-12-08 19:42:26,194 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/e8ede88c-9bc6-4520-a52f-8e586cde4215
2025-12-08 19:42:26,207 - INFO - Verified VN network id 12 for VN 46bd95ce-8d6a-4dc0-a1a0-fc36bf5f6cf8
2025-12-08 19:42:26,207 - INFO - Verifications in API Server for VN ctest-vn-57628217 passed
2025-12-08 19:42:26,207 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/46bd95ce-8d6a-4dc0-a1a0-fc36bf5f6cf8
2025-12-08 19:42:26,216 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/e8ede88c-9bc6-4520-a52f-8e586cde4215
2025-12-08 19:42:26,223 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/e8ede88c-9bc6-4520-a52f-8e586cde4215
2025-12-08 19:42:26,229 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/73b3616a-481a-4b54-9d93-898a13a608a2
2025-12-08 19:42:26,242 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34157352:ctest-vn-57628217', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34157352', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5097395067621625280', 'uuid-lslong': '11646585948449238264'}, 'enable': 'true', 'created': '2025-12-08T19:42:23', 'last-modified': '2025-12-08T19:42:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.452617'}
2025-12-08 19:42:26,248 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-08 19:42:26,248 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57628217 passed
2025-12-08 19:42:26,248 - DEBUG - ====Verifying policy data for ctest-vn-57628217 in API_Server ======
2025-12-08 19:42:26,248 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-12-08 19:42:26,254 - DEBUG - Requesting: http://10.0.0.19:8082/domain/d4e20ce0-2b09-40cd-a5a1-5dc2b5c5efe5
2025-12-08 19:42:26,265 - DEBUG - Requesting: http://10.0.0.19:8082/project/a692b332-0eb7-4f91-9177-6fefea7da23a
2025-12-08 19:42:26,335 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/46bd95ce-8d6a-4dc0-a1a0-fc36bf5f6cf8
2025-12-08 19:42:26,344 - DEBUG - ==>Verifying data for policy with id: d7f14a98-05fe-4110-938c-cb4d1baf1640, fqn: ['default-domain', 'ctest-TestBasicPolicy-34157352', 'ctest-policy-allow-all-86503178']
2025-12-08 19:42:26,344 - INFO - VN ctest-vn-57628217 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-08 19:42:26,344 - DEBUG - Verifying the vn in opserver
2025-12-08 19:42:26,344 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34157352:ctest-vn-57628217 virtual network link through opserver 10.0.0.19
2025-12-08 19:42:26,344 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-12-08 19:42:26,354 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34157352:ctest-vn-57628217', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34157352:ctest-vn-57628217?flat'}
2025-12-08 19:42:26,354 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34157352:ctest-vn-57628217 is found in opserver
2025-12-08 19:42:26,363 - DEBUG - Do not have enough data to verify VN in agent
2025-12-08 19:42:26,368 - DEBUG - VRF ids for VN ctest-vn-57628217: {}
2025-12-08 19:42:26,438 - DEBUG - Services list from nova: [