2025-11-05 13:47:52,560 - INFO - Domain Default found not creating
2025-11-05 13:47:52,711 - INFO - Project ctest-TestBasicPolicy-83851106 not found, creating it
2025-11-05 13:47:53,167 - INFO - Created Project:ctest-TestBasicPolicy-83851106, ID : d629bb0f-a43d-4ac0-b91b-343d3d4d3d58
2025-11-05 13:47:54,544 - INFO - ================================================================================
2025-11-05 13:47:54,544 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-05 13:47:54,545 - 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-11-05 13:47:54,809 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.192': '0'}} with
2025-11-05 13:47:54,809 - INFO - Initial checks done. Running the testcase now
2025-11-05 13:47:54,809 - INFO -
2025-11-05 13:47:55,332 - DEBUG - Response for create_network : {'network': {'id': '16b06314-2178-45c1-9f92-b17be3a91ed1', 'name': 'ctest-vn-45022134', 'tenant_id': 'd629bb0fa43d4ac0b91b343d3d4d3d58', 'project_id': 'd629bb0fa43d4ac0b91b343d3d4d3d58', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83851106', 'ctest-vn-45022134'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 13:47:55,551 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a66da029-ed21-4f8b-9984-78040c78fd57', 'name': '', 'tenant_id': 'd629bb0fa43d4ac0b91b343d3d4d3d58', 'network_id': '16b06314-2178-45c1-9f92-b17be3a91ed1', 'ip_version': 4, 'cidr': '72.139.220.0/26', 'allocation_pools': [{'start': '72.139.220.2', 'end': '72.139.220.62'}], 'gateway_ip': '72.139.220.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '72.139.220.2', 'tags': [], 'project_id': 'd629bb0fa43d4ac0b91b343d3d4d3d58'}}
2025-11-05 13:47:55,566 - INFO - Created VN ctest-vn-45022134
2025-11-05 13:47:55,618 - DEBUG - VN ctest-vn-45022134 UUID is 16b06314-2178-45c1-9f92-b17be3a91ed1
2025-11-05 13:47:55,938 - DEBUG - Response for create_network : {'network': {'id': '55e7340f-9ad9-4a25-9ef4-473875b84f6f', 'name': 'ctest-vn-04909083', 'tenant_id': 'd629bb0fa43d4ac0b91b343d3d4d3d58', 'project_id': 'd629bb0fa43d4ac0b91b343d3d4d3d58', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83851106', 'ctest-vn-04909083'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 13:47:56,089 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ad285285-112e-4023-b3c3-496c596e6664', 'name': '', 'tenant_id': 'd629bb0fa43d4ac0b91b343d3d4d3d58', 'network_id': '55e7340f-9ad9-4a25-9ef4-473875b84f6f', 'ip_version': 4, 'cidr': '173.83.9.128/26', 'allocation_pools': [{'start': '173.83.9.130', 'end': '173.83.9.190'}], 'gateway_ip': '173.83.9.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.83.9.130', 'tags': [], 'project_id': 'd629bb0fa43d4ac0b91b343d3d4d3d58'}}
2025-11-05 13:47:56,108 - INFO - Created VN ctest-vn-04909083
2025-11-05 13:47:56,162 - DEBUG - VN ctest-vn-04909083 UUID is 55e7340f-9ad9-4a25-9ef4-473875b84f6f
2025-11-05 13:47:56,269 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-83851106:ctest-vn-45022134, 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-83851106:ctest-vn-04909083, 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-11-05 13:47:56,563 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '16b06314-2178-45c1-9f92-b17be3a91ed1', 'name': 'ctest-vn-45022134', 'tenant_id': 'd629bb0fa43d4ac0b91b343d3d4d3d58', 'project_id': 'd629bb0fa43d4ac0b91b343d3d4d3d58', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a66da029-ed21-4f8b-9984-78040c78fd57'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83851106', 'ctest-vn-45022134'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-83851106', 'ctest-policy-allow-all-34007955']], 'subnet_ipam': [{'subnet_cidr': '72.139.220.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 13:47:56,784 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '55e7340f-9ad9-4a25-9ef4-473875b84f6f', 'name': 'ctest-vn-04909083', 'tenant_id': 'd629bb0fa43d4ac0b91b343d3d4d3d58', 'project_id': 'd629bb0fa43d4ac0b91b343d3d4d3d58', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ad285285-112e-4023-b3c3-496c596e6664'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83851106', 'ctest-vn-04909083'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-83851106', 'ctest-policy-allow-all-34007955']], 'subnet_ipam': [{'subnet_cidr': '173.83.9.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 13:47:56,955 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-11-05 13:47:57,248 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-11-05 13:47:57,274 - DEBUG - Requesting: http://10.0.0.19:8082/domain/5a13f62a-f8d5-435d-b816-083760c80328
2025-11-05 13:47:57,287 - DEBUG - Requesting: http://10.0.0.19:8082/project/d629bb0f-a43d-4ac0-b91b-343d3d4d3d58
2025-11-05 13:47:57,357 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/16b06314-2178-45c1-9f92-b17be3a91ed1
2025-11-05 13:47:57,366 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/16b06314-2178-45c1-9f92-b17be3a91ed1
2025-11-05 13:47:57,375 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/a336725e-8780-4d25-95fd-1c057f86540e
2025-11-05 13:47:57,383 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/a336725e-8780-4d25-95fd-1c057f86540e
2025-11-05 13:47:57,390 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/df9ebb74-a7e1-48a8-b223-ffb193ee5f54
2025-11-05 13:47:57,395 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 13:47:57,395 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/16b06314-2178-45c1-9f92-b17be3a91ed1
2025-11-05 13:47:57,403 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/a336725e-8780-4d25-95fd-1c057f86540e
2025-11-05 13:47:57,415 - INFO - Verified VN network id 12 for VN 16b06314-2178-45c1-9f92-b17be3a91ed1
2025-11-05 13:47:57,415 - INFO - Verifications in API Server for VN ctest-vn-45022134 passed
2025-11-05 13:47:57,415 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/16b06314-2178-45c1-9f92-b17be3a91ed1
2025-11-05 13:47:57,423 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/a336725e-8780-4d25-95fd-1c057f86540e
2025-11-05 13:47:57,430 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/a336725e-8780-4d25-95fd-1c057f86540e
2025-11-05 13:47:57,436 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/df9ebb74-a7e1-48a8-b223-ffb193ee5f54
2025-11-05 13:47:57,446 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-83851106:ctest-vn-45022134', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83851106', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1634915602847516097', 'uuid-lslong': '11498447944288902865'}, 'enable': 'true', 'created': '2025-11-05T13:47:55', 'last-modified': '2025-11-05T13:47:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.907842'}
2025-11-05 13:47:57,454 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 13:47:57,454 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45022134 passed
2025-11-05 13:47:57,454 - DEBUG - ====Verifying policy data for ctest-vn-45022134 in API_Server ======
2025-11-05 13:47:57,454 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-11-05 13:47:57,459 - DEBUG - Requesting: http://10.0.0.19:8082/domain/5a13f62a-f8d5-435d-b816-083760c80328
2025-11-05 13:47:57,469 - DEBUG - Requesting: http://10.0.0.19:8082/project/d629bb0f-a43d-4ac0-b91b-343d3d4d3d58
2025-11-05 13:47:57,535 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/16b06314-2178-45c1-9f92-b17be3a91ed1
2025-11-05 13:47:57,543 - DEBUG - ==>Verifying data for policy with id: c6dc78bc-376c-4923-897d-e05618fa1ec6, fqn: ['default-domain', 'ctest-TestBasicPolicy-83851106', 'ctest-policy-allow-all-34007955']
2025-11-05 13:47:57,543 - INFO - VN ctest-vn-45022134 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 13:47:57,543 - DEBUG - Verifying the vn in opserver
2025-11-05 13:47:57,543 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-83851106:ctest-vn-45022134 virtual network link through opserver 10.0.0.19
2025-11-05 13:47:57,543 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-11-05 13:47:57,835 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-11-05 13:47:57,895 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-83851106:ctest-vn-45022134', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-83851106:ctest-vn-45022134?flat'}
2025-11-05 13:47:57,895 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-83851106:ctest-vn-45022134 is found in opserver
2025-11-05 13:47:57,906 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 13:47:57,911 - DEBUG - VRF ids for VN ctest-vn-45022134: {}
2025-11-05 13:47:57,911 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-11-05 13:47:57,916 - DEBUG - Requesting: http://10.0.0.19:8082/domain/5a13f62a-f8d5-435d-b816-083760c80328
2025-11-05 13:47:57,927 - DEBUG - Requesting: http://10.0.0.19:8082/project/d629bb0f-a43d-4ac0-b91b-343d3d4d3d58
2025-11-05 13:47:58,002 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/55e7340f-9ad9-4a25-9ef4-473875b84f6f
2025-11-05 13:47:58,012 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/55e7340f-9ad9-4a25-9ef4-473875b84f6f
2025-11-05 13:47:58,020 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/2a3883a7-e4f8-4459-a94a-593b723e21fe
2025-11-05 13:47:58,027 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/2a3883a7-e4f8-4459-a94a-593b723e21fe
2025-11-05 13:47:58,033 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/91ad2898-c163-4335-b88d-ed12e8cfdfc9
2025-11-05 13:47:58,039 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 13:47:58,039 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/55e7340f-9ad9-4a25-9ef4-473875b84f6f
2025-11-05 13:47:58,048 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/2a3883a7-e4f8-4459-a94a-593b723e21fe
2025-11-05 13:47:58,062 - INFO - Verified VN network id 13 for VN 55e7340f-9ad9-4a25-9ef4-473875b84f6f
2025-11-05 13:47:58,062 - INFO - Verifications in API Server for VN ctest-vn-04909083 passed
2025-11-05 13:47:58,062 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/55e7340f-9ad9-4a25-9ef4-473875b84f6f
2025-11-05 13:47:58,071 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/2a3883a7-e4f8-4459-a94a-593b723e21fe
2025-11-05 13:47:58,077 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/2a3883a7-e4f8-4459-a94a-593b723e21fe
2025-11-05 13:47:58,083 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/91ad2898-c163-4335-b88d-ed12e8cfdfc9
2025-11-05 13:47:58,093 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-83851106:ctest-vn-04909083', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83851106', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6189973454471121445', 'uuid-lslong': '11453858060128767855'}, 'enable': 'true', 'created': '2025-11-05T13:47:55', 'last-modified': '2025-11-05T13:47:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.328373'}
2025-11-05 13:47:58,098 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 13:47:58,099 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04909083 passed
2025-11-05 13:47:58,100 - DEBUG - ====Verifying policy data for ctest-vn-04909083 in API_Server ======
2025-11-05 13:47:58,100 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-11-05 13:47:58,105 - DEBUG - Requesting: http://10.0.0.19:8082/domain/5a13f62a-f8d5-435d-b816-083760c80328
2025-11-05 13:47:58,114 - DEBUG - Requesting: http://10.0.0.19:8082/project/d629bb0f-a43d-4ac0-b91b-343d3d4d3d58
2025-11-05 13:47:58,184 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/55e7340f-9ad9-4a25-9ef4-473875b84f6f
2025-11-05 13:47:58,193 - DEBUG - ==>Verifying data for policy with id: c6dc78bc-376c-4923-897d-e05618fa1ec6, fqn: ['default-domain', 'ctest-TestBasicPolicy-83851106', 'ctest-policy-allow-all-34007955']
2025-11-05 13:47:58,193 - INFO - VN ctest-vn-04909083 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 13:47:58,193 - DEBUG - Verifying the vn in opserver
2025-11-05 13:47:58,193 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-83851106:ctest-vn-04909083 virtual network link through opserver 10.0.0.19
2025-11-05 13:47:58,193 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-11-05 13:47:58,204 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-83851106:ctest-vn-04909083', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-83851106:ctest-vn-04909083?flat'}
2025-11-05 13:47:58,204 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-83851106:ctest-vn-04909083 is found in opserver
2025-11-05 13:47:58,214 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 13:47:58,219 - DEBUG - VRF ids for VN ctest-vn-04909083: {}
2025-11-05 13:47:58,272 - DEBUG - Services list from nova: [