2025-12-11 17:37:42,692 - INFO - Domain Default found not creating
2025-12-11 17:37:42,896 - INFO - Project ctest-TestBasicPolicy-57939066 not found, creating it
2025-12-11 17:37:43,386 - INFO - Created Project:ctest-TestBasicPolicy-57939066, ID : c56beeb4-f243-453f-9f77-3b0a43c3f860
2025-12-11 17:37:44,952 - INFO - ================================================================================
2025-12-11 17:37:44,953 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-11 17:37:44,953 - 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-11 17:37:45,208 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.25': '0'}} with
2025-12-11 17:37:45,208 - INFO - Initial checks done. Running the testcase now
2025-12-11 17:37:45,209 - INFO -
2025-12-11 17:37:45,860 - DEBUG - Response for create_network : {'network': {'id': 'b9da30ef-451a-4360-a0bf-9816865ba673', 'name': 'ctest-vn-85612970', 'tenant_id': 'c56beeb4f243453f9f773b0a43c3f860', 'project_id': 'c56beeb4f243453f9f773b0a43c3f860', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57939066', 'ctest-vn-85612970'], 'port_security_enabled': True, 'description': ''}}
2025-12-11 17:37:46,022 - DEBUG - Response for create_subnet : {'subnet': {'id': '0f5981e9-778d-4ee0-8c18-51b4da5d7336', 'name': '', 'tenant_id': 'c56beeb4f243453f9f773b0a43c3f860', 'network_id': 'b9da30ef-451a-4360-a0bf-9816865ba673', 'ip_version': 4, 'cidr': '180.161.61.192/26', 'allocation_pools': [{'start': '180.161.61.194', 'end': '180.161.61.254'}], 'gateway_ip': '180.161.61.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '180.161.61.194', 'tags': [], 'project_id': 'c56beeb4f243453f9f773b0a43c3f860'}}
2025-12-11 17:37:46,042 - INFO - Created VN ctest-vn-85612970
2025-12-11 17:37:46,095 - DEBUG - VN ctest-vn-85612970 UUID is b9da30ef-451a-4360-a0bf-9816865ba673
2025-12-11 17:37:46,395 - DEBUG - Response for create_network : {'network': {'id': '9b51c973-30db-4a3e-ad9a-f668ae7dd202', 'name': 'ctest-vn-57321340', 'tenant_id': 'c56beeb4f243453f9f773b0a43c3f860', 'project_id': 'c56beeb4f243453f9f773b0a43c3f860', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57939066', 'ctest-vn-57321340'], 'port_security_enabled': True, 'description': ''}}
2025-12-11 17:37:46,593 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cb8e4d4e-7652-4d49-a1dc-0070e5412f02', 'name': '', 'tenant_id': 'c56beeb4f243453f9f773b0a43c3f860', 'network_id': '9b51c973-30db-4a3e-ad9a-f668ae7dd202', 'ip_version': 4, 'cidr': '19.91.178.64/26', 'allocation_pools': [{'start': '19.91.178.66', 'end': '19.91.178.126'}], 'gateway_ip': '19.91.178.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '19.91.178.66', 'tags': [], 'project_id': 'c56beeb4f243453f9f773b0a43c3f860'}}
2025-12-11 17:37:46,612 - INFO - Created VN ctest-vn-57321340
2025-12-11 17:37:46,666 - DEBUG - VN ctest-vn-57321340 UUID is 9b51c973-30db-4a3e-ad9a-f668ae7dd202
2025-12-11 17:37:46,826 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-57939066:ctest-vn-85612970, 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-57939066:ctest-vn-57321340, 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-11 17:37:47,294 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b9da30ef-451a-4360-a0bf-9816865ba673', 'name': 'ctest-vn-85612970', 'tenant_id': 'c56beeb4f243453f9f773b0a43c3f860', 'project_id': 'c56beeb4f243453f9f773b0a43c3f860', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0f5981e9-778d-4ee0-8c18-51b4da5d7336'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57939066', 'ctest-vn-85612970'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57939066', 'ctest-policy-allow-all-21139954']], 'subnet_ipam': [{'subnet_cidr': '180.161.61.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-11 17:37:47,556 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9b51c973-30db-4a3e-ad9a-f668ae7dd202', 'name': 'ctest-vn-57321340', 'tenant_id': 'c56beeb4f243453f9f773b0a43c3f860', 'project_id': 'c56beeb4f243453f9f773b0a43c3f860', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cb8e4d4e-7652-4d49-a1dc-0070e5412f02'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57939066', 'ctest-vn-57321340'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57939066', 'ctest-policy-allow-all-21139954']], 'subnet_ipam': [{'subnet_cidr': '19.91.178.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-11 17:37:47,682 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-12-11 17:37:47,983 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-12-11 17:37:48,023 - DEBUG - Requesting: http://10.0.0.242:8082/domain/1f885ef9-7824-475b-8e1f-d2b2777a0188
2025-12-11 17:37:48,036 - DEBUG - Requesting: http://10.0.0.242:8082/project/c56beeb4-f243-453f-9f77-3b0a43c3f860
2025-12-11 17:37:48,115 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/b9da30ef-451a-4360-a0bf-9816865ba673
2025-12-11 17:37:48,126 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/b9da30ef-451a-4360-a0bf-9816865ba673
2025-12-11 17:37:48,134 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/5c5907c6-c167-434e-b031-0d626a4176d6
2025-12-11 17:37:48,143 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/5c5907c6-c167-434e-b031-0d626a4176d6
2025-12-11 17:37:48,152 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/34b9e463-172c-4c62-a8fe-ca367597e3e1
2025-12-11 17:37:48,159 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-11 17:37:48,159 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/b9da30ef-451a-4360-a0bf-9816865ba673
2025-12-11 17:37:48,168 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/5c5907c6-c167-434e-b031-0d626a4176d6
2025-12-11 17:37:48,187 - INFO - Verified VN network id 12 for VN b9da30ef-451a-4360-a0bf-9816865ba673
2025-12-11 17:37:48,187 - INFO - Verifications in API Server for VN ctest-vn-85612970 passed
2025-12-11 17:37:48,187 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/b9da30ef-451a-4360-a0bf-9816865ba673
2025-12-11 17:37:48,197 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/5c5907c6-c167-434e-b031-0d626a4176d6
2025-12-11 17:37:48,205 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/5c5907c6-c167-434e-b031-0d626a4176d6
2025-12-11 17:37:48,212 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/34b9e463-172c-4c62-a8fe-ca367597e3e1
2025-12-11 17:37:48,224 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57939066:ctest-vn-85612970', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57939066', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13392070246154257248', 'uuid-lslong': '11583143989131060851'}, 'enable': 'true', 'created': '2025-12-11T17:37:45', 'last-modified': '2025-12-11T17:37:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.976361'}
2025-12-11 17:37:48,231 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-11 17:37:48,231 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85612970 passed
2025-12-11 17:37:48,231 - DEBUG - ====Verifying policy data for ctest-vn-85612970 in API_Server ======
2025-12-11 17:37:48,231 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-12-11 17:37:48,237 - DEBUG - Requesting: http://10.0.0.242:8082/domain/1f885ef9-7824-475b-8e1f-d2b2777a0188
2025-12-11 17:37:48,247 - DEBUG - Requesting: http://10.0.0.242:8082/project/c56beeb4-f243-453f-9f77-3b0a43c3f860
2025-12-11 17:37:48,320 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/b9da30ef-451a-4360-a0bf-9816865ba673
2025-12-11 17:37:48,329 - DEBUG - ==>Verifying data for policy with id: 6a00f247-fc04-4875-94e5-d932dfc67e85, fqn: ['default-domain', 'ctest-TestBasicPolicy-57939066', 'ctest-policy-allow-all-21139954']
2025-12-11 17:37:48,329 - INFO - VN ctest-vn-85612970 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-11 17:37:48,329 - DEBUG - Verifying the vn in opserver
2025-12-11 17:37:48,329 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57939066:ctest-vn-85612970 virtual network link through opserver 10.0.0.242
2025-12-11 17:37:48,329 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-12-11 17:37:48,648 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-12-11 17:37:48,724 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57939066:ctest-vn-85612970', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57939066:ctest-vn-85612970?flat'}
2025-12-11 17:37:48,724 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57939066:ctest-vn-85612970 is found in opserver
2025-12-11 17:37:48,734 - DEBUG - Do not have enough data to verify VN in agent
2025-12-11 17:37:48,739 - DEBUG - VRF ids for VN ctest-vn-85612970: {}
2025-12-11 17:37:48,739 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-12-11 17:37:48,745 - DEBUG - Requesting: http://10.0.0.242:8082/domain/1f885ef9-7824-475b-8e1f-d2b2777a0188
2025-12-11 17:37:48,758 - DEBUG - Requesting: http://10.0.0.242:8082/project/c56beeb4-f243-453f-9f77-3b0a43c3f860
2025-12-11 17:37:48,834 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/9b51c973-30db-4a3e-ad9a-f668ae7dd202
2025-12-11 17:37:48,846 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/9b51c973-30db-4a3e-ad9a-f668ae7dd202
2025-12-11 17:37:48,858 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/fe373c9e-8003-4f11-9554-1b208a88d8c9
2025-12-11 17:37:48,866 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/fe373c9e-8003-4f11-9554-1b208a88d8c9
2025-12-11 17:37:48,873 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/92efe771-7ea1-4975-8b24-f3742dbfbb76
2025-12-11 17:37:48,881 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-11 17:37:48,881 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/9b51c973-30db-4a3e-ad9a-f668ae7dd202
2025-12-11 17:37:48,892 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/fe373c9e-8003-4f11-9554-1b208a88d8c9
2025-12-11 17:37:48,907 - INFO - Verified VN network id 13 for VN 9b51c973-30db-4a3e-ad9a-f668ae7dd202
2025-12-11 17:37:48,907 - INFO - Verifications in API Server for VN ctest-vn-57321340 passed
2025-12-11 17:37:48,907 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/9b51c973-30db-4a3e-ad9a-f668ae7dd202
2025-12-11 17:37:48,917 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/fe373c9e-8003-4f11-9554-1b208a88d8c9
2025-12-11 17:37:48,925 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/fe373c9e-8003-4f11-9554-1b208a88d8c9
2025-12-11 17:37:48,932 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/92efe771-7ea1-4975-8b24-f3742dbfbb76
2025-12-11 17:37:48,948 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57939066:ctest-vn-57321340', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57939066', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11191948045570492990', 'uuid-lslong': '12509581844439486978'}, 'enable': 'true', 'created': '2025-12-11T17:37:46', 'last-modified': '2025-12-11T17:37:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.407873'}
2025-12-11 17:37:48,954 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-11 17:37:48,954 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57321340 passed
2025-12-11 17:37:48,955 - DEBUG - ====Verifying policy data for ctest-vn-57321340 in API_Server ======
2025-12-11 17:37:48,955 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-12-11 17:37:48,960 - DEBUG - Requesting: http://10.0.0.242:8082/domain/1f885ef9-7824-475b-8e1f-d2b2777a0188
2025-12-11 17:37:48,972 - DEBUG - Requesting: http://10.0.0.242:8082/project/c56beeb4-f243-453f-9f77-3b0a43c3f860
2025-12-11 17:37:49,057 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/9b51c973-30db-4a3e-ad9a-f668ae7dd202
2025-12-11 17:37:49,067 - DEBUG - ==>Verifying data for policy with id: 6a00f247-fc04-4875-94e5-d932dfc67e85, fqn: ['default-domain', 'ctest-TestBasicPolicy-57939066', 'ctest-policy-allow-all-21139954']
2025-12-11 17:37:49,067 - INFO - VN ctest-vn-57321340 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-11 17:37:49,067 - DEBUG - Verifying the vn in opserver
2025-12-11 17:37:49,067 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57939066:ctest-vn-57321340 virtual network link through opserver 10.0.0.242
2025-12-11 17:37:49,067 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-12-11 17:37:49,079 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57939066:ctest-vn-57321340', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57939066:ctest-vn-57321340?flat'}
2025-12-11 17:37:49,079 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57939066:ctest-vn-57321340 is found in opserver
2025-12-11 17:37:49,091 - DEBUG - Do not have enough data to verify VN in agent
2025-12-11 17:37:49,099 - DEBUG - VRF ids for VN ctest-vn-57321340: {}
2025-12-11 17:37:49,158 - DEBUG - Services list from nova: [