2026-05-07 02:21:38,974 - INFO - Domain Default found not creating
2026-05-07 02:21:39,125 - INFO - Project ctest-TestBasicPolicy-54546216 not found, creating it
2026-05-07 02:21:39,585 - INFO - Created Project:ctest-TestBasicPolicy-54546216, ID : f9375e51-3718-4f09-913f-6e9ea1641183
2026-05-07 02:21:41,083 - INFO - ================================================================================
2026-05-07 02:21:41,083 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-05-07 02:21:41,083 - 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-05-07 02:21:41,344 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.25': '0'}} with
2026-05-07 02:21:41,345 - INFO - Initial checks done. Running the testcase now
2026-05-07 02:21:41,345 - INFO -
2026-05-07 02:21:41,885 - DEBUG - Response for create_network : {'network': {'id': '801c722d-14d5-412a-b54e-4cdcd8803335', 'name': 'ctest-vn-44324667', 'tenant_id': 'f9375e5137184f09913f6e9ea1641183', 'project_id': 'f9375e5137184f09913f6e9ea1641183', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54546216', 'ctest-vn-44324667'], 'port_security_enabled': True, 'description': ''}}
2026-05-07 02:21:42,079 - DEBUG - Response for create_subnet : {'subnet': {'id': '4fd5ed28-6f73-4ed7-bba9-52eaf47aa393', 'name': '', 'tenant_id': 'f9375e5137184f09913f6e9ea1641183', 'network_id': '801c722d-14d5-412a-b54e-4cdcd8803335', 'ip_version': 4, 'cidr': '212.77.140.64/26', 'allocation_pools': [{'start': '212.77.140.66', 'end': '212.77.140.126'}], 'gateway_ip': '212.77.140.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '212.77.140.66', 'tags': [], 'project_id': 'f9375e5137184f09913f6e9ea1641183'}}
2026-05-07 02:21:42,096 - INFO - Created VN ctest-vn-44324667
2026-05-07 02:21:42,149 - DEBUG - VN ctest-vn-44324667 UUID is 801c722d-14d5-412a-b54e-4cdcd8803335
2026-05-07 02:21:42,475 - DEBUG - Response for create_network : {'network': {'id': '518bf5d1-ff0e-413c-877a-c232770e5df4', 'name': 'ctest-vn-34827229', 'tenant_id': 'f9375e5137184f09913f6e9ea1641183', 'project_id': 'f9375e5137184f09913f6e9ea1641183', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54546216', 'ctest-vn-34827229'], 'port_security_enabled': True, 'description': ''}}
2026-05-07 02:21:42,668 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ab4d0c13-d294-4f5e-b02c-f7f05ee3c585', 'name': '', 'tenant_id': 'f9375e5137184f09913f6e9ea1641183', 'network_id': '518bf5d1-ff0e-413c-877a-c232770e5df4', 'ip_version': 4, 'cidr': '140.129.195.128/26', 'allocation_pools': [{'start': '140.129.195.130', 'end': '140.129.195.190'}], 'gateway_ip': '140.129.195.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '140.129.195.130', 'tags': [], 'project_id': 'f9375e5137184f09913f6e9ea1641183'}}
2026-05-07 02:21:42,684 - INFO - Created VN ctest-vn-34827229
2026-05-07 02:21:42,737 - DEBUG - VN ctest-vn-34827229 UUID is 518bf5d1-ff0e-413c-877a-c232770e5df4
2026-05-07 02:21:42,850 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-54546216:ctest-vn-44324667, 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-54546216:ctest-vn-34827229, 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-05-07 02:21:43,130 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '801c722d-14d5-412a-b54e-4cdcd8803335', 'name': 'ctest-vn-44324667', 'tenant_id': 'f9375e5137184f09913f6e9ea1641183', 'project_id': 'f9375e5137184f09913f6e9ea1641183', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4fd5ed28-6f73-4ed7-bba9-52eaf47aa393'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54546216', 'ctest-vn-44324667'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54546216', 'ctest-policy-allow-all-47515518']], 'subnet_ipam': [{'subnet_cidr': '212.77.140.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-07 02:21:43,355 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '518bf5d1-ff0e-413c-877a-c232770e5df4', 'name': 'ctest-vn-34827229', 'tenant_id': 'f9375e5137184f09913f6e9ea1641183', 'project_id': 'f9375e5137184f09913f6e9ea1641183', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ab4d0c13-d294-4f5e-b02c-f7f05ee3c585'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54546216', 'ctest-vn-34827229'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54546216', 'ctest-policy-allow-all-47515518']], 'subnet_ipam': [{'subnet_cidr': '140.129.195.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-07 02:21:43,505 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-05-07 02:21:43,797 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-05-07 02:21:43,830 - DEBUG - Requesting: http://10.0.0.41:8082/domain/c482cc19-5d94-4f51-a93e-0b7f814df4a2
2026-05-07 02:21:43,842 - DEBUG - Requesting: http://10.0.0.41:8082/project/f9375e51-3718-4f09-913f-6e9ea1641183
2026-05-07 02:21:43,912 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/801c722d-14d5-412a-b54e-4cdcd8803335
2026-05-07 02:21:43,923 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/801c722d-14d5-412a-b54e-4cdcd8803335
2026-05-07 02:21:43,931 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/6db43a50-b03a-4f6c-b940-db9ecb073833
2026-05-07 02:21:43,937 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/6db43a50-b03a-4f6c-b940-db9ecb073833
2026-05-07 02:21:43,944 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/457269a8-451c-45a3-a6b2-d333f99bb743
2026-05-07 02:21:43,949 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-07 02:21:43,949 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/801c722d-14d5-412a-b54e-4cdcd8803335
2026-05-07 02:21:43,957 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/6db43a50-b03a-4f6c-b940-db9ecb073833
2026-05-07 02:21:43,969 - INFO - Verified VN network id 11 for VN 801c722d-14d5-412a-b54e-4cdcd8803335
2026-05-07 02:21:43,970 - INFO - Verifications in API Server for VN ctest-vn-44324667 passed
2026-05-07 02:21:43,970 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/801c722d-14d5-412a-b54e-4cdcd8803335
2026-05-07 02:21:43,978 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/6db43a50-b03a-4f6c-b940-db9ecb073833
2026-05-07 02:21:43,985 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/6db43a50-b03a-4f6c-b940-db9ecb073833
2026-05-07 02:21:43,990 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/457269a8-451c-45a3-a6b2-d333f99bb743
2026-05-07 02:21:44,000 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54546216:ctest-vn-44324667', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54546216', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9231378874151289130', 'uuid-lslong': '13064464080457184053'}, 'enable': 'true', 'created': '2026-05-07T02:21:41', 'last-modified': '2026-05-07T02:21:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.890572'}
2026-05-07 02:21:44,009 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-07 02:21:44,009 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44324667 passed
2026-05-07 02:21:44,009 - DEBUG - ====Verifying policy data for ctest-vn-44324667 in API_Server ======
2026-05-07 02:21:44,009 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-05-07 02:21:44,015 - DEBUG - Requesting: http://10.0.0.41:8082/domain/c482cc19-5d94-4f51-a93e-0b7f814df4a2
2026-05-07 02:21:44,027 - DEBUG - Requesting: http://10.0.0.41:8082/project/f9375e51-3718-4f09-913f-6e9ea1641183
2026-05-07 02:21:44,098 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/801c722d-14d5-412a-b54e-4cdcd8803335
2026-05-07 02:21:44,106 - DEBUG - ==>Verifying data for policy with id: 55730c55-815c-49a3-9550-fa3a8ce7d789, fqn: ['default-domain', 'ctest-TestBasicPolicy-54546216', 'ctest-policy-allow-all-47515518']
2026-05-07 02:21:44,106 - INFO - VN ctest-vn-44324667 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-07 02:21:44,106 - DEBUG - Verifying the vn in opserver
2026-05-07 02:21:44,107 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54546216:ctest-vn-44324667 virtual network link through opserver 10.0.0.41
2026-05-07 02:21:44,107 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2026-05-07 02:21:44,401 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2026-05-07 02:21:44,461 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54546216:ctest-vn-44324667', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54546216:ctest-vn-44324667?flat'}
2026-05-07 02:21:44,461 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54546216:ctest-vn-44324667 is found in opserver
2026-05-07 02:21:44,469 - DEBUG - Do not have enough data to verify VN in agent
2026-05-07 02:21:44,473 - DEBUG - VRF ids for VN ctest-vn-44324667: {}
2026-05-07 02:21:44,473 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-05-07 02:21:44,478 - DEBUG - Requesting: http://10.0.0.41:8082/domain/c482cc19-5d94-4f51-a93e-0b7f814df4a2
2026-05-07 02:21:44,487 - DEBUG - Requesting: http://10.0.0.41:8082/project/f9375e51-3718-4f09-913f-6e9ea1641183
2026-05-07 02:21:44,553 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/518bf5d1-ff0e-413c-877a-c232770e5df4
2026-05-07 02:21:44,563 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/518bf5d1-ff0e-413c-877a-c232770e5df4
2026-05-07 02:21:44,572 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/d09950b1-ce77-4d9f-9a23-e71ee510bd77
2026-05-07 02:21:44,579 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/d09950b1-ce77-4d9f-9a23-e71ee510bd77
2026-05-07 02:21:44,585 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/8aaf0256-6283-4d9f-a2e5-88b8fdfd4659
2026-05-07 02:21:44,591 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-07 02:21:44,591 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/518bf5d1-ff0e-413c-877a-c232770e5df4
2026-05-07 02:21:44,600 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/d09950b1-ce77-4d9f-9a23-e71ee510bd77
2026-05-07 02:21:44,612 - INFO - Verified VN network id 12 for VN 518bf5d1-ff0e-413c-877a-c232770e5df4
2026-05-07 02:21:44,613 - INFO - Verifications in API Server for VN ctest-vn-34827229 passed
2026-05-07 02:21:44,613 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/518bf5d1-ff0e-413c-877a-c232770e5df4
2026-05-07 02:21:44,621 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/d09950b1-ce77-4d9f-9a23-e71ee510bd77
2026-05-07 02:21:44,627 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/d09950b1-ce77-4d9f-9a23-e71ee510bd77
2026-05-07 02:21:44,634 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/8aaf0256-6283-4d9f-a2e5-88b8fdfd4659
2026-05-07 02:21:44,644 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54546216:ctest-vn-34827229', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54546216', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5876060421111038268', 'uuid-lslong': '9762328664280554996'}, 'enable': 'true', 'created': '2026-05-07T02:21:42', 'last-modified': '2026-05-07T02:21:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.312318'}
2026-05-07 02:21:44,649 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-07 02:21:44,649 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34827229 passed
2026-05-07 02:21:44,649 - DEBUG - ====Verifying policy data for ctest-vn-34827229 in API_Server ======
2026-05-07 02:21:44,649 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-05-07 02:21:44,655 - DEBUG - Requesting: http://10.0.0.41:8082/domain/c482cc19-5d94-4f51-a93e-0b7f814df4a2
2026-05-07 02:21:44,666 - DEBUG - Requesting: http://10.0.0.41:8082/project/f9375e51-3718-4f09-913f-6e9ea1641183
2026-05-07 02:21:44,734 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/518bf5d1-ff0e-413c-877a-c232770e5df4
2026-05-07 02:21:44,741 - DEBUG - ==>Verifying data for policy with id: 55730c55-815c-49a3-9550-fa3a8ce7d789, fqn: ['default-domain', 'ctest-TestBasicPolicy-54546216', 'ctest-policy-allow-all-47515518']
2026-05-07 02:21:44,741 - INFO - VN ctest-vn-34827229 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-07 02:21:44,741 - DEBUG - Verifying the vn in opserver
2026-05-07 02:21:44,742 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54546216:ctest-vn-34827229 virtual network link through opserver 10.0.0.41
2026-05-07 02:21:44,742 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2026-05-07 02:21:44,750 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54546216:ctest-vn-34827229', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54546216:ctest-vn-34827229?flat'}
2026-05-07 02:21:44,750 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54546216:ctest-vn-34827229 is found in opserver
2026-05-07 02:21:44,758 - DEBUG - Do not have enough data to verify VN in agent
2026-05-07 02:21:44,762 - DEBUG - VRF ids for VN ctest-vn-34827229: {}
2026-05-07 02:21:44,816 - DEBUG - Services list from nova: [