2025-11-13 02:07:52,673 - INFO - Domain Default found not creating
2025-11-13 02:07:52,827 - INFO - Project ctest-TestBasicPolicy-20898141 not found, creating it
2025-11-13 02:07:53,267 - INFO - Created Project:ctest-TestBasicPolicy-20898141, ID : b430c13b-1566-43c6-9d1a-44107ba316ba
2025-11-13 02:07:54,702 - INFO - ================================================================================
2025-11-13 02:07:54,703 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-13 02:07:54,703 - 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-11-13 02:07:54,960 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.14': '0'}} with
2025-11-13 02:07:54,960 - INFO - Initial checks done. Running the testcase now
2025-11-13 02:07:54,960 - INFO -
2025-11-13 02:07:56,047 - DEBUG - Response for create_network : {'network': {'id': '89f6c616-cb6c-4000-8c2f-8a3bac812a9f', 'name': 'ctest-vn-04098516', 'tenant_id': 'b430c13b156643c69d1a44107ba316ba', 'project_id': 'b430c13b156643c69d1a44107ba316ba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20898141', 'ctest-vn-04098516'], 'port_security_enabled': True, 'description': ''}}
2025-11-13 02:07:56,218 - DEBUG - Response for create_subnet : {'subnet': {'id': '19895dc7-d32e-4522-84b1-6fc29dcf36c1', 'name': '', 'tenant_id': 'b430c13b156643c69d1a44107ba316ba', 'network_id': '89f6c616-cb6c-4000-8c2f-8a3bac812a9f', 'ip_version': 4, 'cidr': '156.240.39.0/26', 'allocation_pools': [{'start': '156.240.39.2', 'end': '156.240.39.62'}], 'gateway_ip': '156.240.39.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.240.39.2', 'tags': [], 'project_id': 'b430c13b156643c69d1a44107ba316ba'}}
2025-11-13 02:07:56,235 - INFO - Created VN ctest-vn-04098516
2025-11-13 02:07:56,288 - DEBUG - VN ctest-vn-04098516 UUID is 89f6c616-cb6c-4000-8c2f-8a3bac812a9f
2025-11-13 02:07:56,597 - DEBUG - Response for create_network : {'network': {'id': 'fb1b59ca-922e-4be8-bfdf-f6d7bf059f99', 'name': 'ctest-vn-53885751', 'tenant_id': 'b430c13b156643c69d1a44107ba316ba', 'project_id': 'b430c13b156643c69d1a44107ba316ba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20898141', 'ctest-vn-53885751'], 'port_security_enabled': True, 'description': ''}}
2025-11-13 02:07:56,768 - DEBUG - Response for create_subnet : {'subnet': {'id': '47b11316-38be-4c88-b5ed-78e959f6f182', 'name': '', 'tenant_id': 'b430c13b156643c69d1a44107ba316ba', 'network_id': 'fb1b59ca-922e-4be8-bfdf-f6d7bf059f99', 'ip_version': 4, 'cidr': '6.143.173.64/26', 'allocation_pools': [{'start': '6.143.173.66', 'end': '6.143.173.126'}], 'gateway_ip': '6.143.173.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '6.143.173.66', 'tags': [], 'project_id': 'b430c13b156643c69d1a44107ba316ba'}}
2025-11-13 02:07:56,786 - INFO - Created VN ctest-vn-53885751
2025-11-13 02:07:56,840 - DEBUG - VN ctest-vn-53885751 UUID is fb1b59ca-922e-4be8-bfdf-f6d7bf059f99
2025-11-13 02:07:56,953 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-20898141:ctest-vn-04098516, 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-20898141:ctest-vn-53885751, 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-11-13 02:07:57,235 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '89f6c616-cb6c-4000-8c2f-8a3bac812a9f', 'name': 'ctest-vn-04098516', 'tenant_id': 'b430c13b156643c69d1a44107ba316ba', 'project_id': 'b430c13b156643c69d1a44107ba316ba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['19895dc7-d32e-4522-84b1-6fc29dcf36c1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20898141', 'ctest-vn-04098516'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20898141', 'ctest-policy-allow-all-98105299']], 'subnet_ipam': [{'subnet_cidr': '156.240.39.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-13 02:07:57,472 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fb1b59ca-922e-4be8-bfdf-f6d7bf059f99', 'name': 'ctest-vn-53885751', 'tenant_id': 'b430c13b156643c69d1a44107ba316ba', 'project_id': 'b430c13b156643c69d1a44107ba316ba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['47b11316-38be-4c88-b5ed-78e959f6f182'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20898141', 'ctest-vn-53885751'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20898141', 'ctest-policy-allow-all-98105299']], 'subnet_ipam': [{'subnet_cidr': '6.143.173.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-13 02:07:57,624 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-11-13 02:07:57,916 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-11-13 02:07:57,941 - DEBUG - Requesting: http://10.0.0.57:8082/domain/b172cfcc-e4a5-4d16-bb39-9787ac9c341e
2025-11-13 02:07:57,952 - DEBUG - Requesting: http://10.0.0.57:8082/project/b430c13b-1566-43c6-9d1a-44107ba316ba
2025-11-13 02:07:58,022 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/89f6c616-cb6c-4000-8c2f-8a3bac812a9f
2025-11-13 02:07:58,032 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/89f6c616-cb6c-4000-8c2f-8a3bac812a9f
2025-11-13 02:07:58,040 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/e049376d-123c-4194-b39a-dc8133e30e7a
2025-11-13 02:07:58,046 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/e049376d-123c-4194-b39a-dc8133e30e7a
2025-11-13 02:07:58,053 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/8bcb5916-8b6c-407c-89cc-3d8847c36697
2025-11-13 02:07:58,060 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-13 02:07:58,060 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/89f6c616-cb6c-4000-8c2f-8a3bac812a9f
2025-11-13 02:07:58,068 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/e049376d-123c-4194-b39a-dc8133e30e7a
2025-11-13 02:07:58,081 - INFO - Verified VN network id 10 for VN 89f6c616-cb6c-4000-8c2f-8a3bac812a9f
2025-11-13 02:07:58,081 - INFO - Verifications in API Server for VN ctest-vn-04098516 passed
2025-11-13 02:07:58,081 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/89f6c616-cb6c-4000-8c2f-8a3bac812a9f
2025-11-13 02:07:58,090 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/e049376d-123c-4194-b39a-dc8133e30e7a
2025-11-13 02:07:58,096 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/e049376d-123c-4194-b39a-dc8133e30e7a
2025-11-13 02:07:58,101 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/8bcb5916-8b6c-407c-89cc-3d8847c36697
2025-11-13 02:07:58,112 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20898141:ctest-vn-04098516', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20898141', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9941351028671397888', 'uuid-lslong': '10101444478117161631'}, 'enable': 'true', 'created': '2025-11-13T02:07:56', 'last-modified': '2025-11-13T02:07:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.893218'}
2025-11-13 02:07:58,118 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-13 02:07:58,119 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04098516 passed
2025-11-13 02:07:58,119 - DEBUG - ====Verifying policy data for ctest-vn-04098516 in API_Server ======
2025-11-13 02:07:58,119 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-11-13 02:07:58,124 - DEBUG - Requesting: http://10.0.0.57:8082/domain/b172cfcc-e4a5-4d16-bb39-9787ac9c341e
2025-11-13 02:07:58,134 - DEBUG - Requesting: http://10.0.0.57:8082/project/b430c13b-1566-43c6-9d1a-44107ba316ba
2025-11-13 02:07:58,209 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/89f6c616-cb6c-4000-8c2f-8a3bac812a9f
2025-11-13 02:07:58,219 - DEBUG - ==>Verifying data for policy with id: d0bc2359-c104-4b8d-b344-74668563a4cf, fqn: ['default-domain', 'ctest-TestBasicPolicy-20898141', 'ctest-policy-allow-all-98105299']
2025-11-13 02:07:58,219 - INFO - VN ctest-vn-04098516 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-13 02:07:58,219 - DEBUG - Verifying the vn in opserver
2025-11-13 02:07:58,219 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20898141:ctest-vn-04098516 virtual network link through opserver 10.0.0.57
2025-11-13 02:07:58,219 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-11-13 02:07:58,510 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-11-13 02:07:58,561 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20898141:ctest-vn-04098516', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20898141:ctest-vn-04098516?flat'}
2025-11-13 02:07:58,561 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20898141:ctest-vn-04098516 is found in opserver
2025-11-13 02:07:58,572 - DEBUG - Do not have enough data to verify VN in agent
2025-11-13 02:07:58,577 - DEBUG - VRF ids for VN ctest-vn-04098516: {}
2025-11-13 02:07:58,577 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-11-13 02:07:58,583 - DEBUG - Requesting: http://10.0.0.57:8082/domain/b172cfcc-e4a5-4d16-bb39-9787ac9c341e
2025-11-13 02:07:58,593 - DEBUG - Requesting: http://10.0.0.57:8082/project/b430c13b-1566-43c6-9d1a-44107ba316ba
2025-11-13 02:07:58,673 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/fb1b59ca-922e-4be8-bfdf-f6d7bf059f99
2025-11-13 02:07:58,684 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/fb1b59ca-922e-4be8-bfdf-f6d7bf059f99
2025-11-13 02:07:58,693 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/64c3a9cc-3d99-4bbb-8691-1aa39ab2c58a
2025-11-13 02:07:58,700 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/64c3a9cc-3d99-4bbb-8691-1aa39ab2c58a
2025-11-13 02:07:58,708 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/fdf02354-1e7b-4fe7-ab2c-1e93e371cdfd
2025-11-13 02:07:58,716 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-13 02:07:58,716 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/fb1b59ca-922e-4be8-bfdf-f6d7bf059f99
2025-11-13 02:07:58,728 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/64c3a9cc-3d99-4bbb-8691-1aa39ab2c58a
2025-11-13 02:07:58,743 - INFO - Verified VN network id 11 for VN fb1b59ca-922e-4be8-bfdf-f6d7bf059f99
2025-11-13 02:07:58,743 - INFO - Verifications in API Server for VN ctest-vn-53885751 passed
2025-11-13 02:07:58,743 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/fb1b59ca-922e-4be8-bfdf-f6d7bf059f99
2025-11-13 02:07:58,752 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/64c3a9cc-3d99-4bbb-8691-1aa39ab2c58a
2025-11-13 02:07:58,758 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/64c3a9cc-3d99-4bbb-8691-1aa39ab2c58a
2025-11-13 02:07:58,765 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/fdf02354-1e7b-4fe7-ab2c-1e93e371cdfd
2025-11-13 02:07:58,780 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20898141:ctest-vn-53885751', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20898141', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18094154654461873128', 'uuid-lslong': '13826040787533930393'}, 'enable': 'true', 'created': '2025-11-13T02:07:56', 'last-modified': '2025-11-13T02:07:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.330428'}
2025-11-13 02:07:58,786 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-13 02:07:58,786 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53885751 passed
2025-11-13 02:07:58,786 - DEBUG - ====Verifying policy data for ctest-vn-53885751 in API_Server ======
2025-11-13 02:07:58,786 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-11-13 02:07:58,792 - DEBUG - Requesting: http://10.0.0.57:8082/domain/b172cfcc-e4a5-4d16-bb39-9787ac9c341e
2025-11-13 02:07:58,802 - DEBUG - Requesting: http://10.0.0.57:8082/project/b430c13b-1566-43c6-9d1a-44107ba316ba
2025-11-13 02:07:58,878 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/fb1b59ca-922e-4be8-bfdf-f6d7bf059f99
2025-11-13 02:07:58,886 - DEBUG - ==>Verifying data for policy with id: d0bc2359-c104-4b8d-b344-74668563a4cf, fqn: ['default-domain', 'ctest-TestBasicPolicy-20898141', 'ctest-policy-allow-all-98105299']
2025-11-13 02:07:58,886 - INFO - VN ctest-vn-53885751 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-13 02:07:58,886 - DEBUG - Verifying the vn in opserver
2025-11-13 02:07:58,886 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20898141:ctest-vn-53885751 virtual network link through opserver 10.0.0.57
2025-11-13 02:07:58,886 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-11-13 02:07:58,895 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20898141:ctest-vn-53885751', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20898141:ctest-vn-53885751?flat'}
2025-11-13 02:07:58,895 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20898141:ctest-vn-53885751 is found in opserver
2025-11-13 02:07:58,904 - DEBUG - Do not have enough data to verify VN in agent
2025-11-13 02:07:58,908 - DEBUG - VRF ids for VN ctest-vn-53885751: {}
2025-11-13 02:07:58,969 - DEBUG - Services list from nova: [