2025-12-04 16:44:24,984 - INFO - Domain Default found not creating
2025-12-04 16:44:25,178 - INFO - Project ctest-TestBasicPolicy-37271436 not found, creating it
2025-12-04 16:44:25,646 - INFO - Created Project:ctest-TestBasicPolicy-37271436, ID : 00a29902-e9ef-4224-bf99-1c2821af55e2
2025-12-04 16:44:27,295 - INFO - ================================================================================
2025-12-04 16:44:27,296 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-04 16:44:27,296 - 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
2025-12-04 16:44:27,553 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-12-04 16:44:27,553 - INFO - Initial checks done. Running the testcase now
2025-12-04 16:44:27,554 - INFO -
2025-12-04 16:44:28,141 - DEBUG - Response for create_network : {'network': {'id': 'e34cc12b-657f-43cc-a750-c26a70dbdaaf', 'name': 'ctest-vn-45200035', 'tenant_id': '00a29902e9ef4224bf991c2821af55e2', 'project_id': '00a29902e9ef4224bf991c2821af55e2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37271436', 'ctest-vn-45200035'], 'port_security_enabled': True, 'description': ''}}
2025-12-04 16:44:28,327 - DEBUG - Response for create_subnet : {'subnet': {'id': '9a0488d1-2f7d-4852-bdcc-e3e488db6ede', 'name': '', 'tenant_id': '00a29902e9ef4224bf991c2821af55e2', 'network_id': 'e34cc12b-657f-43cc-a750-c26a70dbdaaf', 'ip_version': 4, 'cidr': '159.16.214.0/26', 'allocation_pools': [{'start': '159.16.214.2', 'end': '159.16.214.62'}], 'gateway_ip': '159.16.214.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '159.16.214.2', 'tags': [], 'project_id': '00a29902e9ef4224bf991c2821af55e2'}}
2025-12-04 16:44:28,347 - INFO - Created VN ctest-vn-45200035
2025-12-04 16:44:28,403 - DEBUG - VN ctest-vn-45200035 UUID is e34cc12b-657f-43cc-a750-c26a70dbdaaf
2025-12-04 16:44:28,685 - DEBUG - Response for create_network : {'network': {'id': 'f05af943-1169-4d03-9883-d80fec2f1c30', 'name': 'ctest-vn-47713143', 'tenant_id': '00a29902e9ef4224bf991c2821af55e2', 'project_id': '00a29902e9ef4224bf991c2821af55e2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37271436', 'ctest-vn-47713143'], 'port_security_enabled': True, 'description': ''}}
2025-12-04 16:44:28,873 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f57db933-7dc4-4830-b17c-465f33d3bbcc', 'name': '', 'tenant_id': '00a29902e9ef4224bf991c2821af55e2', 'network_id': 'f05af943-1169-4d03-9883-d80fec2f1c30', 'ip_version': 4, 'cidr': '142.31.124.128/26', 'allocation_pools': [{'start': '142.31.124.130', 'end': '142.31.124.190'}], 'gateway_ip': '142.31.124.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '142.31.124.130', 'tags': [], 'project_id': '00a29902e9ef4224bf991c2821af55e2'}}
2025-12-04 16:44:28,892 - INFO - Created VN ctest-vn-47713143
2025-12-04 16:44:28,947 - DEBUG - VN ctest-vn-47713143 UUID is f05af943-1169-4d03-9883-d80fec2f1c30
2025-12-04 16:44:29,058 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-37271436:ctest-vn-45200035, 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-37271436:ctest-vn-47713143, 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]
2025-12-04 16:44:29,345 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e34cc12b-657f-43cc-a750-c26a70dbdaaf', 'name': 'ctest-vn-45200035', 'tenant_id': '00a29902e9ef4224bf991c2821af55e2', 'project_id': '00a29902e9ef4224bf991c2821af55e2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9a0488d1-2f7d-4852-bdcc-e3e488db6ede'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37271436', 'ctest-vn-45200035'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37271436', 'ctest-policy-allow-all-49673349']], 'subnet_ipam': [{'subnet_cidr': '159.16.214.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-04 16:44:29,579 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f05af943-1169-4d03-9883-d80fec2f1c30', 'name': 'ctest-vn-47713143', 'tenant_id': '00a29902e9ef4224bf991c2821af55e2', 'project_id': '00a29902e9ef4224bf991c2821af55e2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f57db933-7dc4-4830-b17c-465f33d3bbcc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37271436', 'ctest-vn-47713143'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37271436', 'ctest-policy-allow-all-49673349']], 'subnet_ipam': [{'subnet_cidr': '142.31.124.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-04 16:44:29,743 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-04 16:44:30,087 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-04 16:44:30,120 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c0e664ba-d85c-49e5-b7f5-e4604e9d8c7a
2025-12-04 16:44:30,132 - DEBUG - Requesting: http://10.0.0.38:8082/project/00a29902-e9ef-4224-bf99-1c2821af55e2
2025-12-04 16:44:30,206 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e34cc12b-657f-43cc-a750-c26a70dbdaaf
2025-12-04 16:44:30,217 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e34cc12b-657f-43cc-a750-c26a70dbdaaf
2025-12-04 16:44:30,226 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a4888508-c4aa-49fc-98da-c5bb8b9954b7
2025-12-04 16:44:30,234 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a4888508-c4aa-49fc-98da-c5bb8b9954b7
2025-12-04 16:44:30,240 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5ddcb3e1-71ef-424e-8727-a9abfe4f20d5
2025-12-04 16:44:30,247 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-04 16:44:30,247 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e34cc12b-657f-43cc-a750-c26a70dbdaaf
2025-12-04 16:44:30,255 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a4888508-c4aa-49fc-98da-c5bb8b9954b7
2025-12-04 16:44:30,269 - INFO - Verified VN network id 11 for VN e34cc12b-657f-43cc-a750-c26a70dbdaaf
2025-12-04 16:44:30,269 - INFO - Verifications in API Server for VN ctest-vn-45200035 passed
2025-12-04 16:44:30,269 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e34cc12b-657f-43cc-a750-c26a70dbdaaf
2025-12-04 16:44:30,279 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a4888508-c4aa-49fc-98da-c5bb8b9954b7
2025-12-04 16:44:30,286 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a4888508-c4aa-49fc-98da-c5bb8b9954b7
2025-12-04 16:44:30,293 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5ddcb3e1-71ef-424e-8727-a9abfe4f20d5
2025-12-04 16:44:30,305 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37271436:ctest-vn-45200035', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37271436', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16378678336970245068', 'uuid-lslong': '12056349964886596271'}, 'enable': 'true', 'created': '2025-12-04T16:44:28', 'last-modified': '2025-12-04T16:44:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.976817'}
2025-12-04 16:44:30,311 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-04 16:44:30,311 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45200035 passed
2025-12-04 16:44:30,312 - DEBUG - ====Verifying policy data for ctest-vn-45200035 in API_Server ======
2025-12-04 16:44:30,312 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-04 16:44:30,316 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c0e664ba-d85c-49e5-b7f5-e4604e9d8c7a
2025-12-04 16:44:30,328 - DEBUG - Requesting: http://10.0.0.38:8082/project/00a29902-e9ef-4224-bf99-1c2821af55e2
2025-12-04 16:44:30,404 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e34cc12b-657f-43cc-a750-c26a70dbdaaf
2025-12-04 16:44:30,413 - DEBUG - ==>Verifying data for policy with id: 432108aa-bcdb-4386-8143-8ea2afb5b8fe, fqn: ['default-domain', 'ctest-TestBasicPolicy-37271436', 'ctest-policy-allow-all-49673349']
2025-12-04 16:44:30,413 - INFO - VN ctest-vn-45200035 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-04 16:44:30,413 - DEBUG - Verifying the vn in opserver
2025-12-04 16:44:30,413 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37271436:ctest-vn-45200035 virtual network link through opserver 10.0.0.38
2025-12-04 16:44:30,413 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-04 16:44:30,748 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-04 16:44:30,811 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37271436:ctest-vn-45200035', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37271436:ctest-vn-45200035?flat'}
2025-12-04 16:44:30,811 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37271436:ctest-vn-45200035 is found in opserver
2025-12-04 16:44:30,821 - DEBUG - Do not have enough data to verify VN in agent
2025-12-04 16:44:30,826 - DEBUG - VRF ids for VN ctest-vn-45200035: {}
2025-12-04 16:44:30,826 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-04 16:44:30,831 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c0e664ba-d85c-49e5-b7f5-e4604e9d8c7a
2025-12-04 16:44:30,843 - DEBUG - Requesting: http://10.0.0.38:8082/project/00a29902-e9ef-4224-bf99-1c2821af55e2
2025-12-04 16:44:30,914 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f05af943-1169-4d03-9883-d80fec2f1c30
2025-12-04 16:44:30,927 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f05af943-1169-4d03-9883-d80fec2f1c30
2025-12-04 16:44:30,938 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e3df334b-c5ab-4ddf-af7a-203f3c0b973c
2025-12-04 16:44:30,946 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e3df334b-c5ab-4ddf-af7a-203f3c0b973c
2025-12-04 16:44:30,952 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d431404f-3f02-4f82-a631-b2fb896db7c7
2025-12-04 16:44:30,959 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-04 16:44:30,959 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f05af943-1169-4d03-9883-d80fec2f1c30
2025-12-04 16:44:30,969 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e3df334b-c5ab-4ddf-af7a-203f3c0b973c
2025-12-04 16:44:30,982 - INFO - Verified VN network id 12 for VN f05af943-1169-4d03-9883-d80fec2f1c30
2025-12-04 16:44:30,982 - INFO - Verifications in API Server for VN ctest-vn-47713143 passed
2025-12-04 16:44:30,982 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f05af943-1169-4d03-9883-d80fec2f1c30
2025-12-04 16:44:30,994 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e3df334b-c5ab-4ddf-af7a-203f3c0b973c
2025-12-04 16:44:31,002 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e3df334b-c5ab-4ddf-af7a-203f3c0b973c
2025-12-04 16:44:31,010 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d431404f-3f02-4f82-a631-b2fb896db7c7
2025-12-04 16:44:31,024 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37271436:ctest-vn-47713143', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37271436', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17319429383456902403', 'uuid-lslong': '10989865078612761648'}, 'enable': 'true', 'created': '2025-12-04T16:44:28', 'last-modified': '2025-12-04T16:44:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.470102'}
2025-12-04 16:44:31,029 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-04 16:44:31,030 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47713143 passed
2025-12-04 16:44:31,030 - DEBUG - ====Verifying policy data for ctest-vn-47713143 in API_Server ======
2025-12-04 16:44:31,030 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-04 16:44:31,036 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c0e664ba-d85c-49e5-b7f5-e4604e9d8c7a
2025-12-04 16:44:31,046 - DEBUG - Requesting: http://10.0.0.38:8082/project/00a29902-e9ef-4224-bf99-1c2821af55e2
2025-12-04 16:44:31,114 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f05af943-1169-4d03-9883-d80fec2f1c30
2025-12-04 16:44:31,123 - DEBUG - ==>Verifying data for policy with id: 432108aa-bcdb-4386-8143-8ea2afb5b8fe, fqn: ['default-domain', 'ctest-TestBasicPolicy-37271436', 'ctest-policy-allow-all-49673349']
2025-12-04 16:44:31,124 - INFO - VN ctest-vn-47713143 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-04 16:44:31,124 - DEBUG - Verifying the vn in opserver
2025-12-04 16:44:31,124 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37271436:ctest-vn-47713143 virtual network link through opserver 10.0.0.38
2025-12-04 16:44:31,124 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-04 16:44:31,133 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37271436:ctest-vn-47713143', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37271436:ctest-vn-47713143?flat'}
2025-12-04 16:44:31,133 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37271436:ctest-vn-47713143 is found in opserver
2025-12-04 16:44:31,143 - DEBUG - Do not have enough data to verify VN in agent
2025-12-04 16:44:31,148 - DEBUG - VRF ids for VN ctest-vn-47713143: {}
2025-12-04 16:44:31,205 - DEBUG - Services list from nova: [