2026-03-09 02:13:25,091 - INFO - Domain Default found not creating
2026-03-09 02:13:25,272 - INFO - Project ctest-TestBasicPolicy-61202337 not found, creating it
2026-03-09 02:13:25,759 - INFO - Created Project:ctest-TestBasicPolicy-61202337, ID : f0c353b5-a5ac-4409-9836-37483b614b96
2026-03-09 02:13:27,276 - INFO - ================================================================================
2026-03-09 02:13:27,276 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-09 02:13:27,276 - 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-03-09 02:13:27,532 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.252': '0'}} with
2026-03-09 02:13:27,532 - INFO - Initial checks done. Running the testcase now
2026-03-09 02:13:27,532 - INFO -
2026-03-09 02:13:28,080 - DEBUG - Response for create_network : {'network': {'id': 'ddf708e3-c678-45af-9f10-5cd392533d1a', 'name': 'ctest-vn-33222751', 'tenant_id': 'f0c353b5a5ac4409983637483b614b96', 'project_id': 'f0c353b5a5ac4409983637483b614b96', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61202337', 'ctest-vn-33222751'], 'port_security_enabled': True, 'description': ''}}
2026-03-09 02:13:28,282 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c90ee7f3-cc20-44f3-b71b-87d15b160fd1', 'name': '', 'tenant_id': 'f0c353b5a5ac4409983637483b614b96', 'network_id': 'ddf708e3-c678-45af-9f10-5cd392533d1a', 'ip_version': 4, 'cidr': '87.99.178.192/26', 'allocation_pools': [{'start': '87.99.178.194', 'end': '87.99.178.254'}], 'gateway_ip': '87.99.178.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '87.99.178.194', 'tags': [], 'project_id': 'f0c353b5a5ac4409983637483b614b96'}}
2026-03-09 02:13:28,298 - INFO - Created VN ctest-vn-33222751
2026-03-09 02:13:28,350 - DEBUG - VN ctest-vn-33222751 UUID is ddf708e3-c678-45af-9f10-5cd392533d1a
2026-03-09 02:13:28,626 - DEBUG - Response for create_network : {'network': {'id': 'dbdd9e01-5ed3-4b26-b3c8-ecb9c7262148', 'name': 'ctest-vn-24351091', 'tenant_id': 'f0c353b5a5ac4409983637483b614b96', 'project_id': 'f0c353b5a5ac4409983637483b614b96', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61202337', 'ctest-vn-24351091'], 'port_security_enabled': True, 'description': ''}}
2026-03-09 02:13:28,781 - DEBUG - Response for create_subnet : {'subnet': {'id': '08213912-e923-48d1-9199-73df5c6c9bca', 'name': '', 'tenant_id': 'f0c353b5a5ac4409983637483b614b96', 'network_id': 'dbdd9e01-5ed3-4b26-b3c8-ecb9c7262148', 'ip_version': 4, 'cidr': '198.91.1.128/26', 'allocation_pools': [{'start': '198.91.1.130', 'end': '198.91.1.190'}], 'gateway_ip': '198.91.1.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '198.91.1.130', 'tags': [], 'project_id': 'f0c353b5a5ac4409983637483b614b96'}}
2026-03-09 02:13:28,800 - INFO - Created VN ctest-vn-24351091
2026-03-09 02:13:28,850 - DEBUG - VN ctest-vn-24351091 UUID is dbdd9e01-5ed3-4b26-b3c8-ecb9c7262148
2026-03-09 02:13:29,002 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-61202337:ctest-vn-33222751, 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-61202337:ctest-vn-24351091, 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-03-09 02:13:29,296 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ddf708e3-c678-45af-9f10-5cd392533d1a', 'name': 'ctest-vn-33222751', 'tenant_id': 'f0c353b5a5ac4409983637483b614b96', 'project_id': 'f0c353b5a5ac4409983637483b614b96', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c90ee7f3-cc20-44f3-b71b-87d15b160fd1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61202337', 'ctest-vn-33222751'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61202337', 'ctest-policy-allow-all-62823826']], 'subnet_ipam': [{'subnet_cidr': '87.99.178.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-09 02:13:29,521 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dbdd9e01-5ed3-4b26-b3c8-ecb9c7262148', 'name': 'ctest-vn-24351091', 'tenant_id': 'f0c353b5a5ac4409983637483b614b96', 'project_id': 'f0c353b5a5ac4409983637483b614b96', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['08213912-e923-48d1-9199-73df5c6c9bca'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61202337', 'ctest-vn-24351091'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61202337', 'ctest-policy-allow-all-62823826']], 'subnet_ipam': [{'subnet_cidr': '198.91.1.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-09 02:13:29,674 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-03-09 02:13:29,983 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-03-09 02:13:30,012 - DEBUG - Requesting: http://10.0.0.141:8082/domain/da56c12e-8b84-4207-88d9-b77d9e8757cc
2026-03-09 02:13:30,025 - DEBUG - Requesting: http://10.0.0.141:8082/project/f0c353b5-a5ac-4409-9836-37483b614b96
2026-03-09 02:13:30,098 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/ddf708e3-c678-45af-9f10-5cd392533d1a
2026-03-09 02:13:30,108 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/ddf708e3-c678-45af-9f10-5cd392533d1a
2026-03-09 02:13:30,117 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/0593ad59-6b4b-4bb6-bdcf-afe77f20c531
2026-03-09 02:13:30,124 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/0593ad59-6b4b-4bb6-bdcf-afe77f20c531
2026-03-09 02:13:30,131 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/9c0565e9-0e66-4537-afaa-b2169b65aef7
2026-03-09 02:13:30,136 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-09 02:13:30,136 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/ddf708e3-c678-45af-9f10-5cd392533d1a
2026-03-09 02:13:30,144 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/0593ad59-6b4b-4bb6-bdcf-afe77f20c531
2026-03-09 02:13:30,159 - INFO - Verified VN network id 11 for VN ddf708e3-c678-45af-9f10-5cd392533d1a
2026-03-09 02:13:30,159 - INFO - Verifications in API Server for VN ctest-vn-33222751 passed
2026-03-09 02:13:30,159 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/ddf708e3-c678-45af-9f10-5cd392533d1a
2026-03-09 02:13:30,167 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/0593ad59-6b4b-4bb6-bdcf-afe77f20c531
2026-03-09 02:13:30,174 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/0593ad59-6b4b-4bb6-bdcf-afe77f20c531
2026-03-09 02:13:30,181 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/9c0565e9-0e66-4537-afaa-b2169b65aef7
2026-03-09 02:13:30,191 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61202337:ctest-vn-33222751', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61202337', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15994262376009975215', 'uuid-lslong': '11461763115420695834'}, 'enable': 'true', 'created': '2026-03-09T02:13:28', 'last-modified': '2026-03-09T02:13:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.920936'}
2026-03-09 02:13:30,198 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-09 02:13:30,198 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33222751 passed
2026-03-09 02:13:30,198 - DEBUG - ====Verifying policy data for ctest-vn-33222751 in API_Server ======
2026-03-09 02:13:30,198 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-03-09 02:13:30,203 - DEBUG - Requesting: http://10.0.0.141:8082/domain/da56c12e-8b84-4207-88d9-b77d9e8757cc
2026-03-09 02:13:30,212 - DEBUG - Requesting: http://10.0.0.141:8082/project/f0c353b5-a5ac-4409-9836-37483b614b96
2026-03-09 02:13:30,279 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/ddf708e3-c678-45af-9f10-5cd392533d1a
2026-03-09 02:13:30,288 - DEBUG - ==>Verifying data for policy with id: ab36bd17-28f0-4c17-8f47-5a9112b5e570, fqn: ['default-domain', 'ctest-TestBasicPolicy-61202337', 'ctest-policy-allow-all-62823826']
2026-03-09 02:13:30,288 - INFO - VN ctest-vn-33222751 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-09 02:13:30,288 - DEBUG - Verifying the vn in opserver
2026-03-09 02:13:30,288 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61202337:ctest-vn-33222751 virtual network link through opserver 10.0.0.141
2026-03-09 02:13:30,288 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2026-03-09 02:13:30,587 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2026-03-09 02:13:30,652 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61202337:ctest-vn-33222751', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61202337:ctest-vn-33222751?flat'}
2026-03-09 02:13:30,653 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61202337:ctest-vn-33222751 is found in opserver
2026-03-09 02:13:30,662 - DEBUG - Do not have enough data to verify VN in agent
2026-03-09 02:13:30,667 - DEBUG - VRF ids for VN ctest-vn-33222751: {}
2026-03-09 02:13:30,667 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-03-09 02:13:30,674 - DEBUG - Requesting: http://10.0.0.141:8082/domain/da56c12e-8b84-4207-88d9-b77d9e8757cc
2026-03-09 02:13:30,685 - DEBUG - Requesting: http://10.0.0.141:8082/project/f0c353b5-a5ac-4409-9836-37483b614b96
2026-03-09 02:13:30,754 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/dbdd9e01-5ed3-4b26-b3c8-ecb9c7262148
2026-03-09 02:13:30,765 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/dbdd9e01-5ed3-4b26-b3c8-ecb9c7262148
2026-03-09 02:13:30,773 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/356ae3ad-d5f0-43ec-8f5e-2e266c9bb2e8
2026-03-09 02:13:30,786 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/356ae3ad-d5f0-43ec-8f5e-2e266c9bb2e8
2026-03-09 02:13:30,793 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/f1a76d5e-345e-4a38-b457-8976be538407
2026-03-09 02:13:30,800 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-09 02:13:30,800 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/dbdd9e01-5ed3-4b26-b3c8-ecb9c7262148
2026-03-09 02:13:30,808 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/356ae3ad-d5f0-43ec-8f5e-2e266c9bb2e8
2026-03-09 02:13:30,825 - INFO - Verified VN network id 12 for VN dbdd9e01-5ed3-4b26-b3c8-ecb9c7262148
2026-03-09 02:13:30,825 - INFO - Verifications in API Server for VN ctest-vn-24351091 passed
2026-03-09 02:13:30,825 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/dbdd9e01-5ed3-4b26-b3c8-ecb9c7262148
2026-03-09 02:13:30,833 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/356ae3ad-d5f0-43ec-8f5e-2e266c9bb2e8
2026-03-09 02:13:30,840 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/356ae3ad-d5f0-43ec-8f5e-2e266c9bb2e8
2026-03-09 02:13:30,846 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/f1a76d5e-345e-4a38-b457-8976be538407
2026-03-09 02:13:30,860 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61202337:ctest-vn-24351091', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61202337', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15842992792882334502', 'uuid-lslong': '12954864610785501512'}, 'enable': 'true', 'created': '2026-03-09T02:13:28', 'last-modified': '2026-03-09T02:13:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.358762'}
2026-03-09 02:13:30,866 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-09 02:13:30,866 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24351091 passed
2026-03-09 02:13:30,866 - DEBUG - ====Verifying policy data for ctest-vn-24351091 in API_Server ======
2026-03-09 02:13:30,866 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-03-09 02:13:30,872 - DEBUG - Requesting: http://10.0.0.141:8082/domain/da56c12e-8b84-4207-88d9-b77d9e8757cc
2026-03-09 02:13:30,882 - DEBUG - Requesting: http://10.0.0.141:8082/project/f0c353b5-a5ac-4409-9836-37483b614b96
2026-03-09 02:13:30,954 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/dbdd9e01-5ed3-4b26-b3c8-ecb9c7262148
2026-03-09 02:13:30,962 - DEBUG - ==>Verifying data for policy with id: ab36bd17-28f0-4c17-8f47-5a9112b5e570, fqn: ['default-domain', 'ctest-TestBasicPolicy-61202337', 'ctest-policy-allow-all-62823826']
2026-03-09 02:13:30,962 - INFO - VN ctest-vn-24351091 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-09 02:13:30,962 - DEBUG - Verifying the vn in opserver
2026-03-09 02:13:30,962 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61202337:ctest-vn-24351091 virtual network link through opserver 10.0.0.141
2026-03-09 02:13:30,962 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2026-03-09 02:13:30,970 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61202337:ctest-vn-24351091', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61202337:ctest-vn-24351091?flat'}
2026-03-09 02:13:30,971 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61202337:ctest-vn-24351091 is found in opserver
2026-03-09 02:13:30,978 - DEBUG - Do not have enough data to verify VN in agent
2026-03-09 02:13:30,982 - DEBUG - VRF ids for VN ctest-vn-24351091: {}
2026-03-09 02:13:31,039 - DEBUG - Services list from nova: [