2025-08-20 13:39:09,320 - INFO - Domain Default found not creating
2025-08-20 13:39:09,443 - INFO - Project ctest-TestBasicPolicy-74349332 not found, creating it
2025-08-20 13:39:09,865 - INFO - Created Project:ctest-TestBasicPolicy-74349332, ID : 6d4579bf-46d1-40e0-ab0a-7510f28297db
2025-08-20 13:39:11,265 - INFO - ================================================================================
2025-08-20 13:39:11,265 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-20 13:39:11,265 - 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-20 13:39:11,518 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.254': '0'}} with
2025-08-20 13:39:11,518 - INFO - Initial checks done. Running the testcase now
2025-08-20 13:39:11,518 - INFO -
2025-08-20 13:39:12,040 - DEBUG - Response for create_network : {'network': {'id': '83adfdf5-d646-42fb-b6d3-1a2359e49246', 'name': 'ctest-vn-95990028', 'tenant_id': '6d4579bf46d140e0ab0a7510f28297db', 'project_id': '6d4579bf46d140e0ab0a7510f28297db', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74349332', 'ctest-vn-95990028'], 'port_security_enabled': True, 'description': ''}}
2025-08-20 13:39:12,224 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fc203b06-ce81-441c-963d-ea926c701d19', 'name': '', 'tenant_id': '6d4579bf46d140e0ab0a7510f28297db', 'network_id': '83adfdf5-d646-42fb-b6d3-1a2359e49246', 'ip_version': 4, 'cidr': '84.123.101.128/26', 'allocation_pools': [{'start': '84.123.101.130', 'end': '84.123.101.190'}], 'gateway_ip': '84.123.101.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '84.123.101.130', 'tags': [], 'project_id': '6d4579bf46d140e0ab0a7510f28297db'}}
2025-08-20 13:39:12,239 - INFO - Created VN ctest-vn-95990028
2025-08-20 13:39:12,289 - DEBUG - VN ctest-vn-95990028 UUID is 83adfdf5-d646-42fb-b6d3-1a2359e49246
2025-08-20 13:39:12,593 - DEBUG - Response for create_network : {'network': {'id': '4b4efef9-b6d3-4519-aeb8-bea34712959f', 'name': 'ctest-vn-75273633', 'tenant_id': '6d4579bf46d140e0ab0a7510f28297db', 'project_id': '6d4579bf46d140e0ab0a7510f28297db', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74349332', 'ctest-vn-75273633'], 'port_security_enabled': True, 'description': ''}}
2025-08-20 13:39:12,742 - DEBUG - Response for create_subnet : {'subnet': {'id': '1bd04b3e-3433-4333-a3b5-6a107359a048', 'name': '', 'tenant_id': '6d4579bf46d140e0ab0a7510f28297db', 'network_id': '4b4efef9-b6d3-4519-aeb8-bea34712959f', 'ip_version': 4, 'cidr': '32.138.141.128/26', 'allocation_pools': [{'start': '32.138.141.130', 'end': '32.138.141.190'}], 'gateway_ip': '32.138.141.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32.138.141.130', 'tags': [], 'project_id': '6d4579bf46d140e0ab0a7510f28297db'}}
2025-08-20 13:39:12,757 - INFO - Created VN ctest-vn-75273633
2025-08-20 13:39:12,813 - DEBUG - VN ctest-vn-75273633 UUID is 4b4efef9-b6d3-4519-aeb8-bea34712959f
2025-08-20 13:39:12,957 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-74349332:ctest-vn-95990028, 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-74349332:ctest-vn-75273633, 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-20 13:39:13,274 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '83adfdf5-d646-42fb-b6d3-1a2359e49246', 'name': 'ctest-vn-95990028', 'tenant_id': '6d4579bf46d140e0ab0a7510f28297db', 'project_id': '6d4579bf46d140e0ab0a7510f28297db', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fc203b06-ce81-441c-963d-ea926c701d19'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74349332', 'ctest-vn-95990028'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74349332', 'ctest-policy-allow-all-81671966']], 'subnet_ipam': [{'subnet_cidr': '84.123.101.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-20 13:39:13,542 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4b4efef9-b6d3-4519-aeb8-bea34712959f', 'name': 'ctest-vn-75273633', 'tenant_id': '6d4579bf46d140e0ab0a7510f28297db', 'project_id': '6d4579bf46d140e0ab0a7510f28297db', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1bd04b3e-3433-4333-a3b5-6a107359a048'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74349332', 'ctest-vn-75273633'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74349332', 'ctest-policy-allow-all-81671966']], 'subnet_ipam': [{'subnet_cidr': '32.138.141.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-20 13:39:13,685 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-08-20 13:39:13,980 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-08-20 13:39:14,004 - DEBUG - Requesting: http://10.0.0.41:8082/domain/b849a932-0c4e-4974-a36d-8a684b8ca868
2025-08-20 13:39:14,016 - DEBUG - Requesting: http://10.0.0.41:8082/project/6d4579bf-46d1-40e0-ab0a-7510f28297db
2025-08-20 13:39:14,093 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/83adfdf5-d646-42fb-b6d3-1a2359e49246
2025-08-20 13:39:14,103 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/83adfdf5-d646-42fb-b6d3-1a2359e49246
2025-08-20 13:39:14,111 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/c2503607-a98b-41cf-913a-464cfa8de33f
2025-08-20 13:39:14,118 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/c2503607-a98b-41cf-913a-464cfa8de33f
2025-08-20 13:39:14,123 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/3664037e-039c-4805-9d6e-66b62fcabcda
2025-08-20 13:39:14,129 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-20 13:39:14,129 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/83adfdf5-d646-42fb-b6d3-1a2359e49246
2025-08-20 13:39:14,137 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/c2503607-a98b-41cf-913a-464cfa8de33f
2025-08-20 13:39:14,148 - INFO - Verified VN network id 12 for VN 83adfdf5-d646-42fb-b6d3-1a2359e49246
2025-08-20 13:39:14,149 - INFO - Verifications in API Server for VN ctest-vn-95990028 passed
2025-08-20 13:39:14,149 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/83adfdf5-d646-42fb-b6d3-1a2359e49246
2025-08-20 13:39:14,157 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/c2503607-a98b-41cf-913a-464cfa8de33f
2025-08-20 13:39:14,163 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/c2503607-a98b-41cf-913a-464cfa8de33f
2025-08-20 13:39:14,169 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/3664037e-039c-4805-9d6e-66b62fcabcda
2025-08-20 13:39:14,179 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74349332:ctest-vn-95990028', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74349332', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9488519222243246843', 'uuid-lslong': '13173902074123162182'}, 'enable': 'true', 'created': '2025-08-20T13:39:12', 'last-modified': '2025-08-20T13:39:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.934276'}
2025-08-20 13:39:14,185 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-20 13:39:14,185 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95990028 passed
2025-08-20 13:39:14,185 - DEBUG - ====Verifying policy data for ctest-vn-95990028 in API_Server ======
2025-08-20 13:39:14,185 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-08-20 13:39:14,190 - DEBUG - Requesting: http://10.0.0.41:8082/domain/b849a932-0c4e-4974-a36d-8a684b8ca868
2025-08-20 13:39:14,201 - DEBUG - Requesting: http://10.0.0.41:8082/project/6d4579bf-46d1-40e0-ab0a-7510f28297db
2025-08-20 13:39:14,277 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/83adfdf5-d646-42fb-b6d3-1a2359e49246
2025-08-20 13:39:14,286 - DEBUG - ==>Verifying data for policy with id: 36d68252-a9c5-4296-be7a-9170ceaec448, fqn: ['default-domain', 'ctest-TestBasicPolicy-74349332', 'ctest-policy-allow-all-81671966']
2025-08-20 13:39:14,286 - INFO - VN ctest-vn-95990028 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-20 13:39:14,286 - DEBUG - Verifying the vn in opserver
2025-08-20 13:39:14,286 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74349332:ctest-vn-95990028 virtual network link through opserver 10.0.0.41
2025-08-20 13:39:14,287 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-08-20 13:39:14,575 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-08-20 13:39:14,626 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74349332:ctest-vn-95990028', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74349332:ctest-vn-95990028?flat'}
2025-08-20 13:39:14,626 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74349332:ctest-vn-95990028 is found in opserver
2025-08-20 13:39:14,636 - DEBUG - Do not have enough data to verify VN in agent
2025-08-20 13:39:14,641 - DEBUG - VRF ids for VN ctest-vn-95990028: {}
2025-08-20 13:39:14,641 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-08-20 13:39:14,646 - DEBUG - Requesting: http://10.0.0.41:8082/domain/b849a932-0c4e-4974-a36d-8a684b8ca868
2025-08-20 13:39:14,657 - DEBUG - Requesting: http://10.0.0.41:8082/project/6d4579bf-46d1-40e0-ab0a-7510f28297db
2025-08-20 13:39:14,726 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/4b4efef9-b6d3-4519-aeb8-bea34712959f
2025-08-20 13:39:14,737 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/4b4efef9-b6d3-4519-aeb8-bea34712959f
2025-08-20 13:39:14,747 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/d0ebea3b-1b40-40ee-946a-2a1b185c1214
2025-08-20 13:39:14,754 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/d0ebea3b-1b40-40ee-946a-2a1b185c1214
2025-08-20 13:39:14,761 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/991245e1-728c-46f9-98f8-25590d850023
2025-08-20 13:39:14,767 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-20 13:39:14,767 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/4b4efef9-b6d3-4519-aeb8-bea34712959f
2025-08-20 13:39:14,775 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/d0ebea3b-1b40-40ee-946a-2a1b185c1214
2025-08-20 13:39:14,787 - INFO - Verified VN network id 13 for VN 4b4efef9-b6d3-4519-aeb8-bea34712959f
2025-08-20 13:39:14,788 - INFO - Verifications in API Server for VN ctest-vn-75273633 passed
2025-08-20 13:39:14,788 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/4b4efef9-b6d3-4519-aeb8-bea34712959f
2025-08-20 13:39:14,796 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/d0ebea3b-1b40-40ee-946a-2a1b185c1214
2025-08-20 13:39:14,802 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/d0ebea3b-1b40-40ee-946a-2a1b185c1214
2025-08-20 13:39:14,808 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/991245e1-728c-46f9-98f8-25590d850023
2025-08-20 13:39:14,819 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74349332:ctest-vn-75273633', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74349332', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5426554949495637273', 'uuid-lslong': '12590022366795568543'}, 'enable': 'true', 'created': '2025-08-20T13:39:12', 'last-modified': '2025-08-20T13:39:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.348109'}
2025-08-20 13:39:14,825 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-20 13:39:14,825 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75273633 passed
2025-08-20 13:39:14,826 - DEBUG - ====Verifying policy data for ctest-vn-75273633 in API_Server ======
2025-08-20 13:39:14,826 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-08-20 13:39:14,830 - DEBUG - Requesting: http://10.0.0.41:8082/domain/b849a932-0c4e-4974-a36d-8a684b8ca868
2025-08-20 13:39:14,841 - DEBUG - Requesting: http://10.0.0.41:8082/project/6d4579bf-46d1-40e0-ab0a-7510f28297db
2025-08-20 13:39:14,910 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/4b4efef9-b6d3-4519-aeb8-bea34712959f
2025-08-20 13:39:14,919 - DEBUG - ==>Verifying data for policy with id: 36d68252-a9c5-4296-be7a-9170ceaec448, fqn: ['default-domain', 'ctest-TestBasicPolicy-74349332', 'ctest-policy-allow-all-81671966']
2025-08-20 13:39:14,919 - INFO - VN ctest-vn-75273633 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-20 13:39:14,919 - DEBUG - Verifying the vn in opserver
2025-08-20 13:39:14,919 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74349332:ctest-vn-75273633 virtual network link through opserver 10.0.0.41
2025-08-20 13:39:14,919 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-08-20 13:39:14,928 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74349332:ctest-vn-75273633', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74349332:ctest-vn-75273633?flat'}
2025-08-20 13:39:14,928 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74349332:ctest-vn-75273633 is found in opserver
2025-08-20 13:39:14,937 - DEBUG - Do not have enough data to verify VN in agent
2025-08-20 13:39:14,942 - DEBUG - VRF ids for VN ctest-vn-75273633: {}
2025-08-20 13:39:14,991 - DEBUG - Services list from nova: [