2025-10-27 15:10:14,749 - INFO - Domain Default found not creating
2025-10-27 15:10:14,925 - INFO - Project ctest-TestBasicPolicy-68821113 not found, creating it
2025-10-27 15:10:15,383 - INFO - Created Project:ctest-TestBasicPolicy-68821113, ID : ab4e7eaa-f250-408b-b3cf-549f4d8a25cb
2025-10-27 15:10:16,901 - INFO - ================================================================================
2025-10-27 15:10:16,901 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-27 15:10:16,902 - 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-27 15:10:17,155 - DEBUG - Nothing to compare xmpp stats {'10.0.0.131': {'10.20.0.14': '0'}} with
2025-10-27 15:10:17,155 - INFO - Initial checks done. Running the testcase now
2025-10-27 15:10:17,155 - INFO -
2025-10-27 15:10:17,724 - DEBUG - Response for create_network : {'network': {'id': 'a4be79c9-9b68-4692-98db-e61775610e90', 'name': 'ctest-vn-23311976', 'tenant_id': 'ab4e7eaaf250408bb3cf549f4d8a25cb', 'project_id': 'ab4e7eaaf250408bb3cf549f4d8a25cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68821113', 'ctest-vn-23311976'], 'port_security_enabled': True, 'description': ''}}
2025-10-27 15:10:17,891 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f41bfd3c-0cf9-4ac0-9248-b1d4e4cccb2a', 'name': '', 'tenant_id': 'ab4e7eaaf250408bb3cf549f4d8a25cb', 'network_id': 'a4be79c9-9b68-4692-98db-e61775610e90', 'ip_version': 4, 'cidr': '144.76.252.64/26', 'allocation_pools': [{'start': '144.76.252.66', 'end': '144.76.252.126'}], 'gateway_ip': '144.76.252.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '144.76.252.66', 'tags': [], 'project_id': 'ab4e7eaaf250408bb3cf549f4d8a25cb'}}
2025-10-27 15:10:17,911 - INFO - Created VN ctest-vn-23311976
2025-10-27 15:10:17,965 - DEBUG - VN ctest-vn-23311976 UUID is a4be79c9-9b68-4692-98db-e61775610e90
2025-10-27 15:10:18,261 - DEBUG - Response for create_network : {'network': {'id': 'f7ca68d9-50d4-4221-8b75-7bf5cc13e9ff', 'name': 'ctest-vn-74868079', 'tenant_id': 'ab4e7eaaf250408bb3cf549f4d8a25cb', 'project_id': 'ab4e7eaaf250408bb3cf549f4d8a25cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68821113', 'ctest-vn-74868079'], 'port_security_enabled': True, 'description': ''}}
2025-10-27 15:10:18,413 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd2f22d70-eaf0-468b-a4e6-ab2928b95ff8', 'name': '', 'tenant_id': 'ab4e7eaaf250408bb3cf549f4d8a25cb', 'network_id': 'f7ca68d9-50d4-4221-8b75-7bf5cc13e9ff', 'ip_version': 4, 'cidr': '47.52.144.64/26', 'allocation_pools': [{'start': '47.52.144.66', 'end': '47.52.144.126'}], 'gateway_ip': '47.52.144.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '47.52.144.66', 'tags': [], 'project_id': 'ab4e7eaaf250408bb3cf549f4d8a25cb'}}
2025-10-27 15:10:18,433 - INFO - Created VN ctest-vn-74868079
2025-10-27 15:10:18,489 - DEBUG - VN ctest-vn-74868079 UUID is f7ca68d9-50d4-4221-8b75-7bf5cc13e9ff
2025-10-27 15:10:18,608 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-68821113:ctest-vn-23311976, 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-68821113:ctest-vn-74868079, 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-27 15:10:18,910 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a4be79c9-9b68-4692-98db-e61775610e90', 'name': 'ctest-vn-23311976', 'tenant_id': 'ab4e7eaaf250408bb3cf549f4d8a25cb', 'project_id': 'ab4e7eaaf250408bb3cf549f4d8a25cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f41bfd3c-0cf9-4ac0-9248-b1d4e4cccb2a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68821113', 'ctest-vn-23311976'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68821113', 'ctest-policy-allow-all-71589990']], 'subnet_ipam': [{'subnet_cidr': '144.76.252.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-27 15:10:19,139 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f7ca68d9-50d4-4221-8b75-7bf5cc13e9ff', 'name': 'ctest-vn-74868079', 'tenant_id': 'ab4e7eaaf250408bb3cf549f4d8a25cb', 'project_id': 'ab4e7eaaf250408bb3cf549f4d8a25cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d2f22d70-eaf0-468b-a4e6-ab2928b95ff8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68821113', 'ctest-vn-74868079'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68821113', 'ctest-policy-allow-all-71589990']], 'subnet_ipam': [{'subnet_cidr': '47.52.144.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-27 15:10:19,317 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-10-27 15:10:19,622 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-10-27 15:10:19,651 - DEBUG - Requesting: http://10.0.0.131:8082/domain/477ba148-2123-429b-9e90-50e7a3af3f6c
2025-10-27 15:10:19,664 - DEBUG - Requesting: http://10.0.0.131:8082/project/ab4e7eaa-f250-408b-b3cf-549f4d8a25cb
2025-10-27 15:10:19,736 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/a4be79c9-9b68-4692-98db-e61775610e90
2025-10-27 15:10:19,747 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/a4be79c9-9b68-4692-98db-e61775610e90
2025-10-27 15:10:19,757 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/f6aa117e-c88d-4f08-b31b-366dd73c211b
2025-10-27 15:10:19,765 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/f6aa117e-c88d-4f08-b31b-366dd73c211b
2025-10-27 15:10:19,772 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/adf2cd1c-67dc-42c9-b950-e44b8639bd84
2025-10-27 15:10:19,778 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-27 15:10:19,778 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/a4be79c9-9b68-4692-98db-e61775610e90
2025-10-27 15:10:19,788 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/f6aa117e-c88d-4f08-b31b-366dd73c211b
2025-10-27 15:10:19,804 - INFO - Verified VN network id 11 for VN a4be79c9-9b68-4692-98db-e61775610e90
2025-10-27 15:10:19,804 - INFO - Verifications in API Server for VN ctest-vn-23311976 passed
2025-10-27 15:10:19,804 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/a4be79c9-9b68-4692-98db-e61775610e90
2025-10-27 15:10:19,816 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/f6aa117e-c88d-4f08-b31b-366dd73c211b
2025-10-27 15:10:19,824 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/f6aa117e-c88d-4f08-b31b-366dd73c211b
2025-10-27 15:10:19,831 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/adf2cd1c-67dc-42c9-b950-e44b8639bd84
2025-10-27 15:10:19,842 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68821113:ctest-vn-23311976', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68821113', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11871059574597895826', 'uuid-lslong': '11014650302092611216'}, 'enable': 'true', 'created': '2025-10-27T15:10:17', 'last-modified': '2025-10-27T15:10:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.958020'}
2025-10-27 15:10:19,848 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-27 15:10:19,848 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23311976 passed
2025-10-27 15:10:19,849 - DEBUG - ====Verifying policy data for ctest-vn-23311976 in API_Server ======
2025-10-27 15:10:19,849 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-10-27 15:10:19,855 - DEBUG - Requesting: http://10.0.0.131:8082/domain/477ba148-2123-429b-9e90-50e7a3af3f6c
2025-10-27 15:10:19,868 - DEBUG - Requesting: http://10.0.0.131:8082/project/ab4e7eaa-f250-408b-b3cf-549f4d8a25cb
2025-10-27 15:10:19,939 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/a4be79c9-9b68-4692-98db-e61775610e90
2025-10-27 15:10:19,948 - DEBUG - ==>Verifying data for policy with id: ebe25c9d-4e9b-47b2-94ff-051f27cbf084, fqn: ['default-domain', 'ctest-TestBasicPolicy-68821113', 'ctest-policy-allow-all-71589990']
2025-10-27 15:10:19,948 - INFO - VN ctest-vn-23311976 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-27 15:10:19,948 - DEBUG - Verifying the vn in opserver
2025-10-27 15:10:19,948 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68821113:ctest-vn-23311976 virtual network link through opserver 10.0.0.131
2025-10-27 15:10:19,949 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks
2025-10-27 15:10:20,266 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks
2025-10-27 15:10:20,328 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68821113:ctest-vn-23311976', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68821113:ctest-vn-23311976?flat'}
2025-10-27 15:10:20,328 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68821113:ctest-vn-23311976 is found in opserver
2025-10-27 15:10:20,339 - DEBUG - Do not have enough data to verify VN in agent
2025-10-27 15:10:20,343 - DEBUG - VRF ids for VN ctest-vn-23311976: {}
2025-10-27 15:10:20,343 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-10-27 15:10:20,349 - DEBUG - Requesting: http://10.0.0.131:8082/domain/477ba148-2123-429b-9e90-50e7a3af3f6c
2025-10-27 15:10:20,360 - DEBUG - Requesting: http://10.0.0.131:8082/project/ab4e7eaa-f250-408b-b3cf-549f4d8a25cb
2025-10-27 15:10:20,432 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/f7ca68d9-50d4-4221-8b75-7bf5cc13e9ff
2025-10-27 15:10:20,446 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/f7ca68d9-50d4-4221-8b75-7bf5cc13e9ff
2025-10-27 15:10:20,457 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/39ec077c-003e-4d1d-8c32-db040e187047
2025-10-27 15:10:20,465 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/39ec077c-003e-4d1d-8c32-db040e187047
2025-10-27 15:10:20,473 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/7e544ef3-d8a7-4589-9739-f54d923e66f7
2025-10-27 15:10:20,480 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-27 15:10:20,480 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/f7ca68d9-50d4-4221-8b75-7bf5cc13e9ff
2025-10-27 15:10:20,490 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/39ec077c-003e-4d1d-8c32-db040e187047
2025-10-27 15:10:20,506 - INFO - Verified VN network id 12 for VN f7ca68d9-50d4-4221-8b75-7bf5cc13e9ff
2025-10-27 15:10:20,506 - INFO - Verifications in API Server for VN ctest-vn-74868079 passed
2025-10-27 15:10:20,506 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/f7ca68d9-50d4-4221-8b75-7bf5cc13e9ff
2025-10-27 15:10:20,517 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/39ec077c-003e-4d1d-8c32-db040e187047
2025-10-27 15:10:20,526 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/39ec077c-003e-4d1d-8c32-db040e187047
2025-10-27 15:10:20,534 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/7e544ef3-d8a7-4589-9739-f54d923e66f7
2025-10-27 15:10:20,547 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68821113:ctest-vn-74868079', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68821113', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17855198955237032481', 'uuid-lslong': '10049074439168190975'}, 'enable': 'true', 'created': '2025-10-27T15:10:18', 'last-modified': '2025-10-27T15:10:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.432961'}
2025-10-27 15:10:20,553 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-27 15:10:20,553 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74868079 passed
2025-10-27 15:10:20,553 - DEBUG - ====Verifying policy data for ctest-vn-74868079 in API_Server ======
2025-10-27 15:10:20,553 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-10-27 15:10:20,559 - DEBUG - Requesting: http://10.0.0.131:8082/domain/477ba148-2123-429b-9e90-50e7a3af3f6c
2025-10-27 15:10:20,570 - DEBUG - Requesting: http://10.0.0.131:8082/project/ab4e7eaa-f250-408b-b3cf-549f4d8a25cb
2025-10-27 15:10:20,645 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/f7ca68d9-50d4-4221-8b75-7bf5cc13e9ff
2025-10-27 15:10:20,655 - DEBUG - ==>Verifying data for policy with id: ebe25c9d-4e9b-47b2-94ff-051f27cbf084, fqn: ['default-domain', 'ctest-TestBasicPolicy-68821113', 'ctest-policy-allow-all-71589990']
2025-10-27 15:10:20,655 - INFO - VN ctest-vn-74868079 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-27 15:10:20,655 - DEBUG - Verifying the vn in opserver
2025-10-27 15:10:20,655 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68821113:ctest-vn-74868079 virtual network link through opserver 10.0.0.131
2025-10-27 15:10:20,655 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks
2025-10-27 15:10:20,665 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68821113:ctest-vn-74868079', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68821113:ctest-vn-74868079?flat'}
2025-10-27 15:10:20,665 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68821113:ctest-vn-74868079 is found in opserver
2025-10-27 15:10:20,676 - DEBUG - Do not have enough data to verify VN in agent
2025-10-27 15:10:20,681 - DEBUG - VRF ids for VN ctest-vn-74868079: {}
2025-10-27 15:10:20,745 - DEBUG - Services list from nova: [