2026-09-01 14:50:41,877 - INFO - Domain Default found not creating
2026-09-01 14:50:42,040 - INFO - Project ctest-TestBasicPolicy-17818589 not found, creating it
2026-09-01 14:50:42,553 - INFO - Created Project:ctest-TestBasicPolicy-17818589, ID : 8c28bec5-5075-4dbc-891f-311ca1795ba8
2026-09-01 14:50:44,282 - INFO - ================================================================================
2026-09-01 14:50:44,282 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-09-01 14:50:44,282 - 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-09-01 14:50:44,555 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-09-01 14:50:44,555 - INFO - Initial checks done. Running the testcase now
2026-09-01 14:50:44,555 - INFO -
2026-09-01 14:50:45,210 - DEBUG - Response for create_network : {'network': {'id': '99242c0a-6591-4def-9294-7014cf0a9dcd', 'name': 'ctest-vn-93078422', 'tenant_id': '8c28bec550754dbc891f311ca1795ba8', 'project_id': '8c28bec550754dbc891f311ca1795ba8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17818589', 'ctest-vn-93078422'], 'port_security_enabled': True, 'description': ''}}
2026-09-01 14:50:45,395 - DEBUG - Response for create_subnet : {'subnet': {'id': '433d8de5-411d-4411-8dd1-e04909743c2c', 'name': '', 'tenant_id': '8c28bec550754dbc891f311ca1795ba8', 'network_id': '99242c0a-6591-4def-9294-7014cf0a9dcd', 'ip_version': 4, 'cidr': '192.174.42.64/26', 'allocation_pools': [{'start': '192.174.42.66', 'end': '192.174.42.126'}], 'gateway_ip': '192.174.42.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '192.174.42.66', 'tags': [], 'project_id': '8c28bec550754dbc891f311ca1795ba8'}}
2026-09-01 14:50:45,413 - INFO - Created VN ctest-vn-93078422
2026-09-01 14:50:45,467 - DEBUG - VN ctest-vn-93078422 UUID is 99242c0a-6591-4def-9294-7014cf0a9dcd
2026-09-01 14:50:45,797 - DEBUG - Response for create_network : {'network': {'id': '97bde9b4-afe5-405c-885c-b68b451ee4fc', 'name': 'ctest-vn-51357202', 'tenant_id': '8c28bec550754dbc891f311ca1795ba8', 'project_id': '8c28bec550754dbc891f311ca1795ba8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17818589', 'ctest-vn-51357202'], 'port_security_enabled': True, 'description': ''}}
2026-09-01 14:50:45,999 - DEBUG - Response for create_subnet : {'subnet': {'id': '3281595a-124b-42bd-86dd-68465516f4b3', 'name': '', 'tenant_id': '8c28bec550754dbc891f311ca1795ba8', 'network_id': '97bde9b4-afe5-405c-885c-b68b451ee4fc', 'ip_version': 4, 'cidr': '26.117.73.128/26', 'allocation_pools': [{'start': '26.117.73.130', 'end': '26.117.73.190'}], 'gateway_ip': '26.117.73.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26.117.73.130', 'tags': [], 'project_id': '8c28bec550754dbc891f311ca1795ba8'}}
2026-09-01 14:50:46,018 - INFO - Created VN ctest-vn-51357202
2026-09-01 14:50:46,071 - DEBUG - VN ctest-vn-51357202 UUID is 97bde9b4-afe5-405c-885c-b68b451ee4fc
2026-09-01 14:50:46,196 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-17818589:ctest-vn-93078422, 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-17818589:ctest-vn-51357202, 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-09-01 14:50:46,515 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '99242c0a-6591-4def-9294-7014cf0a9dcd', 'name': 'ctest-vn-93078422', 'tenant_id': '8c28bec550754dbc891f311ca1795ba8', 'project_id': '8c28bec550754dbc891f311ca1795ba8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['433d8de5-411d-4411-8dd1-e04909743c2c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17818589', 'ctest-vn-93078422'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17818589', 'ctest-policy-allow-all-56247493']], 'subnet_ipam': [{'subnet_cidr': '192.174.42.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-01 14:50:46,765 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '97bde9b4-afe5-405c-885c-b68b451ee4fc', 'name': 'ctest-vn-51357202', 'tenant_id': '8c28bec550754dbc891f311ca1795ba8', 'project_id': '8c28bec550754dbc891f311ca1795ba8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['3281595a-124b-42bd-86dd-68465516f4b3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17818589', 'ctest-vn-51357202'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17818589', 'ctest-policy-allow-all-56247493']], 'subnet_ipam': [{'subnet_cidr': '26.117.73.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-01 14:50:46,935 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-09-01 14:50:47,306 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-09-01 14:50:47,336 - DEBUG - Requesting: http://10.0.0.38:8082/domain/81a45711-b823-4410-8f2a-943302d06ce8
2026-09-01 14:50:47,351 - DEBUG - Requesting: http://10.0.0.38:8082/project/8c28bec5-5075-4dbc-891f-311ca1795ba8
2026-09-01 14:50:47,434 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/99242c0a-6591-4def-9294-7014cf0a9dcd
2026-09-01 14:50:47,448 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/99242c0a-6591-4def-9294-7014cf0a9dcd
2026-09-01 14:50:47,459 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4d706bd6-c38d-4bee-bf6c-49beb448275a
2026-09-01 14:50:47,469 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4d706bd6-c38d-4bee-bf6c-49beb448275a
2026-09-01 14:50:47,477 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7cd5ee6e-bd06-4633-90cb-3a756a57fa27
2026-09-01 14:50:47,485 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-01 14:50:47,485 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/99242c0a-6591-4def-9294-7014cf0a9dcd
2026-09-01 14:50:47,497 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4d706bd6-c38d-4bee-bf6c-49beb448275a
2026-09-01 14:50:47,514 - INFO - Verified VN network id 12 for VN 99242c0a-6591-4def-9294-7014cf0a9dcd
2026-09-01 14:50:47,514 - INFO - Verifications in API Server for VN ctest-vn-93078422 passed
2026-09-01 14:50:47,514 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/99242c0a-6591-4def-9294-7014cf0a9dcd
2026-09-01 14:50:47,525 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4d706bd6-c38d-4bee-bf6c-49beb448275a
2026-09-01 14:50:47,535 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4d706bd6-c38d-4bee-bf6c-49beb448275a
2026-09-01 14:50:47,545 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7cd5ee6e-bd06-4633-90cb-3a756a57fa27
2026-09-01 14:50:47,560 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17818589:ctest-vn-93078422', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17818589', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11034993410129874415', 'uuid-lslong': '10562190260765892045'}, 'enable': 'true', 'created': '2026-09-01T14:50:45', 'last-modified': '2026-09-01T14:50:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.074148'}
2026-09-01 14:50:47,566 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-01 14:50:47,567 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93078422 passed
2026-09-01 14:50:47,567 - DEBUG - ====Verifying policy data for ctest-vn-93078422 in API_Server ======
2026-09-01 14:50:47,567 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-09-01 14:50:47,574 - DEBUG - Requesting: http://10.0.0.38:8082/domain/81a45711-b823-4410-8f2a-943302d06ce8
2026-09-01 14:50:47,587 - DEBUG - Requesting: http://10.0.0.38:8082/project/8c28bec5-5075-4dbc-891f-311ca1795ba8
2026-09-01 14:50:47,670 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/99242c0a-6591-4def-9294-7014cf0a9dcd
2026-09-01 14:50:47,680 - DEBUG - ==>Verifying data for policy with id: e1d5e8dc-86bd-482a-a684-16ad254c4a42, fqn: ['default-domain', 'ctest-TestBasicPolicy-17818589', 'ctest-policy-allow-all-56247493']
2026-09-01 14:50:47,680 - INFO - VN ctest-vn-93078422 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-01 14:50:47,680 - DEBUG - Verifying the vn in opserver
2026-09-01 14:50:47,680 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17818589:ctest-vn-93078422 virtual network link through opserver 10.0.0.38
2026-09-01 14:50:47,681 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-09-01 14:50:48,049 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-09-01 14:50:48,108 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17818589:ctest-vn-93078422', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17818589:ctest-vn-93078422?flat'}
2026-09-01 14:50:48,108 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17818589:ctest-vn-93078422 is found in opserver
2026-09-01 14:50:48,123 - DEBUG - Do not have enough data to verify VN in agent
2026-09-01 14:50:48,130 - DEBUG - VRF ids for VN ctest-vn-93078422: {}
2026-09-01 14:50:48,130 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-09-01 14:50:48,137 - DEBUG - Requesting: http://10.0.0.38:8082/domain/81a45711-b823-4410-8f2a-943302d06ce8
2026-09-01 14:50:48,149 - DEBUG - Requesting: http://10.0.0.38:8082/project/8c28bec5-5075-4dbc-891f-311ca1795ba8
2026-09-01 14:50:48,225 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/97bde9b4-afe5-405c-885c-b68b451ee4fc
2026-09-01 14:50:48,238 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/97bde9b4-afe5-405c-885c-b68b451ee4fc
2026-09-01 14:50:48,250 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f1620b25-2927-4971-a900-65b97320b9e8
2026-09-01 14:50:48,258 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f1620b25-2927-4971-a900-65b97320b9e8
2026-09-01 14:50:48,267 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/95f763a4-6d94-4a26-945a-6247c8e5e8e1
2026-09-01 14:50:48,276 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-01 14:50:48,276 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/97bde9b4-afe5-405c-885c-b68b451ee4fc
2026-09-01 14:50:48,286 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f1620b25-2927-4971-a900-65b97320b9e8
2026-09-01 14:50:48,302 - INFO - Verified VN network id 13 for VN 97bde9b4-afe5-405c-885c-b68b451ee4fc
2026-09-01 14:50:48,302 - INFO - Verifications in API Server for VN ctest-vn-51357202 passed
2026-09-01 14:50:48,302 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/97bde9b4-afe5-405c-885c-b68b451ee4fc
2026-09-01 14:50:48,313 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f1620b25-2927-4971-a900-65b97320b9e8
2026-09-01 14:50:48,323 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f1620b25-2927-4971-a900-65b97320b9e8
2026-09-01 14:50:48,333 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/95f763a4-6d94-4a26-945a-6247c8e5e8e1
2026-09-01 14:50:48,351 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17818589:ctest-vn-51357202', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17818589', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10934152432579854428', 'uuid-lslong': '9825929196291941628'}, 'enable': 'true', 'created': '2026-09-01T14:50:45', 'last-modified': '2026-09-01T14:50:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.618201'}
2026-09-01 14:50:48,359 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-01 14:50:48,359 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51357202 passed
2026-09-01 14:50:48,359 - DEBUG - ====Verifying policy data for ctest-vn-51357202 in API_Server ======
2026-09-01 14:50:48,359 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-09-01 14:50:48,367 - DEBUG - Requesting: http://10.0.0.38:8082/domain/81a45711-b823-4410-8f2a-943302d06ce8
2026-09-01 14:50:48,381 - DEBUG - Requesting: http://10.0.0.38:8082/project/8c28bec5-5075-4dbc-891f-311ca1795ba8
2026-09-01 14:50:48,461 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/97bde9b4-afe5-405c-885c-b68b451ee4fc
2026-09-01 14:50:48,473 - DEBUG - ==>Verifying data for policy with id: e1d5e8dc-86bd-482a-a684-16ad254c4a42, fqn: ['default-domain', 'ctest-TestBasicPolicy-17818589', 'ctest-policy-allow-all-56247493']
2026-09-01 14:50:48,473 - INFO - VN ctest-vn-51357202 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-01 14:50:48,473 - DEBUG - Verifying the vn in opserver
2026-09-01 14:50:48,473 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17818589:ctest-vn-51357202 virtual network link through opserver 10.0.0.38
2026-09-01 14:50:48,473 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-09-01 14:50:48,488 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17818589:ctest-vn-51357202', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17818589:ctest-vn-51357202?flat'}
2026-09-01 14:50:48,488 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17818589:ctest-vn-51357202 is found in opserver
2026-09-01 14:50:48,503 - DEBUG - Do not have enough data to verify VN in agent
2026-09-01 14:50:48,510 - DEBUG - VRF ids for VN ctest-vn-51357202: {}
2026-09-01 14:50:48,577 - DEBUG - Services list from nova: [