2026-02-20 16:34:28,715 - INFO - Domain Default found not creating
2026-02-20 16:34:28,892 - INFO - Project ctest-TestBasicPolicy-88417279 not found, creating it
2026-02-20 16:34:29,342 - INFO - Created Project:ctest-TestBasicPolicy-88417279, ID : d1d0f12e-b866-417f-a6c5-cb53b0b0af2c
2026-02-20 16:34:30,977 - INFO - ================================================================================
2026-02-20 16:34:30,977 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-20 16:34:30,977 - 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-02-20 16:34:31,232 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2026-02-20 16:34:31,233 - INFO - Initial checks done. Running the testcase now
2026-02-20 16:34:31,233 - INFO -
2026-02-20 16:34:31,857 - DEBUG - Response for create_network : {'network': {'id': 'b9b37800-017f-4194-9b2c-9b8121aa2bb4', 'name': 'ctest-vn-87938846', 'tenant_id': 'd1d0f12eb866417fa6c5cb53b0b0af2c', 'project_id': 'd1d0f12eb866417fa6c5cb53b0b0af2c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88417279', 'ctest-vn-87938846'], 'port_security_enabled': True, 'description': ''}}
2026-02-20 16:34:32,041 - DEBUG - Response for create_subnet : {'subnet': {'id': '856cb8d8-5103-45b0-b76f-27e390ab1fe0', 'name': '', 'tenant_id': 'd1d0f12eb866417fa6c5cb53b0b0af2c', 'network_id': 'b9b37800-017f-4194-9b2c-9b8121aa2bb4', 'ip_version': 4, 'cidr': '8.19.43.192/26', 'allocation_pools': [{'start': '8.19.43.194', 'end': '8.19.43.254'}], 'gateway_ip': '8.19.43.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.19.43.194', 'tags': [], 'project_id': 'd1d0f12eb866417fa6c5cb53b0b0af2c'}}
2026-02-20 16:34:32,060 - INFO - Created VN ctest-vn-87938846
2026-02-20 16:34:32,112 - DEBUG - VN ctest-vn-87938846 UUID is b9b37800-017f-4194-9b2c-9b8121aa2bb4
2026-02-20 16:34:32,414 - DEBUG - Response for create_network : {'network': {'id': 'a4776651-bc8c-4163-b69b-85d6aafa950c', 'name': 'ctest-vn-68134297', 'tenant_id': 'd1d0f12eb866417fa6c5cb53b0b0af2c', 'project_id': 'd1d0f12eb866417fa6c5cb53b0b0af2c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88417279', 'ctest-vn-68134297'], 'port_security_enabled': True, 'description': ''}}
2026-02-20 16:34:32,600 - DEBUG - Response for create_subnet : {'subnet': {'id': '6f35a3bf-66d0-4e3a-98f1-1e4d04db3a63', 'name': '', 'tenant_id': 'd1d0f12eb866417fa6c5cb53b0b0af2c', 'network_id': 'a4776651-bc8c-4163-b69b-85d6aafa950c', 'ip_version': 4, 'cidr': '104.37.160.192/26', 'allocation_pools': [{'start': '104.37.160.194', 'end': '104.37.160.254'}], 'gateway_ip': '104.37.160.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '104.37.160.194', 'tags': [], 'project_id': 'd1d0f12eb866417fa6c5cb53b0b0af2c'}}
2026-02-20 16:34:32,621 - INFO - Created VN ctest-vn-68134297
2026-02-20 16:34:32,676 - DEBUG - VN ctest-vn-68134297 UUID is a4776651-bc8c-4163-b69b-85d6aafa950c
2026-02-20 16:34:32,828 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-88417279:ctest-vn-87938846, 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-88417279:ctest-vn-68134297, 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-02-20 16:34:33,138 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b9b37800-017f-4194-9b2c-9b8121aa2bb4', 'name': 'ctest-vn-87938846', 'tenant_id': 'd1d0f12eb866417fa6c5cb53b0b0af2c', 'project_id': 'd1d0f12eb866417fa6c5cb53b0b0af2c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['856cb8d8-5103-45b0-b76f-27e390ab1fe0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88417279', 'ctest-vn-87938846'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88417279', 'ctest-policy-allow-all-72730211']], 'subnet_ipam': [{'subnet_cidr': '8.19.43.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-20 16:34:33,411 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a4776651-bc8c-4163-b69b-85d6aafa950c', 'name': 'ctest-vn-68134297', 'tenant_id': 'd1d0f12eb866417fa6c5cb53b0b0af2c', 'project_id': 'd1d0f12eb866417fa6c5cb53b0b0af2c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6f35a3bf-66d0-4e3a-98f1-1e4d04db3a63'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88417279', 'ctest-vn-68134297'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88417279', 'ctest-policy-allow-all-72730211']], 'subnet_ipam': [{'subnet_cidr': '104.37.160.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-20 16:34:33,560 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-20 16:34:33,869 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-20 16:34:33,903 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6f0a8dcb-e910-4fbf-86c4-779b8554a4bb
2026-02-20 16:34:33,916 - DEBUG - Requesting: http://10.0.0.38:8082/project/d1d0f12e-b866-417f-a6c5-cb53b0b0af2c
2026-02-20 16:34:33,990 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b9b37800-017f-4194-9b2c-9b8121aa2bb4
2026-02-20 16:34:33,999 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b9b37800-017f-4194-9b2c-9b8121aa2bb4
2026-02-20 16:34:34,014 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a780e45d-f44d-4bad-99af-68187504eab8
2026-02-20 16:34:34,022 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a780e45d-f44d-4bad-99af-68187504eab8
2026-02-20 16:34:34,028 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/076d56f9-ce0a-49ba-87fe-abab34204bcc
2026-02-20 16:34:34,034 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-20 16:34:34,034 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b9b37800-017f-4194-9b2c-9b8121aa2bb4
2026-02-20 16:34:34,042 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a780e45d-f44d-4bad-99af-68187504eab8
2026-02-20 16:34:34,056 - INFO - Verified VN network id 12 for VN b9b37800-017f-4194-9b2c-9b8121aa2bb4
2026-02-20 16:34:34,056 - INFO - Verifications in API Server for VN ctest-vn-87938846 passed
2026-02-20 16:34:34,056 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b9b37800-017f-4194-9b2c-9b8121aa2bb4
2026-02-20 16:34:34,065 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a780e45d-f44d-4bad-99af-68187504eab8
2026-02-20 16:34:34,072 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a780e45d-f44d-4bad-99af-68187504eab8
2026-02-20 16:34:34,079 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/076d56f9-ce0a-49ba-87fe-abab34204bcc
2026-02-20 16:34:34,091 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88417279:ctest-vn-87938846', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88417279', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13381170859268325780', 'uuid-lslong': '11181482953771985844'}, 'enable': 'true', 'created': '2026-02-20T16:34:31', 'last-modified': '2026-02-20T16:34:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.976269'}
2026-02-20 16:34:34,097 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-20 16:34:34,097 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87938846 passed
2026-02-20 16:34:34,097 - DEBUG - ====Verifying policy data for ctest-vn-87938846 in API_Server ======
2026-02-20 16:34:34,098 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-20 16:34:34,103 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6f0a8dcb-e910-4fbf-86c4-779b8554a4bb
2026-02-20 16:34:34,113 - DEBUG - Requesting: http://10.0.0.38:8082/project/d1d0f12e-b866-417f-a6c5-cb53b0b0af2c
2026-02-20 16:34:34,183 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b9b37800-017f-4194-9b2c-9b8121aa2bb4
2026-02-20 16:34:34,192 - DEBUG - ==>Verifying data for policy with id: 6fa391b2-dde5-41c7-b971-fc0c10a3ff5c, fqn: ['default-domain', 'ctest-TestBasicPolicy-88417279', 'ctest-policy-allow-all-72730211']
2026-02-20 16:34:34,192 - INFO - VN ctest-vn-87938846 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-20 16:34:34,192 - DEBUG - Verifying the vn in opserver
2026-02-20 16:34:34,192 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88417279:ctest-vn-87938846 virtual network link through opserver 10.0.0.38
2026-02-20 16:34:34,193 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-20 16:34:34,498 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-20 16:34:34,561 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88417279:ctest-vn-87938846', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88417279:ctest-vn-87938846?flat'}
2026-02-20 16:34:34,561 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88417279:ctest-vn-87938846 is found in opserver
2026-02-20 16:34:34,570 - DEBUG - Do not have enough data to verify VN in agent
2026-02-20 16:34:34,575 - DEBUG - VRF ids for VN ctest-vn-87938846: {}
2026-02-20 16:34:34,575 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-20 16:34:34,581 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6f0a8dcb-e910-4fbf-86c4-779b8554a4bb
2026-02-20 16:34:34,594 - DEBUG - Requesting: http://10.0.0.38:8082/project/d1d0f12e-b866-417f-a6c5-cb53b0b0af2c
2026-02-20 16:34:34,667 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a4776651-bc8c-4163-b69b-85d6aafa950c
2026-02-20 16:34:34,678 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a4776651-bc8c-4163-b69b-85d6aafa950c
2026-02-20 16:34:34,686 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/99cec555-bc49-42d9-bac9-5cd5e88756d2
2026-02-20 16:34:34,692 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/99cec555-bc49-42d9-bac9-5cd5e88756d2
2026-02-20 16:34:34,699 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8090d6e8-1dba-4f51-ad39-4c394720ac9d
2026-02-20 16:34:34,705 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-20 16:34:34,705 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a4776651-bc8c-4163-b69b-85d6aafa950c
2026-02-20 16:34:34,713 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/99cec555-bc49-42d9-bac9-5cd5e88756d2
2026-02-20 16:34:34,724 - INFO - Verified VN network id 13 for VN a4776651-bc8c-4163-b69b-85d6aafa950c
2026-02-20 16:34:34,725 - INFO - Verifications in API Server for VN ctest-vn-68134297 passed
2026-02-20 16:34:34,725 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a4776651-bc8c-4163-b69b-85d6aafa950c
2026-02-20 16:34:34,733 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/99cec555-bc49-42d9-bac9-5cd5e88756d2
2026-02-20 16:34:34,739 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/99cec555-bc49-42d9-bac9-5cd5e88756d2
2026-02-20 16:34:34,744 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8090d6e8-1dba-4f51-ad39-4c394720ac9d
2026-02-20 16:34:34,754 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88417279:ctest-vn-68134297', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88417279', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11851053445690442083', 'uuid-lslong': '13158257893331080460'}, 'enable': 'true', 'created': '2026-02-20T16:34:32', 'last-modified': '2026-02-20T16:34:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.415894'}
2026-02-20 16:34:34,759 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-20 16:34:34,759 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68134297 passed
2026-02-20 16:34:34,759 - DEBUG - ====Verifying policy data for ctest-vn-68134297 in API_Server ======
2026-02-20 16:34:34,759 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-20 16:34:34,764 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6f0a8dcb-e910-4fbf-86c4-779b8554a4bb
2026-02-20 16:34:34,773 - DEBUG - Requesting: http://10.0.0.38:8082/project/d1d0f12e-b866-417f-a6c5-cb53b0b0af2c
2026-02-20 16:34:34,839 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a4776651-bc8c-4163-b69b-85d6aafa950c
2026-02-20 16:34:34,847 - DEBUG - ==>Verifying data for policy with id: 6fa391b2-dde5-41c7-b971-fc0c10a3ff5c, fqn: ['default-domain', 'ctest-TestBasicPolicy-88417279', 'ctest-policy-allow-all-72730211']
2026-02-20 16:34:34,847 - INFO - VN ctest-vn-68134297 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-20 16:34:34,847 - DEBUG - Verifying the vn in opserver
2026-02-20 16:34:34,847 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88417279:ctest-vn-68134297 virtual network link through opserver 10.0.0.38
2026-02-20 16:34:34,847 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-20 16:34:34,856 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88417279:ctest-vn-68134297', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88417279:ctest-vn-68134297?flat'}
2026-02-20 16:34:34,856 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88417279:ctest-vn-68134297 is found in opserver
2026-02-20 16:34:34,866 - DEBUG - Do not have enough data to verify VN in agent
2026-02-20 16:34:34,870 - DEBUG - VRF ids for VN ctest-vn-68134297: {}
2026-02-20 16:34:34,925 - DEBUG - Services list from nova: [