2026-04-17 19:32:34,331 - INFO - Domain Default found not creating
2026-04-17 19:32:34,517 - INFO - Project ctest-TestBasicPolicy-73131470 not found, creating it
2026-04-17 19:32:34,998 - INFO - Created Project:ctest-TestBasicPolicy-73131470, ID : 85b39e15-aa81-444c-bb81-cfe2da426051
2026-04-17 19:32:36,664 - INFO - ================================================================================
2026-04-17 19:32:36,664 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-17 19:32:36,664 - 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
2026-04-17 19:32:36,928 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2026-04-17 19:32:36,928 - INFO - Initial checks done. Running the testcase now
2026-04-17 19:32:36,928 - INFO -
2026-04-17 19:32:37,546 - DEBUG - Response for create_network : {'network': {'id': '7b11c907-ed19-41e8-ba8b-31e7bf59a564', 'name': 'ctest-vn-90294028', 'tenant_id': '85b39e15aa81444cbb81cfe2da426051', 'project_id': '85b39e15aa81444cbb81cfe2da426051', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73131470', 'ctest-vn-90294028'], 'port_security_enabled': True, 'description': ''}}
2026-04-17 19:32:37,721 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cf527f68-c016-469b-8a9e-f9b13bf3f4f4', 'name': '', 'tenant_id': '85b39e15aa81444cbb81cfe2da426051', 'network_id': '7b11c907-ed19-41e8-ba8b-31e7bf59a564', 'ip_version': 4, 'cidr': '138.12.3.64/26', 'allocation_pools': [{'start': '138.12.3.66', 'end': '138.12.3.126'}], 'gateway_ip': '138.12.3.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '138.12.3.66', 'tags': [], 'project_id': '85b39e15aa81444cbb81cfe2da426051'}}
2026-04-17 19:32:37,740 - INFO - Created VN ctest-vn-90294028
2026-04-17 19:32:37,794 - DEBUG - VN ctest-vn-90294028 UUID is 7b11c907-ed19-41e8-ba8b-31e7bf59a564
2026-04-17 19:32:38,097 - DEBUG - Response for create_network : {'network': {'id': '72670c73-6b17-413e-be17-0ff9558cf6c0', 'name': 'ctest-vn-32356931', 'tenant_id': '85b39e15aa81444cbb81cfe2da426051', 'project_id': '85b39e15aa81444cbb81cfe2da426051', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73131470', 'ctest-vn-32356931'], 'port_security_enabled': True, 'description': ''}}
2026-04-17 19:32:38,287 - DEBUG - Response for create_subnet : {'subnet': {'id': '8eed82d8-534a-455e-a1aa-d050e2ae5942', 'name': '', 'tenant_id': '85b39e15aa81444cbb81cfe2da426051', 'network_id': '72670c73-6b17-413e-be17-0ff9558cf6c0', 'ip_version': 4, 'cidr': '100.143.77.0/26', 'allocation_pools': [{'start': '100.143.77.2', 'end': '100.143.77.62'}], 'gateway_ip': '100.143.77.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '100.143.77.2', 'tags': [], 'project_id': '85b39e15aa81444cbb81cfe2da426051'}}
2026-04-17 19:32:38,308 - INFO - Created VN ctest-vn-32356931
2026-04-17 19:32:38,362 - DEBUG - VN ctest-vn-32356931 UUID is 72670c73-6b17-413e-be17-0ff9558cf6c0
2026-04-17 19:32:38,478 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-73131470:ctest-vn-90294028, 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-73131470:ctest-vn-32356931, 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]
2026-04-17 19:32:38,784 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7b11c907-ed19-41e8-ba8b-31e7bf59a564', 'name': 'ctest-vn-90294028', 'tenant_id': '85b39e15aa81444cbb81cfe2da426051', 'project_id': '85b39e15aa81444cbb81cfe2da426051', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cf527f68-c016-469b-8a9e-f9b13bf3f4f4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73131470', 'ctest-vn-90294028'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73131470', 'ctest-policy-allow-all-71833988']], 'subnet_ipam': [{'subnet_cidr': '138.12.3.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-17 19:32:39,029 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '72670c73-6b17-413e-be17-0ff9558cf6c0', 'name': 'ctest-vn-32356931', 'tenant_id': '85b39e15aa81444cbb81cfe2da426051', 'project_id': '85b39e15aa81444cbb81cfe2da426051', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8eed82d8-534a-455e-a1aa-d050e2ae5942'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73131470', 'ctest-vn-32356931'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73131470', 'ctest-policy-allow-all-71833988']], 'subnet_ipam': [{'subnet_cidr': '100.143.77.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-17 19:32:39,198 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-04-17 19:32:39,542 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-04-17 19:32:39,576 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f2cc9547-5ac2-4ca4-a756-f5cfaae1bbe0
2026-04-17 19:32:39,589 - DEBUG - Requesting: http://10.0.0.33:8082/project/85b39e15-aa81-444c-bb81-cfe2da426051
2026-04-17 19:32:39,667 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7b11c907-ed19-41e8-ba8b-31e7bf59a564
2026-04-17 19:32:39,677 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7b11c907-ed19-41e8-ba8b-31e7bf59a564
2026-04-17 19:32:39,686 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e6b4634e-c1ee-4e1b-b53a-50c181fdc574
2026-04-17 19:32:39,699 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e6b4634e-c1ee-4e1b-b53a-50c181fdc574
2026-04-17 19:32:39,707 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b0aec3fc-25ae-4ad2-8a94-06349b805b8a
2026-04-17 19:32:39,714 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-17 19:32:39,714 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7b11c907-ed19-41e8-ba8b-31e7bf59a564
2026-04-17 19:32:39,724 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e6b4634e-c1ee-4e1b-b53a-50c181fdc574
2026-04-17 19:32:39,739 - INFO - Verified VN network id 11 for VN 7b11c907-ed19-41e8-ba8b-31e7bf59a564
2026-04-17 19:32:39,739 - INFO - Verifications in API Server for VN ctest-vn-90294028 passed
2026-04-17 19:32:39,739 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7b11c907-ed19-41e8-ba8b-31e7bf59a564
2026-04-17 19:32:39,752 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e6b4634e-c1ee-4e1b-b53a-50c181fdc574
2026-04-17 19:32:39,761 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e6b4634e-c1ee-4e1b-b53a-50c181fdc574
2026-04-17 19:32:39,771 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b0aec3fc-25ae-4ad2-8a94-06349b805b8a
2026-04-17 19:32:39,789 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73131470:ctest-vn-90294028', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73131470', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8868090177149026792', 'uuid-lslong': '13441892384234906980'}, 'enable': 'true', 'created': '2026-04-17T19:32:37', 'last-modified': '2026-04-17T19:32:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.028774'}
2026-04-17 19:32:39,796 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-17 19:32:39,796 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90294028 passed
2026-04-17 19:32:39,797 - DEBUG - ====Verifying policy data for ctest-vn-90294028 in API_Server ======
2026-04-17 19:32:39,797 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-04-17 19:32:39,803 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f2cc9547-5ac2-4ca4-a756-f5cfaae1bbe0
2026-04-17 19:32:39,820 - DEBUG - Requesting: http://10.0.0.33:8082/project/85b39e15-aa81-444c-bb81-cfe2da426051
2026-04-17 19:32:39,906 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7b11c907-ed19-41e8-ba8b-31e7bf59a564
2026-04-17 19:32:39,921 - DEBUG - ==>Verifying data for policy with id: b5f5f506-9c96-4c85-851e-0bd7fcffc85c, fqn: ['default-domain', 'ctest-TestBasicPolicy-73131470', 'ctest-policy-allow-all-71833988']
2026-04-17 19:32:39,921 - INFO - VN ctest-vn-90294028 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-17 19:32:39,922 - DEBUG - Verifying the vn in opserver
2026-04-17 19:32:39,922 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73131470:ctest-vn-90294028 virtual network link through opserver 10.0.0.33
2026-04-17 19:32:39,922 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-04-17 19:32:40,263 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-04-17 19:32:40,332 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73131470:ctest-vn-90294028', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73131470:ctest-vn-90294028?flat'}
2026-04-17 19:32:40,332 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73131470:ctest-vn-90294028 is found in opserver
2026-04-17 19:32:40,343 - DEBUG - Do not have enough data to verify VN in agent
2026-04-17 19:32:40,348 - DEBUG - VRF ids for VN ctest-vn-90294028: {}
2026-04-17 19:32:40,348 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-04-17 19:32:40,355 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f2cc9547-5ac2-4ca4-a756-f5cfaae1bbe0
2026-04-17 19:32:40,366 - DEBUG - Requesting: http://10.0.0.33:8082/project/85b39e15-aa81-444c-bb81-cfe2da426051
2026-04-17 19:32:40,439 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/72670c73-6b17-413e-be17-0ff9558cf6c0
2026-04-17 19:32:40,453 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/72670c73-6b17-413e-be17-0ff9558cf6c0
2026-04-17 19:32:40,463 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/36364ba5-060b-49ae-a7af-e352a51aa05a
2026-04-17 19:32:40,471 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/36364ba5-060b-49ae-a7af-e352a51aa05a
2026-04-17 19:32:40,480 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/c1f12907-de82-4189-9bd4-8d0977021b0b
2026-04-17 19:32:40,488 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-17 19:32:40,488 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/72670c73-6b17-413e-be17-0ff9558cf6c0
2026-04-17 19:32:40,501 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/36364ba5-060b-49ae-a7af-e352a51aa05a
2026-04-17 19:32:40,518 - INFO - Verified VN network id 12 for VN 72670c73-6b17-413e-be17-0ff9558cf6c0
2026-04-17 19:32:40,518 - INFO - Verifications in API Server for VN ctest-vn-32356931 passed
2026-04-17 19:32:40,518 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/72670c73-6b17-413e-be17-0ff9558cf6c0
2026-04-17 19:32:40,528 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/36364ba5-060b-49ae-a7af-e352a51aa05a
2026-04-17 19:32:40,536 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/36364ba5-060b-49ae-a7af-e352a51aa05a
2026-04-17 19:32:40,545 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/c1f12907-de82-4189-9bd4-8d0977021b0b
2026-04-17 19:32:40,558 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73131470:ctest-vn-32356931', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73131470', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8243571332782440766', 'uuid-lslong': '13697434355227227840'}, 'enable': 'true', 'created': '2026-04-17T19:32:38', 'last-modified': '2026-04-17T19:32:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.551767'}
2026-04-17 19:32:40,564 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-17 19:32:40,565 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32356931 passed
2026-04-17 19:32:40,565 - DEBUG - ====Verifying policy data for ctest-vn-32356931 in API_Server ======
2026-04-17 19:32:40,565 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-04-17 19:32:40,571 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f2cc9547-5ac2-4ca4-a756-f5cfaae1bbe0
2026-04-17 19:32:40,582 - DEBUG - Requesting: http://10.0.0.33:8082/project/85b39e15-aa81-444c-bb81-cfe2da426051
2026-04-17 19:32:40,662 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/72670c73-6b17-413e-be17-0ff9558cf6c0
2026-04-17 19:32:40,672 - DEBUG - ==>Verifying data for policy with id: b5f5f506-9c96-4c85-851e-0bd7fcffc85c, fqn: ['default-domain', 'ctest-TestBasicPolicy-73131470', 'ctest-policy-allow-all-71833988']
2026-04-17 19:32:40,672 - INFO - VN ctest-vn-32356931 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-17 19:32:40,672 - DEBUG - Verifying the vn in opserver
2026-04-17 19:32:40,672 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73131470:ctest-vn-32356931 virtual network link through opserver 10.0.0.33
2026-04-17 19:32:40,672 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-04-17 19:32:40,682 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73131470:ctest-vn-32356931', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73131470:ctest-vn-32356931?flat'}
2026-04-17 19:32:40,682 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73131470:ctest-vn-32356931 is found in opserver
2026-04-17 19:32:40,695 - DEBUG - Do not have enough data to verify VN in agent
2026-04-17 19:32:40,701 - DEBUG - VRF ids for VN ctest-vn-32356931: {}
2026-04-17 19:32:40,762 - DEBUG - Services list from nova: [