2025-09-11 02:00:59,965 - INFO - Domain Default found not creating
2025-09-11 02:01:00,103 - INFO - Project ctest-TestBasicPolicy-91981674 not found, creating it
2025-09-11 02:01:00,547 - INFO - Created Project:ctest-TestBasicPolicy-91981674, ID : c017ee8d-1947-4991-9a1f-cc62fc9a3985
2025-09-11 02:01:01,948 - INFO - ================================================================================
2025-09-11 02:01:01,948 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-11 02:01:01,948 - 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-09-11 02:01:02,213 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with
2025-09-11 02:01:02,213 - INFO - Initial checks done. Running the testcase now
2025-09-11 02:01:02,213 - INFO -
2025-09-11 02:01:03,050 - DEBUG - Response for create_network : {'network': {'id': '2e7f9cf5-fa99-4333-b4c5-1bb3c52973e0', 'name': 'ctest-vn-83572634', 'tenant_id': 'c017ee8d194749919a1fcc62fc9a3985', 'project_id': 'c017ee8d194749919a1fcc62fc9a3985', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91981674', 'ctest-vn-83572634'], 'port_security_enabled': True, 'description': ''}}
2025-09-11 02:01:03,250 - DEBUG - Response for create_subnet : {'subnet': {'id': '80700750-b0bf-46ae-aacc-53ae64d017c0', 'name': '', 'tenant_id': 'c017ee8d194749919a1fcc62fc9a3985', 'network_id': '2e7f9cf5-fa99-4333-b4c5-1bb3c52973e0', 'ip_version': 4, 'cidr': '165.207.76.0/26', 'allocation_pools': [{'start': '165.207.76.2', 'end': '165.207.76.62'}], 'gateway_ip': '165.207.76.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.207.76.2', 'tags': [], 'project_id': 'c017ee8d194749919a1fcc62fc9a3985'}}
2025-09-11 02:01:03,267 - INFO - Created VN ctest-vn-83572634
2025-09-11 02:01:03,316 - DEBUG - VN ctest-vn-83572634 UUID is 2e7f9cf5-fa99-4333-b4c5-1bb3c52973e0
2025-09-11 02:01:03,634 - DEBUG - Response for create_network : {'network': {'id': '8475c562-775e-4b01-92b8-94dae51fbbeb', 'name': 'ctest-vn-11272897', 'tenant_id': 'c017ee8d194749919a1fcc62fc9a3985', 'project_id': 'c017ee8d194749919a1fcc62fc9a3985', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91981674', 'ctest-vn-11272897'], 'port_security_enabled': True, 'description': ''}}
2025-09-11 02:01:03,838 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c40c7ed9-ec21-4253-803e-a291850307df', 'name': '', 'tenant_id': 'c017ee8d194749919a1fcc62fc9a3985', 'network_id': '8475c562-775e-4b01-92b8-94dae51fbbeb', 'ip_version': 4, 'cidr': '111.30.21.64/26', 'allocation_pools': [{'start': '111.30.21.66', 'end': '111.30.21.126'}], 'gateway_ip': '111.30.21.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.30.21.66', 'tags': [], 'project_id': 'c017ee8d194749919a1fcc62fc9a3985'}}
2025-09-11 02:01:03,853 - INFO - Created VN ctest-vn-11272897
2025-09-11 02:01:03,903 - DEBUG - VN ctest-vn-11272897 UUID is 8475c562-775e-4b01-92b8-94dae51fbbeb
2025-09-11 02:01:04,051 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-91981674:ctest-vn-83572634, 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-91981674:ctest-vn-11272897, 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-09-11 02:01:04,345 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2e7f9cf5-fa99-4333-b4c5-1bb3c52973e0', 'name': 'ctest-vn-83572634', 'tenant_id': 'c017ee8d194749919a1fcc62fc9a3985', 'project_id': 'c017ee8d194749919a1fcc62fc9a3985', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['80700750-b0bf-46ae-aacc-53ae64d017c0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91981674', 'ctest-vn-83572634'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91981674', 'ctest-policy-allow-all-57441523']], 'subnet_ipam': [{'subnet_cidr': '165.207.76.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-11 02:01:04,586 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8475c562-775e-4b01-92b8-94dae51fbbeb', 'name': 'ctest-vn-11272897', 'tenant_id': 'c017ee8d194749919a1fcc62fc9a3985', 'project_id': 'c017ee8d194749919a1fcc62fc9a3985', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c40c7ed9-ec21-4253-803e-a291850307df'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91981674', 'ctest-vn-11272897'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91981674', 'ctest-policy-allow-all-57441523']], 'subnet_ipam': [{'subnet_cidr': '111.30.21.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-11 02:01:04,732 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-11 02:01:05,024 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-11 02:01:05,050 - DEBUG - Requesting: http://10.0.0.50:8082/domain/14e38ff5-4e2a-408d-8776-b2858b281444
2025-09-11 02:01:05,060 - DEBUG - Requesting: http://10.0.0.50:8082/project/c017ee8d-1947-4991-9a1f-cc62fc9a3985
2025-09-11 02:01:05,129 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2e7f9cf5-fa99-4333-b4c5-1bb3c52973e0
2025-09-11 02:01:05,139 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2e7f9cf5-fa99-4333-b4c5-1bb3c52973e0
2025-09-11 02:01:05,149 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d687f826-7fef-47e4-a66d-e535c7cf0004
2025-09-11 02:01:05,155 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d687f826-7fef-47e4-a66d-e535c7cf0004
2025-09-11 02:01:05,162 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8584426e-9594-4493-9ac1-d39d0c922f53
2025-09-11 02:01:05,168 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-11 02:01:05,168 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2e7f9cf5-fa99-4333-b4c5-1bb3c52973e0
2025-09-11 02:01:05,176 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d687f826-7fef-47e4-a66d-e535c7cf0004
2025-09-11 02:01:05,189 - INFO - Verified VN network id 11 for VN 2e7f9cf5-fa99-4333-b4c5-1bb3c52973e0
2025-09-11 02:01:05,189 - INFO - Verifications in API Server for VN ctest-vn-83572634 passed
2025-09-11 02:01:05,189 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2e7f9cf5-fa99-4333-b4c5-1bb3c52973e0
2025-09-11 02:01:05,199 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d687f826-7fef-47e4-a66d-e535c7cf0004
2025-09-11 02:01:05,206 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d687f826-7fef-47e4-a66d-e535c7cf0004
2025-09-11 02:01:05,213 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8584426e-9594-4493-9ac1-d39d0c922f53
2025-09-11 02:01:05,225 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91981674:ctest-vn-83572634', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91981674', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3350569228072207155', 'uuid-lslong': '13025847956159951840'}, 'enable': 'true', 'created': '2025-09-11T02:01:03', 'last-modified': '2025-09-11T02:01:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.899532'}
2025-09-11 02:01:05,232 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-11 02:01:05,232 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83572634 passed
2025-09-11 02:01:05,233 - DEBUG - ====Verifying policy data for ctest-vn-83572634 in API_Server ======
2025-09-11 02:01:05,233 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-11 02:01:05,238 - DEBUG - Requesting: http://10.0.0.50:8082/domain/14e38ff5-4e2a-408d-8776-b2858b281444
2025-09-11 02:01:05,248 - DEBUG - Requesting: http://10.0.0.50:8082/project/c017ee8d-1947-4991-9a1f-cc62fc9a3985
2025-09-11 02:01:05,315 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2e7f9cf5-fa99-4333-b4c5-1bb3c52973e0
2025-09-11 02:01:05,323 - DEBUG - ==>Verifying data for policy with id: 3d3eb213-e0e8-4463-8442-904e0147ecc2, fqn: ['default-domain', 'ctest-TestBasicPolicy-91981674', 'ctest-policy-allow-all-57441523']
2025-09-11 02:01:05,324 - INFO - VN ctest-vn-83572634 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-11 02:01:05,324 - DEBUG - Verifying the vn in opserver
2025-09-11 02:01:05,324 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91981674:ctest-vn-83572634 virtual network link through opserver 10.0.0.50
2025-09-11 02:01:05,324 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-09-11 02:01:05,625 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-09-11 02:01:05,676 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91981674:ctest-vn-83572634', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91981674:ctest-vn-83572634?flat'}
2025-09-11 02:01:05,677 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91981674:ctest-vn-83572634 is found in opserver
2025-09-11 02:01:05,687 - DEBUG - Do not have enough data to verify VN in agent
2025-09-11 02:01:05,691 - DEBUG - VRF ids for VN ctest-vn-83572634: {}
2025-09-11 02:01:05,691 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-11 02:01:05,697 - DEBUG - Requesting: http://10.0.0.50:8082/domain/14e38ff5-4e2a-408d-8776-b2858b281444
2025-09-11 02:01:05,709 - DEBUG - Requesting: http://10.0.0.50:8082/project/c017ee8d-1947-4991-9a1f-cc62fc9a3985
2025-09-11 02:01:05,784 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8475c562-775e-4b01-92b8-94dae51fbbeb
2025-09-11 02:01:05,795 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8475c562-775e-4b01-92b8-94dae51fbbeb
2025-09-11 02:01:05,802 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/16fdbedd-4a87-444c-85ab-2b8729a1553e
2025-09-11 02:01:05,810 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/16fdbedd-4a87-444c-85ab-2b8729a1553e
2025-09-11 02:01:05,818 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/c990aa2b-8cd1-423c-973c-f471938bba97
2025-09-11 02:01:05,825 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-11 02:01:05,825 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8475c562-775e-4b01-92b8-94dae51fbbeb
2025-09-11 02:01:05,833 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/16fdbedd-4a87-444c-85ab-2b8729a1553e
2025-09-11 02:01:05,845 - INFO - Verified VN network id 12 for VN 8475c562-775e-4b01-92b8-94dae51fbbeb
2025-09-11 02:01:05,845 - INFO - Verifications in API Server for VN ctest-vn-11272897 passed
2025-09-11 02:01:05,845 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8475c562-775e-4b01-92b8-94dae51fbbeb
2025-09-11 02:01:05,854 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/16fdbedd-4a87-444c-85ab-2b8729a1553e
2025-09-11 02:01:05,860 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/16fdbedd-4a87-444c-85ab-2b8729a1553e
2025-09-11 02:01:05,866 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/c990aa2b-8cd1-423c-973c-f471938bba97
2025-09-11 02:01:05,877 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91981674:ctest-vn-11272897', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91981674', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9544752011981769473', 'uuid-lslong': '10572363793120082923'}, 'enable': 'true', 'created': '2025-09-11T02:01:03', 'last-modified': '2025-09-11T02:01:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.311124'}
2025-09-11 02:01:05,886 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-11 02:01:05,886 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11272897 passed
2025-09-11 02:01:05,886 - DEBUG - ====Verifying policy data for ctest-vn-11272897 in API_Server ======
2025-09-11 02:01:05,887 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-11 02:01:05,893 - DEBUG - Requesting: http://10.0.0.50:8082/domain/14e38ff5-4e2a-408d-8776-b2858b281444
2025-09-11 02:01:05,902 - DEBUG - Requesting: http://10.0.0.50:8082/project/c017ee8d-1947-4991-9a1f-cc62fc9a3985
2025-09-11 02:01:05,968 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8475c562-775e-4b01-92b8-94dae51fbbeb
2025-09-11 02:01:05,976 - DEBUG - ==>Verifying data for policy with id: 3d3eb213-e0e8-4463-8442-904e0147ecc2, fqn: ['default-domain', 'ctest-TestBasicPolicy-91981674', 'ctest-policy-allow-all-57441523']
2025-09-11 02:01:05,976 - INFO - VN ctest-vn-11272897 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-11 02:01:05,976 - DEBUG - Verifying the vn in opserver
2025-09-11 02:01:05,976 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91981674:ctest-vn-11272897 virtual network link through opserver 10.0.0.50
2025-09-11 02:01:05,977 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-09-11 02:01:05,985 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91981674:ctest-vn-11272897', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91981674:ctest-vn-11272897?flat'}
2025-09-11 02:01:05,985 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91981674:ctest-vn-11272897 is found in opserver
2025-09-11 02:01:05,993 - DEBUG - Do not have enough data to verify VN in agent
2025-09-11 02:01:05,997 - DEBUG - VRF ids for VN ctest-vn-11272897: {}
2025-09-11 02:01:06,060 - DEBUG - Services list from nova: [