2026-02-23 02:13:19,564 - INFO - Domain Default found not creating
2026-02-23 02:13:19,732 - INFO - Project ctest-TestBasicPolicy-73698248 not found, creating it
2026-02-23 02:13:20,193 - INFO - Created Project:ctest-TestBasicPolicy-73698248, ID : 302b4351-8b4b-4a07-b2ae-9567f747b826
2026-02-23 02:13:21,810 - INFO - ================================================================================
2026-02-23 02:13:21,810 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-23 02:13:21,810 - 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-23 02:13:22,073 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.201': '0'}} with
2026-02-23 02:13:22,073 - INFO - Initial checks done. Running the testcase now
2026-02-23 02:13:22,073 - INFO -
2026-02-23 02:13:22,683 - DEBUG - Response for create_network : {'network': {'id': '95d6e54e-c1dd-40e3-9df2-9245865e184b', 'name': 'ctest-vn-35723198', 'tenant_id': '302b43518b4b4a07b2ae9567f747b826', 'project_id': '302b43518b4b4a07b2ae9567f747b826', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73698248', 'ctest-vn-35723198'], 'port_security_enabled': True, 'description': ''}}
2026-02-23 02:13:22,845 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f44b1c38-af8e-4087-a424-56d073075bd5', 'name': '', 'tenant_id': '302b43518b4b4a07b2ae9567f747b826', 'network_id': '95d6e54e-c1dd-40e3-9df2-9245865e184b', 'ip_version': 4, 'cidr': '33.83.44.128/26', 'allocation_pools': [{'start': '33.83.44.130', 'end': '33.83.44.190'}], 'gateway_ip': '33.83.44.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33.83.44.130', 'tags': [], 'project_id': '302b43518b4b4a07b2ae9567f747b826'}}
2026-02-23 02:13:22,863 - INFO - Created VN ctest-vn-35723198
2026-02-23 02:13:22,914 - DEBUG - VN ctest-vn-35723198 UUID is 95d6e54e-c1dd-40e3-9df2-9245865e184b
2026-02-23 02:13:23,216 - DEBUG - Response for create_network : {'network': {'id': 'ff5d057e-1517-4e30-b415-34f2f708bd2f', 'name': 'ctest-vn-34702168', 'tenant_id': '302b43518b4b4a07b2ae9567f747b826', 'project_id': '302b43518b4b4a07b2ae9567f747b826', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73698248', 'ctest-vn-34702168'], 'port_security_enabled': True, 'description': ''}}
2026-02-23 02:13:23,389 - DEBUG - Response for create_subnet : {'subnet': {'id': '785dcb72-6f95-4a19-a62b-c91131049ce6', 'name': '', 'tenant_id': '302b43518b4b4a07b2ae9567f747b826', 'network_id': 'ff5d057e-1517-4e30-b415-34f2f708bd2f', 'ip_version': 4, 'cidr': '105.73.54.0/26', 'allocation_pools': [{'start': '105.73.54.2', 'end': '105.73.54.62'}], 'gateway_ip': '105.73.54.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '105.73.54.2', 'tags': [], 'project_id': '302b43518b4b4a07b2ae9567f747b826'}}
2026-02-23 02:13:23,408 - INFO - Created VN ctest-vn-34702168
2026-02-23 02:13:23,462 - DEBUG - VN ctest-vn-34702168 UUID is ff5d057e-1517-4e30-b415-34f2f708bd2f
2026-02-23 02:13:23,613 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-73698248:ctest-vn-35723198, 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-73698248:ctest-vn-34702168, 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-23 02:13:23,908 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '95d6e54e-c1dd-40e3-9df2-9245865e184b', 'name': 'ctest-vn-35723198', 'tenant_id': '302b43518b4b4a07b2ae9567f747b826', 'project_id': '302b43518b4b4a07b2ae9567f747b826', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f44b1c38-af8e-4087-a424-56d073075bd5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73698248', 'ctest-vn-35723198'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73698248', 'ctest-policy-allow-all-38955626']], 'subnet_ipam': [{'subnet_cidr': '33.83.44.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-23 02:13:24,184 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ff5d057e-1517-4e30-b415-34f2f708bd2f', 'name': 'ctest-vn-34702168', 'tenant_id': '302b43518b4b4a07b2ae9567f747b826', 'project_id': '302b43518b4b4a07b2ae9567f747b826', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['785dcb72-6f95-4a19-a62b-c91131049ce6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73698248', 'ctest-vn-34702168'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73698248', 'ctest-policy-allow-all-38955626']], 'subnet_ipam': [{'subnet_cidr': '105.73.54.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-23 02:13:24,342 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-23 02:13:24,688 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-23 02:13:24,718 - DEBUG - Requesting: http://10.0.0.22:8082/domain/84709e10-1f7f-4c3d-9f76-df17733534a0
2026-02-23 02:13:24,730 - DEBUG - Requesting: http://10.0.0.22:8082/project/302b4351-8b4b-4a07-b2ae-9567f747b826
2026-02-23 02:13:24,804 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/95d6e54e-c1dd-40e3-9df2-9245865e184b
2026-02-23 02:13:24,816 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/95d6e54e-c1dd-40e3-9df2-9245865e184b
2026-02-23 02:13:24,826 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2eb18a80-323f-4ba8-97aa-e00d62af7c2d
2026-02-23 02:13:24,833 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2eb18a80-323f-4ba8-97aa-e00d62af7c2d
2026-02-23 02:13:24,839 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/f2e414b4-9f08-4c6d-887f-fb57bfdf5350
2026-02-23 02:13:24,845 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-23 02:13:24,845 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/95d6e54e-c1dd-40e3-9df2-9245865e184b
2026-02-23 02:13:24,854 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2eb18a80-323f-4ba8-97aa-e00d62af7c2d
2026-02-23 02:13:24,869 - INFO - Verified VN network id 10 for VN 95d6e54e-c1dd-40e3-9df2-9245865e184b
2026-02-23 02:13:24,869 - INFO - Verifications in API Server for VN ctest-vn-35723198 passed
2026-02-23 02:13:24,870 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/95d6e54e-c1dd-40e3-9df2-9245865e184b
2026-02-23 02:13:24,880 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2eb18a80-323f-4ba8-97aa-e00d62af7c2d
2026-02-23 02:13:24,893 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2eb18a80-323f-4ba8-97aa-e00d62af7c2d
2026-02-23 02:13:24,901 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/f2e414b4-9f08-4c6d-887f-fb57bfdf5350
2026-02-23 02:13:24,914 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73698248:ctest-vn-35723198', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73698248', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10797069283090055395', 'uuid-lslong': '11381320035623376971'}, 'enable': 'true', 'created': '2026-02-23T02:13:22', 'last-modified': '2026-02-23T02:13:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.030976'}
2026-02-23 02:13:24,920 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-23 02:13:24,920 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35723198 passed
2026-02-23 02:13:24,921 - DEBUG - ====Verifying policy data for ctest-vn-35723198 in API_Server ======
2026-02-23 02:13:24,921 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-23 02:13:24,926 - DEBUG - Requesting: http://10.0.0.22:8082/domain/84709e10-1f7f-4c3d-9f76-df17733534a0
2026-02-23 02:13:24,936 - DEBUG - Requesting: http://10.0.0.22:8082/project/302b4351-8b4b-4a07-b2ae-9567f747b826
2026-02-23 02:13:25,007 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/95d6e54e-c1dd-40e3-9df2-9245865e184b
2026-02-23 02:13:25,019 - DEBUG - ==>Verifying data for policy with id: 3876dd04-ebff-4a59-989f-81164823e74e, fqn: ['default-domain', 'ctest-TestBasicPolicy-73698248', 'ctest-policy-allow-all-38955626']
2026-02-23 02:13:25,019 - INFO - VN ctest-vn-35723198 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-23 02:13:25,020 - DEBUG - Verifying the vn in opserver
2026-02-23 02:13:25,020 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73698248:ctest-vn-35723198 virtual network link through opserver 10.0.0.22
2026-02-23 02:13:25,020 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-02-23 02:13:25,354 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-02-23 02:13:25,420 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73698248:ctest-vn-35723198', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73698248:ctest-vn-35723198?flat'}
2026-02-23 02:13:25,420 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73698248:ctest-vn-35723198 is found in opserver
2026-02-23 02:13:25,430 - DEBUG - Do not have enough data to verify VN in agent
2026-02-23 02:13:25,434 - DEBUG - VRF ids for VN ctest-vn-35723198: {}
2026-02-23 02:13:25,434 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-23 02:13:25,439 - DEBUG - Requesting: http://10.0.0.22:8082/domain/84709e10-1f7f-4c3d-9f76-df17733534a0
2026-02-23 02:13:25,449 - DEBUG - Requesting: http://10.0.0.22:8082/project/302b4351-8b4b-4a07-b2ae-9567f747b826
2026-02-23 02:13:25,522 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ff5d057e-1517-4e30-b415-34f2f708bd2f
2026-02-23 02:13:25,534 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ff5d057e-1517-4e30-b415-34f2f708bd2f
2026-02-23 02:13:25,543 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a73d3c8c-c608-4947-928a-ea5f9fef8a5b
2026-02-23 02:13:25,550 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a73d3c8c-c608-4947-928a-ea5f9fef8a5b
2026-02-23 02:13:25,556 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/841690b2-7e11-4ca0-bb50-ea18dbc7fee4
2026-02-23 02:13:25,562 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-23 02:13:25,562 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ff5d057e-1517-4e30-b415-34f2f708bd2f
2026-02-23 02:13:25,571 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a73d3c8c-c608-4947-928a-ea5f9fef8a5b
2026-02-23 02:13:25,585 - INFO - Verified VN network id 11 for VN ff5d057e-1517-4e30-b415-34f2f708bd2f
2026-02-23 02:13:25,585 - INFO - Verifications in API Server for VN ctest-vn-34702168 passed
2026-02-23 02:13:25,585 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ff5d057e-1517-4e30-b415-34f2f708bd2f
2026-02-23 02:13:25,595 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a73d3c8c-c608-4947-928a-ea5f9fef8a5b
2026-02-23 02:13:25,602 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a73d3c8c-c608-4947-928a-ea5f9fef8a5b
2026-02-23 02:13:25,609 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/841690b2-7e11-4ca0-bb50-ea18dbc7fee4
2026-02-23 02:13:25,623 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73698248:ctest-vn-34702168', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73698248', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18400869691583581744', 'uuid-lslong': '12976336119469227311'}, 'enable': 'true', 'created': '2026-02-23T02:13:23', 'last-modified': '2026-02-23T02:13:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.504455'}
2026-02-23 02:13:25,629 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-23 02:13:25,629 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34702168 passed
2026-02-23 02:13:25,630 - DEBUG - ====Verifying policy data for ctest-vn-34702168 in API_Server ======
2026-02-23 02:13:25,630 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-23 02:13:25,636 - DEBUG - Requesting: http://10.0.0.22:8082/domain/84709e10-1f7f-4c3d-9f76-df17733534a0
2026-02-23 02:13:25,650 - DEBUG - Requesting: http://10.0.0.22:8082/project/302b4351-8b4b-4a07-b2ae-9567f747b826
2026-02-23 02:13:25,720 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ff5d057e-1517-4e30-b415-34f2f708bd2f
2026-02-23 02:13:25,731 - DEBUG - ==>Verifying data for policy with id: 3876dd04-ebff-4a59-989f-81164823e74e, fqn: ['default-domain', 'ctest-TestBasicPolicy-73698248', 'ctest-policy-allow-all-38955626']
2026-02-23 02:13:25,731 - INFO - VN ctest-vn-34702168 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-23 02:13:25,731 - DEBUG - Verifying the vn in opserver
2026-02-23 02:13:25,731 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73698248:ctest-vn-34702168 virtual network link through opserver 10.0.0.22
2026-02-23 02:13:25,731 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-02-23 02:13:25,741 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73698248:ctest-vn-34702168', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73698248:ctest-vn-34702168?flat'}
2026-02-23 02:13:25,741 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73698248:ctest-vn-34702168 is found in opserver
2026-02-23 02:13:25,750 - DEBUG - Do not have enough data to verify VN in agent
2026-02-23 02:13:25,754 - DEBUG - VRF ids for VN ctest-vn-34702168: {}
2026-02-23 02:13:25,813 - DEBUG - Services list from nova: [