2025-08-28 02:41:15,139 - INFO - Domain Default found not creating
2025-08-28 02:41:15,307 - INFO - Project ctest-TestBasicPolicy-00209082 not found, creating it
2025-08-28 02:41:15,803 - INFO - Created Project:ctest-TestBasicPolicy-00209082, ID : f2209cd7-f508-4202-b066-f45b1bb1ee2e
2025-08-28 02:41:17,461 - INFO - ================================================================================
2025-08-28 02:41:17,461 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-28 02:41:17,462 - 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-08-28 02:41:17,732 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.209': '0'}} with
2025-08-28 02:41:17,732 - INFO - Initial checks done. Running the testcase now
2025-08-28 02:41:17,733 - INFO -
2025-08-28 02:41:18,599 - DEBUG - Response for create_network : {'network': {'id': '132f2602-5d02-4513-b865-61f4cc7cc844', 'name': 'ctest-vn-85476750', 'tenant_id': 'f2209cd7f5084202b066f45b1bb1ee2e', 'project_id': 'f2209cd7f5084202b066f45b1bb1ee2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00209082', 'ctest-vn-85476750'], 'port_security_enabled': True, 'description': ''}}
2025-08-28 02:41:18,920 - DEBUG - Response for create_subnet : {'subnet': {'id': '522fd624-3fc4-482e-aa4a-b447a3b25ecc', 'name': '', 'tenant_id': 'f2209cd7f5084202b066f45b1bb1ee2e', 'network_id': '132f2602-5d02-4513-b865-61f4cc7cc844', 'ip_version': 4, 'cidr': '109.159.145.64/26', 'allocation_pools': [{'start': '109.159.145.66', 'end': '109.159.145.126'}], 'gateway_ip': '109.159.145.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '109.159.145.66', 'tags': [], 'project_id': 'f2209cd7f5084202b066f45b1bb1ee2e'}}
2025-08-28 02:41:18,947 - INFO - Created VN ctest-vn-85476750
2025-08-28 02:41:19,002 - DEBUG - VN ctest-vn-85476750 UUID is 132f2602-5d02-4513-b865-61f4cc7cc844
2025-08-28 02:41:19,322 - DEBUG - Response for create_network : {'network': {'id': 'b894e0ab-65e5-4e40-80bb-e9691e7c0b49', 'name': 'ctest-vn-83644616', 'tenant_id': 'f2209cd7f5084202b066f45b1bb1ee2e', 'project_id': 'f2209cd7f5084202b066f45b1bb1ee2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00209082', 'ctest-vn-83644616'], 'port_security_enabled': True, 'description': ''}}
2025-08-28 02:41:19,512 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e9c1e655-f9e8-49f1-83e1-b290b774187a', 'name': '', 'tenant_id': 'f2209cd7f5084202b066f45b1bb1ee2e', 'network_id': 'b894e0ab-65e5-4e40-80bb-e9691e7c0b49', 'ip_version': 4, 'cidr': '140.101.85.64/26', 'allocation_pools': [{'start': '140.101.85.66', 'end': '140.101.85.126'}], 'gateway_ip': '140.101.85.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '140.101.85.66', 'tags': [], 'project_id': 'f2209cd7f5084202b066f45b1bb1ee2e'}}
2025-08-28 02:41:19,538 - INFO - Created VN ctest-vn-83644616
2025-08-28 02:41:19,593 - DEBUG - VN ctest-vn-83644616 UUID is b894e0ab-65e5-4e40-80bb-e9691e7c0b49
2025-08-28 02:41:19,714 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-00209082:ctest-vn-85476750, 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-00209082:ctest-vn-83644616, 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-08-28 02:41:20,025 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '132f2602-5d02-4513-b865-61f4cc7cc844', 'name': 'ctest-vn-85476750', 'tenant_id': 'f2209cd7f5084202b066f45b1bb1ee2e', 'project_id': 'f2209cd7f5084202b066f45b1bb1ee2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['522fd624-3fc4-482e-aa4a-b447a3b25ecc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00209082', 'ctest-vn-85476750'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00209082', 'ctest-policy-allow-all-28699165']], 'subnet_ipam': [{'subnet_cidr': '109.159.145.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-28 02:41:20,268 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b894e0ab-65e5-4e40-80bb-e9691e7c0b49', 'name': 'ctest-vn-83644616', 'tenant_id': 'f2209cd7f5084202b066f45b1bb1ee2e', 'project_id': 'f2209cd7f5084202b066f45b1bb1ee2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e9c1e655-f9e8-49f1-83e1-b290b774187a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00209082', 'ctest-vn-83644616'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00209082', 'ctest-policy-allow-all-28699165']], 'subnet_ipam': [{'subnet_cidr': '140.101.85.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-28 02:41:20,429 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-28 02:41:20,778 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-28 02:41:20,810 - DEBUG - Requesting: http://10.0.0.249:8082/domain/58a52db9-5c75-431f-b090-7480be74f975
2025-08-28 02:41:20,826 - DEBUG - Requesting: http://10.0.0.249:8082/project/f2209cd7-f508-4202-b066-f45b1bb1ee2e
2025-08-28 02:41:20,905 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/132f2602-5d02-4513-b865-61f4cc7cc844
2025-08-28 02:41:20,917 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/132f2602-5d02-4513-b865-61f4cc7cc844
2025-08-28 02:41:20,929 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1bae14f4-3c17-4eae-9c39-5f57c829c7f5
2025-08-28 02:41:20,937 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1bae14f4-3c17-4eae-9c39-5f57c829c7f5
2025-08-28 02:41:20,945 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/7fe67bcc-7ca5-493a-a14a-f791b1f3a220
2025-08-28 02:41:20,951 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-28 02:41:20,951 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/132f2602-5d02-4513-b865-61f4cc7cc844
2025-08-28 02:41:20,960 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1bae14f4-3c17-4eae-9c39-5f57c829c7f5
2025-08-28 02:41:20,976 - INFO - Verified VN network id 12 for VN 132f2602-5d02-4513-b865-61f4cc7cc844
2025-08-28 02:41:20,976 - INFO - Verifications in API Server for VN ctest-vn-85476750 passed
2025-08-28 02:41:20,976 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/132f2602-5d02-4513-b865-61f4cc7cc844
2025-08-28 02:41:20,987 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1bae14f4-3c17-4eae-9c39-5f57c829c7f5
2025-08-28 02:41:20,999 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1bae14f4-3c17-4eae-9c39-5f57c829c7f5
2025-08-28 02:41:21,007 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/7fe67bcc-7ca5-493a-a14a-f791b1f3a220
2025-08-28 02:41:21,021 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00209082:ctest-vn-85476750', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00209082', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1382365402218251539', 'uuid-lslong': '13287133979657160772'}, 'enable': 'true', 'created': '2025-08-28T02:41:18', 'last-modified': '2025-08-28T02:41:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.017133'}
2025-08-28 02:41:21,030 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-28 02:41:21,030 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85476750 passed
2025-08-28 02:41:21,030 - DEBUG - ====Verifying policy data for ctest-vn-85476750 in API_Server ======
2025-08-28 02:41:21,030 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-28 02:41:21,036 - DEBUG - Requesting: http://10.0.0.249:8082/domain/58a52db9-5c75-431f-b090-7480be74f975
2025-08-28 02:41:21,049 - DEBUG - Requesting: http://10.0.0.249:8082/project/f2209cd7-f508-4202-b066-f45b1bb1ee2e
2025-08-28 02:41:21,124 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/132f2602-5d02-4513-b865-61f4cc7cc844
2025-08-28 02:41:21,135 - DEBUG - ==>Verifying data for policy with id: 09247d08-033b-42bc-b35a-217ce7fa298b, fqn: ['default-domain', 'ctest-TestBasicPolicy-00209082', 'ctest-policy-allow-all-28699165']
2025-08-28 02:41:21,135 - INFO - VN ctest-vn-85476750 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-28 02:41:21,135 - DEBUG - Verifying the vn in opserver
2025-08-28 02:41:21,135 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00209082:ctest-vn-85476750 virtual network link through opserver 10.0.0.249
2025-08-28 02:41:21,135 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-08-28 02:41:21,485 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-08-28 02:41:21,553 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00209082:ctest-vn-85476750', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00209082:ctest-vn-85476750?flat'}
2025-08-28 02:41:21,553 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00209082:ctest-vn-85476750 is found in opserver
2025-08-28 02:41:21,565 - DEBUG - Do not have enough data to verify VN in agent
2025-08-28 02:41:21,571 - DEBUG - VRF ids for VN ctest-vn-85476750: {}
2025-08-28 02:41:21,571 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-28 02:41:21,577 - DEBUG - Requesting: http://10.0.0.249:8082/domain/58a52db9-5c75-431f-b090-7480be74f975
2025-08-28 02:41:21,590 - DEBUG - Requesting: http://10.0.0.249:8082/project/f2209cd7-f508-4202-b066-f45b1bb1ee2e
2025-08-28 02:41:21,667 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b894e0ab-65e5-4e40-80bb-e9691e7c0b49
2025-08-28 02:41:21,680 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b894e0ab-65e5-4e40-80bb-e9691e7c0b49
2025-08-28 02:41:21,691 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/fdb08b22-0ef9-4116-a65e-db072935afa7
2025-08-28 02:41:21,699 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/fdb08b22-0ef9-4116-a65e-db072935afa7
2025-08-28 02:41:21,707 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/fb15960f-336c-4d2b-8c67-76bb5bc723ec
2025-08-28 02:41:21,715 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-28 02:41:21,715 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b894e0ab-65e5-4e40-80bb-e9691e7c0b49
2025-08-28 02:41:21,725 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/fdb08b22-0ef9-4116-a65e-db072935afa7
2025-08-28 02:41:21,741 - INFO - Verified VN network id 13 for VN b894e0ab-65e5-4e40-80bb-e9691e7c0b49
2025-08-28 02:41:21,742 - INFO - Verifications in API Server for VN ctest-vn-83644616 passed
2025-08-28 02:41:21,742 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b894e0ab-65e5-4e40-80bb-e9691e7c0b49
2025-08-28 02:41:21,754 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/fdb08b22-0ef9-4116-a65e-db072935afa7
2025-08-28 02:41:21,764 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/fdb08b22-0ef9-4116-a65e-db072935afa7
2025-08-28 02:41:21,772 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/fb15960f-336c-4d2b-8c67-76bb5bc723ec
2025-08-28 02:41:21,786 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00209082:ctest-vn-83644616', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00209082', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13300502626285473344', 'uuid-lslong': '9276264495191952201'}, 'enable': 'true', 'created': '2025-08-28T02:41:19', 'last-modified': '2025-08-28T02:41:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.542335'}
2025-08-28 02:41:21,793 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-28 02:41:21,793 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83644616 passed
2025-08-28 02:41:21,793 - DEBUG - ====Verifying policy data for ctest-vn-83644616 in API_Server ======
2025-08-28 02:41:21,793 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-28 02:41:21,800 - DEBUG - Requesting: http://10.0.0.249:8082/domain/58a52db9-5c75-431f-b090-7480be74f975
2025-08-28 02:41:21,811 - DEBUG - Requesting: http://10.0.0.249:8082/project/f2209cd7-f508-4202-b066-f45b1bb1ee2e
2025-08-28 02:41:21,887 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b894e0ab-65e5-4e40-80bb-e9691e7c0b49
2025-08-28 02:41:21,898 - DEBUG - ==>Verifying data for policy with id: 09247d08-033b-42bc-b35a-217ce7fa298b, fqn: ['default-domain', 'ctest-TestBasicPolicy-00209082', 'ctest-policy-allow-all-28699165']
2025-08-28 02:41:21,898 - INFO - VN ctest-vn-83644616 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-28 02:41:21,898 - DEBUG - Verifying the vn in opserver
2025-08-28 02:41:21,898 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00209082:ctest-vn-83644616 virtual network link through opserver 10.0.0.249
2025-08-28 02:41:21,898 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-08-28 02:41:21,909 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00209082:ctest-vn-83644616', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00209082:ctest-vn-83644616?flat'}
2025-08-28 02:41:21,909 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00209082:ctest-vn-83644616 is found in opserver
2025-08-28 02:41:21,919 - DEBUG - Do not have enough data to verify VN in agent
2025-08-28 02:41:21,924 - DEBUG - VRF ids for VN ctest-vn-83644616: {}
2025-08-28 02:41:21,989 - DEBUG - Services list from nova: [