2025-12-16 18:07:17,253 - INFO - Domain Default found not creating
2025-12-16 18:07:17,419 - INFO - Project ctest-TestBasicPolicy-40887611 not found, creating it
2025-12-16 18:07:17,873 - INFO - Created Project:ctest-TestBasicPolicy-40887611, ID : 219da899-c00a-4848-ac76-d17e05f20be8
2025-12-16 18:07:19,311 - INFO - ================================================================================
2025-12-16 18:07:19,311 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-16 18:07:19,311 - 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-16 18:07:19,566 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-12-16 18:07:19,566 - INFO - Initial checks done. Running the testcase now
2025-12-16 18:07:19,567 - INFO -
2025-12-16 18:07:20,092 - DEBUG - Response for create_network : {'network': {'id': 'c75d02ad-20d6-4956-a057-00170285f4d5', 'name': 'ctest-vn-23564979', 'tenant_id': '219da899c00a4848ac76d17e05f20be8', 'project_id': '219da899c00a4848ac76d17e05f20be8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40887611', 'ctest-vn-23564979'], 'port_security_enabled': True, 'description': ''}}
2025-12-16 18:07:20,301 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd2cdd516-c494-490c-98d7-149f986c113d', 'name': '', 'tenant_id': '219da899c00a4848ac76d17e05f20be8', 'network_id': 'c75d02ad-20d6-4956-a057-00170285f4d5', 'ip_version': 4, 'cidr': '166.100.198.192/26', 'allocation_pools': [{'start': '166.100.198.194', 'end': '166.100.198.254'}], 'gateway_ip': '166.100.198.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.100.198.194', 'tags': [], 'project_id': '219da899c00a4848ac76d17e05f20be8'}}
2025-12-16 18:07:20,318 - INFO - Created VN ctest-vn-23564979
2025-12-16 18:07:20,369 - DEBUG - VN ctest-vn-23564979 UUID is c75d02ad-20d6-4956-a057-00170285f4d5
2025-12-16 18:07:20,686 - DEBUG - Response for create_network : {'network': {'id': '916b9a41-cbee-44b4-88a9-e1b8094e81d5', 'name': 'ctest-vn-36327400', 'tenant_id': '219da899c00a4848ac76d17e05f20be8', 'project_id': '219da899c00a4848ac76d17e05f20be8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40887611', 'ctest-vn-36327400'], 'port_security_enabled': True, 'description': ''}}
2025-12-16 18:07:20,820 - DEBUG - Response for create_subnet : {'subnet': {'id': '51eb19b4-0a8a-404a-996a-bc01a01a0212', 'name': '', 'tenant_id': '219da899c00a4848ac76d17e05f20be8', 'network_id': '916b9a41-cbee-44b4-88a9-e1b8094e81d5', 'ip_version': 4, 'cidr': '16.97.136.0/26', 'allocation_pools': [{'start': '16.97.136.2', 'end': '16.97.136.62'}], 'gateway_ip': '16.97.136.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '16.97.136.2', 'tags': [], 'project_id': '219da899c00a4848ac76d17e05f20be8'}}
2025-12-16 18:07:20,835 - INFO - Created VN ctest-vn-36327400
2025-12-16 18:07:20,885 - DEBUG - VN ctest-vn-36327400 UUID is 916b9a41-cbee-44b4-88a9-e1b8094e81d5
2025-12-16 18:07:21,033 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-40887611:ctest-vn-23564979, 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-40887611:ctest-vn-36327400, 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-16 18:07:21,319 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c75d02ad-20d6-4956-a057-00170285f4d5', 'name': 'ctest-vn-23564979', 'tenant_id': '219da899c00a4848ac76d17e05f20be8', 'project_id': '219da899c00a4848ac76d17e05f20be8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d2cdd516-c494-490c-98d7-149f986c113d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40887611', 'ctest-vn-23564979'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40887611', 'ctest-policy-allow-all-90969244']], 'subnet_ipam': [{'subnet_cidr': '166.100.198.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-16 18:07:21,593 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '916b9a41-cbee-44b4-88a9-e1b8094e81d5', 'name': 'ctest-vn-36327400', 'tenant_id': '219da899c00a4848ac76d17e05f20be8', 'project_id': '219da899c00a4848ac76d17e05f20be8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['51eb19b4-0a8a-404a-996a-bc01a01a0212'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40887611', 'ctest-vn-36327400'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40887611', 'ctest-policy-allow-all-90969244']], 'subnet_ipam': [{'subnet_cidr': '16.97.136.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-16 18:07:21,741 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-16 18:07:22,042 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-16 18:07:22,073 - DEBUG - Requesting: http://10.0.0.38:8082/domain/cc3b17c6-d27f-481e-a032-c36b05770de6
2025-12-16 18:07:22,085 - DEBUG - Requesting: http://10.0.0.38:8082/project/219da899-c00a-4848-ac76-d17e05f20be8
2025-12-16 18:07:22,156 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c75d02ad-20d6-4956-a057-00170285f4d5
2025-12-16 18:07:22,166 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c75d02ad-20d6-4956-a057-00170285f4d5
2025-12-16 18:07:22,177 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f8568d39-9dbc-46d0-8528-131659872839
2025-12-16 18:07:22,189 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f8568d39-9dbc-46d0-8528-131659872839
2025-12-16 18:07:22,198 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ca47fdd5-b3cf-4fd5-a6d5-004adac52b36
2025-12-16 18:07:22,205 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-16 18:07:22,205 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c75d02ad-20d6-4956-a057-00170285f4d5
2025-12-16 18:07:22,214 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f8568d39-9dbc-46d0-8528-131659872839
2025-12-16 18:07:22,228 - INFO - Verified VN network id 11 for VN c75d02ad-20d6-4956-a057-00170285f4d5
2025-12-16 18:07:22,228 - INFO - Verifications in API Server for VN ctest-vn-23564979 passed
2025-12-16 18:07:22,228 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c75d02ad-20d6-4956-a057-00170285f4d5
2025-12-16 18:07:22,237 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f8568d39-9dbc-46d0-8528-131659872839
2025-12-16 18:07:22,244 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f8568d39-9dbc-46d0-8528-131659872839
2025-12-16 18:07:22,250 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ca47fdd5-b3cf-4fd5-a6d5-004adac52b36
2025-12-16 18:07:22,262 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40887611:ctest-vn-23564979', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40887611', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14365641328985262422', 'uuid-lslong': '11553703467868878037'}, 'enable': 'true', 'created': '2025-12-16T18:07:20', 'last-modified': '2025-12-16T18:07:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.964051'}
2025-12-16 18:07:22,267 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-16 18:07:22,267 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23564979 passed
2025-12-16 18:07:22,268 - DEBUG - ====Verifying policy data for ctest-vn-23564979 in API_Server ======
2025-12-16 18:07:22,268 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-16 18:07:22,272 - DEBUG - Requesting: http://10.0.0.38:8082/domain/cc3b17c6-d27f-481e-a032-c36b05770de6
2025-12-16 18:07:22,283 - DEBUG - Requesting: http://10.0.0.38:8082/project/219da899-c00a-4848-ac76-d17e05f20be8
2025-12-16 18:07:22,355 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c75d02ad-20d6-4956-a057-00170285f4d5
2025-12-16 18:07:22,365 - DEBUG - ==>Verifying data for policy with id: ecfc0246-8496-49c0-99c2-b43d5a426bb3, fqn: ['default-domain', 'ctest-TestBasicPolicy-40887611', 'ctest-policy-allow-all-90969244']
2025-12-16 18:07:22,365 - INFO - VN ctest-vn-23564979 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-16 18:07:22,365 - DEBUG - Verifying the vn in opserver
2025-12-16 18:07:22,365 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40887611:ctest-vn-23564979 virtual network link through opserver 10.0.0.38
2025-12-16 18:07:22,365 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-16 18:07:22,664 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-16 18:07:22,724 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40887611:ctest-vn-23564979', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40887611:ctest-vn-23564979?flat'}
2025-12-16 18:07:22,724 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40887611:ctest-vn-23564979 is found in opserver
2025-12-16 18:07:22,734 - DEBUG - Do not have enough data to verify VN in agent
2025-12-16 18:07:22,740 - DEBUG - VRF ids for VN ctest-vn-23564979: {}
2025-12-16 18:07:22,740 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-16 18:07:22,747 - DEBUG - Requesting: http://10.0.0.38:8082/domain/cc3b17c6-d27f-481e-a032-c36b05770de6
2025-12-16 18:07:22,760 - DEBUG - Requesting: http://10.0.0.38:8082/project/219da899-c00a-4848-ac76-d17e05f20be8
2025-12-16 18:07:22,832 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/916b9a41-cbee-44b4-88a9-e1b8094e81d5
2025-12-16 18:07:22,844 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/916b9a41-cbee-44b4-88a9-e1b8094e81d5
2025-12-16 18:07:22,855 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c8101268-1439-40ff-b0a7-b5f0e8fc98fa
2025-12-16 18:07:22,863 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c8101268-1439-40ff-b0a7-b5f0e8fc98fa
2025-12-16 18:07:22,870 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6e13a2cf-21af-4c82-9cb2-fe7d4fe305a1
2025-12-16 18:07:22,876 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-16 18:07:22,876 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/916b9a41-cbee-44b4-88a9-e1b8094e81d5
2025-12-16 18:07:22,884 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c8101268-1439-40ff-b0a7-b5f0e8fc98fa
2025-12-16 18:07:22,898 - INFO - Verified VN network id 12 for VN 916b9a41-cbee-44b4-88a9-e1b8094e81d5
2025-12-16 18:07:22,898 - INFO - Verifications in API Server for VN ctest-vn-36327400 passed
2025-12-16 18:07:22,898 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/916b9a41-cbee-44b4-88a9-e1b8094e81d5
2025-12-16 18:07:22,907 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c8101268-1439-40ff-b0a7-b5f0e8fc98fa
2025-12-16 18:07:22,914 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c8101268-1439-40ff-b0a7-b5f0e8fc98fa
2025-12-16 18:07:22,921 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6e13a2cf-21af-4c82-9cb2-fe7d4fe305a1
2025-12-16 18:07:22,934 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40887611:ctest-vn-36327400', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40887611', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10478638565392532660', 'uuid-lslong': '9847650240768672213'}, 'enable': 'true', 'created': '2025-12-16T18:07:20', 'last-modified': '2025-12-16T18:07:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.409027'}
2025-12-16 18:07:22,939 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-16 18:07:22,939 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36327400 passed
2025-12-16 18:07:22,939 - DEBUG - ====Verifying policy data for ctest-vn-36327400 in API_Server ======
2025-12-16 18:07:22,939 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-16 18:07:22,946 - DEBUG - Requesting: http://10.0.0.38:8082/domain/cc3b17c6-d27f-481e-a032-c36b05770de6
2025-12-16 18:07:22,955 - DEBUG - Requesting: http://10.0.0.38:8082/project/219da899-c00a-4848-ac76-d17e05f20be8
2025-12-16 18:07:23,020 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/916b9a41-cbee-44b4-88a9-e1b8094e81d5
2025-12-16 18:07:23,028 - DEBUG - ==>Verifying data for policy with id: ecfc0246-8496-49c0-99c2-b43d5a426bb3, fqn: ['default-domain', 'ctest-TestBasicPolicy-40887611', 'ctest-policy-allow-all-90969244']
2025-12-16 18:07:23,028 - INFO - VN ctest-vn-36327400 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-16 18:07:23,028 - DEBUG - Verifying the vn in opserver
2025-12-16 18:07:23,028 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40887611:ctest-vn-36327400 virtual network link through opserver 10.0.0.38
2025-12-16 18:07:23,028 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-16 18:07:23,038 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40887611:ctest-vn-36327400', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40887611:ctest-vn-36327400?flat'}
2025-12-16 18:07:23,038 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40887611:ctest-vn-36327400 is found in opserver
2025-12-16 18:07:23,048 - DEBUG - Do not have enough data to verify VN in agent
2025-12-16 18:07:23,053 - DEBUG - VRF ids for VN ctest-vn-36327400: {}
2025-12-16 18:07:23,109 - DEBUG - Services list from nova: [