2026-10-31 14:13:17,561 - INFO - Domain Default found not creating
2026-10-31 14:13:17,696 - INFO - Project ctest-TestBasicPolicy-75664466 not found, creating it
2026-10-31 14:13:18,161 - INFO - Created Project:ctest-TestBasicPolicy-75664466, ID : 7a2bbf22-73db-48b1-ad6f-5e27a0ece219
2026-10-31 14:13:19,590 - INFO - ================================================================================
2026-10-31 14:13:19,590 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-10-31 14:13:19,590 - 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-10-31 14:13:19,844 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.17': '0'}} with
2026-10-31 14:13:19,844 - INFO - Initial checks done. Running the testcase now
2026-10-31 14:13:19,844 - INFO -
2026-10-31 14:13:20,399 - DEBUG - Response for create_network : {'network': {'id': '0ba66e46-7922-4ab2-a4af-e369a42b17f3', 'name': 'ctest-vn-71593046', 'tenant_id': '7a2bbf2273db48b1ad6f5e27a0ece219', 'project_id': '7a2bbf2273db48b1ad6f5e27a0ece219', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75664466', 'ctest-vn-71593046'], 'port_security_enabled': True, 'description': ''}}
2026-10-31 14:13:20,580 - DEBUG - Response for create_subnet : {'subnet': {'id': '4c159ee0-9e14-448c-bb9d-b02387cbd4bc', 'name': '', 'tenant_id': '7a2bbf2273db48b1ad6f5e27a0ece219', 'network_id': '0ba66e46-7922-4ab2-a4af-e369a42b17f3', 'ip_version': 4, 'cidr': '11.250.20.192/26', 'allocation_pools': [{'start': '11.250.20.194', 'end': '11.250.20.254'}], 'gateway_ip': '11.250.20.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.250.20.194', 'tags': [], 'project_id': '7a2bbf2273db48b1ad6f5e27a0ece219'}}
2026-10-31 14:13:20,595 - INFO - Created VN ctest-vn-71593046
2026-10-31 14:13:20,647 - DEBUG - VN ctest-vn-71593046 UUID is 0ba66e46-7922-4ab2-a4af-e369a42b17f3
2026-10-31 14:13:20,952 - DEBUG - Response for create_network : {'network': {'id': '2d21ba8f-58e5-4fc3-a0c4-63575028b806', 'name': 'ctest-vn-29111734', 'tenant_id': '7a2bbf2273db48b1ad6f5e27a0ece219', 'project_id': '7a2bbf2273db48b1ad6f5e27a0ece219', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75664466', 'ctest-vn-29111734'], 'port_security_enabled': True, 'description': ''}}
2026-10-31 14:13:21,132 - DEBUG - Response for create_subnet : {'subnet': {'id': '36ee2f70-b97b-4b8c-980e-1cb2795d0c10', 'name': '', 'tenant_id': '7a2bbf2273db48b1ad6f5e27a0ece219', 'network_id': '2d21ba8f-58e5-4fc3-a0c4-63575028b806', 'ip_version': 4, 'cidr': '50.23.213.0/26', 'allocation_pools': [{'start': '50.23.213.2', 'end': '50.23.213.62'}], 'gateway_ip': '50.23.213.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '50.23.213.2', 'tags': [], 'project_id': '7a2bbf2273db48b1ad6f5e27a0ece219'}}
2026-10-31 14:13:21,144 - INFO - Created VN ctest-vn-29111734
2026-10-31 14:13:21,199 - DEBUG - VN ctest-vn-29111734 UUID is 2d21ba8f-58e5-4fc3-a0c4-63575028b806
2026-10-31 14:13:21,343 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-75664466:ctest-vn-71593046, 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-75664466:ctest-vn-29111734, 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-10-31 14:13:21,626 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0ba66e46-7922-4ab2-a4af-e369a42b17f3', 'name': 'ctest-vn-71593046', 'tenant_id': '7a2bbf2273db48b1ad6f5e27a0ece219', 'project_id': '7a2bbf2273db48b1ad6f5e27a0ece219', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['4c159ee0-9e14-448c-bb9d-b02387cbd4bc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75664466', 'ctest-vn-71593046'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-75664466', 'ctest-policy-allow-all-47149327']], 'subnet_ipam': [{'subnet_cidr': '11.250.20.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-10-31 14:13:21,842 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2d21ba8f-58e5-4fc3-a0c4-63575028b806', 'name': 'ctest-vn-29111734', 'tenant_id': '7a2bbf2273db48b1ad6f5e27a0ece219', 'project_id': '7a2bbf2273db48b1ad6f5e27a0ece219', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['36ee2f70-b97b-4b8c-980e-1cb2795d0c10'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75664466', 'ctest-vn-29111734'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-75664466', 'ctest-policy-allow-all-47149327']], 'subnet_ipam': [{'subnet_cidr': '50.23.213.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-10-31 14:13:22,007 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-10-31 14:13:22,320 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-10-31 14:13:22,345 - DEBUG - Requesting: http://10.0.0.161:8082/domain/a7f76ef6-63c5-4dd5-bc36-c8ef8241e060
2026-10-31 14:13:22,355 - DEBUG - Requesting: http://10.0.0.161:8082/project/7a2bbf22-73db-48b1-ad6f-5e27a0ece219
2026-10-31 14:13:22,429 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/0ba66e46-7922-4ab2-a4af-e369a42b17f3
2026-10-31 14:13:22,439 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/0ba66e46-7922-4ab2-a4af-e369a42b17f3
2026-10-31 14:13:22,446 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/6f6d5cdf-3675-4a85-8866-2737097da018
2026-10-31 14:13:22,452 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/6f6d5cdf-3675-4a85-8866-2737097da018
2026-10-31 14:13:22,457 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/a8a2e9c1-e7e4-4fe4-bdf2-ff433302d329
2026-10-31 14:13:22,462 - DEBUG - Route Targets: ['target:64512:8000005']
2026-10-31 14:13:22,462 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/0ba66e46-7922-4ab2-a4af-e369a42b17f3
2026-10-31 14:13:22,468 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/6f6d5cdf-3675-4a85-8866-2737097da018
2026-10-31 14:13:22,479 - INFO - Verified VN network id 11 for VN 0ba66e46-7922-4ab2-a4af-e369a42b17f3
2026-10-31 14:13:22,479 - INFO - Verifications in API Server for VN ctest-vn-71593046 passed
2026-10-31 14:13:22,479 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/0ba66e46-7922-4ab2-a4af-e369a42b17f3
2026-10-31 14:13:22,486 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/6f6d5cdf-3675-4a85-8866-2737097da018
2026-10-31 14:13:22,490 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/6f6d5cdf-3675-4a85-8866-2737097da018
2026-10-31 14:13:22,496 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/a8a2e9c1-e7e4-4fe4-bdf2-ff433302d329
2026-10-31 14:13:22,508 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-75664466:ctest-vn-71593046', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-75664466', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '839479629510232754', 'uuid-lslong': '11866953586009905139'}, 'enable': 'true', 'created': '2026-10-31T14:13:20', 'last-modified': '2026-10-31T14:13:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.899702'}
2026-10-31 14:13:22,515 - DEBUG - Route Targets: ['target:64512:8000005']
2026-10-31 14:13:22,515 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71593046 passed
2026-10-31 14:13:22,515 - DEBUG - ====Verifying policy data for ctest-vn-71593046 in API_Server ======
2026-10-31 14:13:22,515 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-10-31 14:13:22,519 - DEBUG - Requesting: http://10.0.0.161:8082/domain/a7f76ef6-63c5-4dd5-bc36-c8ef8241e060
2026-10-31 14:13:22,527 - DEBUG - Requesting: http://10.0.0.161:8082/project/7a2bbf22-73db-48b1-ad6f-5e27a0ece219
2026-10-31 14:13:22,606 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/0ba66e46-7922-4ab2-a4af-e369a42b17f3
2026-10-31 14:13:22,614 - DEBUG - ==>Verifying data for policy with id: 0ee8f800-4227-47e5-b01a-a82aa3a608bf, fqn: ['default-domain', 'ctest-TestBasicPolicy-75664466', 'ctest-policy-allow-all-47149327']
2026-10-31 14:13:22,614 - INFO - VN ctest-vn-71593046 Policy verification: verify_vn_policy_in_api_server, status: True
2026-10-31 14:13:22,614 - DEBUG - Verifying the vn in opserver
2026-10-31 14:13:22,614 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-75664466:ctest-vn-71593046 virtual network link through opserver 10.0.0.161
2026-10-31 14:13:22,614 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-10-31 14:13:22,929 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-10-31 14:13:22,976 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-75664466:ctest-vn-71593046', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-75664466:ctest-vn-71593046?flat'}
2026-10-31 14:13:22,976 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-75664466:ctest-vn-71593046 is found in opserver
2026-10-31 14:13:22,985 - DEBUG - Do not have enough data to verify VN in agent
2026-10-31 14:13:22,990 - DEBUG - VRF ids for VN ctest-vn-71593046: {}
2026-10-31 14:13:22,990 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-10-31 14:13:22,994 - DEBUG - Requesting: http://10.0.0.161:8082/domain/a7f76ef6-63c5-4dd5-bc36-c8ef8241e060
2026-10-31 14:13:23,002 - DEBUG - Requesting: http://10.0.0.161:8082/project/7a2bbf22-73db-48b1-ad6f-5e27a0ece219
2026-10-31 14:13:23,071 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/2d21ba8f-58e5-4fc3-a0c4-63575028b806
2026-10-31 14:13:23,080 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/2d21ba8f-58e5-4fc3-a0c4-63575028b806
2026-10-31 14:13:23,087 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/51ba7161-6592-42db-9057-46c410480d0a
2026-10-31 14:13:23,092 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/51ba7161-6592-42db-9057-46c410480d0a
2026-10-31 14:13:23,098 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/7b9a2db5-0635-40bf-aeab-941c163563e9
2026-10-31 14:13:23,103 - DEBUG - Route Targets: ['target:64512:8000006']
2026-10-31 14:13:23,103 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/2d21ba8f-58e5-4fc3-a0c4-63575028b806
2026-10-31 14:13:23,110 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/51ba7161-6592-42db-9057-46c410480d0a
2026-10-31 14:13:23,124 - INFO - Verified VN network id 12 for VN 2d21ba8f-58e5-4fc3-a0c4-63575028b806
2026-10-31 14:13:23,124 - INFO - Verifications in API Server for VN ctest-vn-29111734 passed
2026-10-31 14:13:23,124 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/2d21ba8f-58e5-4fc3-a0c4-63575028b806
2026-10-31 14:13:23,132 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/51ba7161-6592-42db-9057-46c410480d0a
2026-10-31 14:13:23,137 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/51ba7161-6592-42db-9057-46c410480d0a
2026-10-31 14:13:23,142 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/7b9a2db5-0635-40bf-aeab-941c163563e9
2026-10-31 14:13:23,153 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-75664466:ctest-vn-29111734', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-75664466', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3252085530772721603', 'uuid-lslong': '11584493368161908742'}, 'enable': 'true', 'created': '2026-10-31T14:13:20', 'last-modified': '2026-10-31T14:13:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.333588'}
2026-10-31 14:13:23,158 - DEBUG - Route Targets: ['target:64512:8000006']
2026-10-31 14:13:23,158 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-29111734 passed
2026-10-31 14:13:23,159 - DEBUG - ====Verifying policy data for ctest-vn-29111734 in API_Server ======
2026-10-31 14:13:23,159 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-10-31 14:13:23,163 - DEBUG - Requesting: http://10.0.0.161:8082/domain/a7f76ef6-63c5-4dd5-bc36-c8ef8241e060
2026-10-31 14:13:23,174 - DEBUG - Requesting: http://10.0.0.161:8082/project/7a2bbf22-73db-48b1-ad6f-5e27a0ece219
2026-10-31 14:13:23,255 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/2d21ba8f-58e5-4fc3-a0c4-63575028b806
2026-10-31 14:13:23,263 - DEBUG - ==>Verifying data for policy with id: 0ee8f800-4227-47e5-b01a-a82aa3a608bf, fqn: ['default-domain', 'ctest-TestBasicPolicy-75664466', 'ctest-policy-allow-all-47149327']
2026-10-31 14:13:23,263 - INFO - VN ctest-vn-29111734 Policy verification: verify_vn_policy_in_api_server, status: True
2026-10-31 14:13:23,263 - DEBUG - Verifying the vn in opserver
2026-10-31 14:13:23,263 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-75664466:ctest-vn-29111734 virtual network link through opserver 10.0.0.161
2026-10-31 14:13:23,263 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-10-31 14:13:23,272 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-75664466:ctest-vn-29111734', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-75664466:ctest-vn-29111734?flat'}
2026-10-31 14:13:23,272 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-75664466:ctest-vn-29111734 is found in opserver
2026-10-31 14:13:23,282 - DEBUG - Do not have enough data to verify VN in agent
2026-10-31 14:13:23,285 - DEBUG - VRF ids for VN ctest-vn-29111734: {}
2026-10-31 14:13:23,334 - DEBUG - Services list from nova: [