2025-10-07 19:12:41,976 - INFO - Domain Default found not creating
2025-10-07 19:12:42,110 - INFO - Project ctest-TestBasicPolicy-23161155 not found, creating it
2025-10-07 19:12:42,540 - INFO - Created Project:ctest-TestBasicPolicy-23161155, ID : 5594558e-7fef-4530-aa41-522dd7ba54d6
2025-10-07 19:12:43,914 - INFO - ================================================================================
2025-10-07 19:12:43,914 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-07 19:12:43,914 - 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-10-07 19:12:44,173 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.17': '0'}} with
2025-10-07 19:12:44,173 - INFO - Initial checks done. Running the testcase now
2025-10-07 19:12:44,173 - INFO -
2025-10-07 19:12:44,691 - DEBUG - Response for create_network : {'network': {'id': '45d21212-bbd4-4ad1-b079-88fc1e087ccc', 'name': 'ctest-vn-99654886', 'tenant_id': '5594558e7fef4530aa41522dd7ba54d6', 'project_id': '5594558e7fef4530aa41522dd7ba54d6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23161155', 'ctest-vn-99654886'], 'port_security_enabled': True, 'description': ''}}
2025-10-07 19:12:44,878 - DEBUG - Response for create_subnet : {'subnet': {'id': '4e9ea23e-3d91-48ac-8f0d-d74d6ab01bac', 'name': '', 'tenant_id': '5594558e7fef4530aa41522dd7ba54d6', 'network_id': '45d21212-bbd4-4ad1-b079-88fc1e087ccc', 'ip_version': 4, 'cidr': '197.140.106.192/26', 'allocation_pools': [{'start': '197.140.106.194', 'end': '197.140.106.254'}], 'gateway_ip': '197.140.106.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '197.140.106.194', 'tags': [], 'project_id': '5594558e7fef4530aa41522dd7ba54d6'}}
2025-10-07 19:12:44,895 - INFO - Created VN ctest-vn-99654886
2025-10-07 19:12:44,948 - DEBUG - VN ctest-vn-99654886 UUID is 45d21212-bbd4-4ad1-b079-88fc1e087ccc
2025-10-07 19:12:45,264 - DEBUG - Response for create_network : {'network': {'id': '49a8dfde-2709-4d94-8c47-19d67d3e20d5', 'name': 'ctest-vn-15113301', 'tenant_id': '5594558e7fef4530aa41522dd7ba54d6', 'project_id': '5594558e7fef4530aa41522dd7ba54d6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23161155', 'ctest-vn-15113301'], 'port_security_enabled': True, 'description': ''}}
2025-10-07 19:12:45,452 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a97cc7ce-dda9-46c9-933e-74a12e0973b4', 'name': '', 'tenant_id': '5594558e7fef4530aa41522dd7ba54d6', 'network_id': '49a8dfde-2709-4d94-8c47-19d67d3e20d5', 'ip_version': 4, 'cidr': '176.116.88.192/26', 'allocation_pools': [{'start': '176.116.88.194', 'end': '176.116.88.254'}], 'gateway_ip': '176.116.88.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '176.116.88.194', 'tags': [], 'project_id': '5594558e7fef4530aa41522dd7ba54d6'}}
2025-10-07 19:12:45,467 - INFO - Created VN ctest-vn-15113301
2025-10-07 19:12:45,520 - DEBUG - VN ctest-vn-15113301 UUID is 49a8dfde-2709-4d94-8c47-19d67d3e20d5
2025-10-07 19:12:45,668 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-23161155:ctest-vn-99654886, 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-23161155:ctest-vn-15113301, 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-10-07 19:12:45,961 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '45d21212-bbd4-4ad1-b079-88fc1e087ccc', 'name': 'ctest-vn-99654886', 'tenant_id': '5594558e7fef4530aa41522dd7ba54d6', 'project_id': '5594558e7fef4530aa41522dd7ba54d6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4e9ea23e-3d91-48ac-8f0d-d74d6ab01bac'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23161155', 'ctest-vn-99654886'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23161155', 'ctest-policy-allow-all-25008057']], 'subnet_ipam': [{'subnet_cidr': '197.140.106.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-07 19:12:46,234 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '49a8dfde-2709-4d94-8c47-19d67d3e20d5', 'name': 'ctest-vn-15113301', 'tenant_id': '5594558e7fef4530aa41522dd7ba54d6', 'project_id': '5594558e7fef4530aa41522dd7ba54d6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a97cc7ce-dda9-46c9-933e-74a12e0973b4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23161155', 'ctest-vn-15113301'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23161155', 'ctest-policy-allow-all-25008057']], 'subnet_ipam': [{'subnet_cidr': '176.116.88.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-07 19:12:46,376 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-07 19:12:46,671 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-07 19:12:46,698 - DEBUG - Requesting: http://10.0.0.27:8082/domain/cf7c0f16-67db-492b-b28a-02d68f92f04a
2025-10-07 19:12:46,709 - DEBUG - Requesting: http://10.0.0.27:8082/project/5594558e-7fef-4530-aa41-522dd7ba54d6
2025-10-07 19:12:46,778 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/45d21212-bbd4-4ad1-b079-88fc1e087ccc
2025-10-07 19:12:46,789 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/45d21212-bbd4-4ad1-b079-88fc1e087ccc
2025-10-07 19:12:46,797 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/45327db0-f392-4746-88e8-bea32db777da
2025-10-07 19:12:46,803 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/45327db0-f392-4746-88e8-bea32db777da
2025-10-07 19:12:46,809 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/868b1268-0895-4961-ab0e-7bbbc6f0080e
2025-10-07 19:12:46,814 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-07 19:12:46,814 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/45d21212-bbd4-4ad1-b079-88fc1e087ccc
2025-10-07 19:12:46,822 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/45327db0-f392-4746-88e8-bea32db777da
2025-10-07 19:12:46,836 - INFO - Verified VN network id 12 for VN 45d21212-bbd4-4ad1-b079-88fc1e087ccc
2025-10-07 19:12:46,836 - INFO - Verifications in API Server for VN ctest-vn-99654886 passed
2025-10-07 19:12:46,836 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/45d21212-bbd4-4ad1-b079-88fc1e087ccc
2025-10-07 19:12:46,847 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/45327db0-f392-4746-88e8-bea32db777da
2025-10-07 19:12:46,854 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/45327db0-f392-4746-88e8-bea32db777da
2025-10-07 19:12:46,861 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/868b1268-0895-4961-ab0e-7bbbc6f0080e
2025-10-07 19:12:46,872 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23161155:ctest-vn-99654886', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23161155', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5031103605396228817', 'uuid-lslong': '12716345639274314956'}, 'enable': 'true', 'created': '2025-10-07T19:12:44', 'last-modified': '2025-10-07T19:12:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.938872'}
2025-10-07 19:12:46,878 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-07 19:12:46,878 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99654886 passed
2025-10-07 19:12:46,878 - DEBUG - ====Verifying policy data for ctest-vn-99654886 in API_Server ======
2025-10-07 19:12:46,878 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-07 19:12:46,883 - DEBUG - Requesting: http://10.0.0.27:8082/domain/cf7c0f16-67db-492b-b28a-02d68f92f04a
2025-10-07 19:12:46,892 - DEBUG - Requesting: http://10.0.0.27:8082/project/5594558e-7fef-4530-aa41-522dd7ba54d6
2025-10-07 19:12:46,960 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/45d21212-bbd4-4ad1-b079-88fc1e087ccc
2025-10-07 19:12:46,967 - DEBUG - ==>Verifying data for policy with id: b1b8409b-9eb7-4651-8a68-1e4fd60dffd1, fqn: ['default-domain', 'ctest-TestBasicPolicy-23161155', 'ctest-policy-allow-all-25008057']
2025-10-07 19:12:46,968 - INFO - VN ctest-vn-99654886 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-07 19:12:46,968 - DEBUG - Verifying the vn in opserver
2025-10-07 19:12:46,968 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23161155:ctest-vn-99654886 virtual network link through opserver 10.0.0.27
2025-10-07 19:12:46,968 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-10-07 19:12:47,256 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-10-07 19:12:47,305 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23161155:ctest-vn-99654886', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23161155:ctest-vn-99654886?flat'}
2025-10-07 19:12:47,305 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23161155:ctest-vn-99654886 is found in opserver
2025-10-07 19:12:47,314 - DEBUG - Do not have enough data to verify VN in agent
2025-10-07 19:12:47,318 - DEBUG - VRF ids for VN ctest-vn-99654886: {}
2025-10-07 19:12:47,318 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-07 19:12:47,323 - DEBUG - Requesting: http://10.0.0.27:8082/domain/cf7c0f16-67db-492b-b28a-02d68f92f04a
2025-10-07 19:12:47,332 - DEBUG - Requesting: http://10.0.0.27:8082/project/5594558e-7fef-4530-aa41-522dd7ba54d6
2025-10-07 19:12:47,399 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/49a8dfde-2709-4d94-8c47-19d67d3e20d5
2025-10-07 19:12:47,409 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/49a8dfde-2709-4d94-8c47-19d67d3e20d5
2025-10-07 19:12:47,418 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4aca1482-4113-47fc-8f6b-b936176df0ca
2025-10-07 19:12:47,425 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4aca1482-4113-47fc-8f6b-b936176df0ca
2025-10-07 19:12:47,431 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/062c944a-a9dc-4ddc-a064-779eb67c6074
2025-10-07 19:12:47,436 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-07 19:12:47,436 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/49a8dfde-2709-4d94-8c47-19d67d3e20d5
2025-10-07 19:12:47,444 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4aca1482-4113-47fc-8f6b-b936176df0ca
2025-10-07 19:12:47,457 - INFO - Verified VN network id 13 for VN 49a8dfde-2709-4d94-8c47-19d67d3e20d5
2025-10-07 19:12:47,458 - INFO - Verifications in API Server for VN ctest-vn-15113301 passed
2025-10-07 19:12:47,458 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/49a8dfde-2709-4d94-8c47-19d67d3e20d5
2025-10-07 19:12:47,466 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4aca1482-4113-47fc-8f6b-b936176df0ca
2025-10-07 19:12:47,472 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4aca1482-4113-47fc-8f6b-b936176df0ca
2025-10-07 19:12:47,478 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/062c944a-a9dc-4ddc-a064-779eb67c6074
2025-10-07 19:12:47,488 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23161155:ctest-vn-15113301', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23161155', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5307738306086784404', 'uuid-lslong': '10108076297671286997'}, 'enable': 'true', 'created': '2025-10-07T19:12:45', 'last-modified': '2025-10-07T19:12:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.327211'}
2025-10-07 19:12:47,493 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-07 19:12:47,493 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15113301 passed
2025-10-07 19:12:47,493 - DEBUG - ====Verifying policy data for ctest-vn-15113301 in API_Server ======
2025-10-07 19:12:47,493 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-07 19:12:47,499 - DEBUG - Requesting: http://10.0.0.27:8082/domain/cf7c0f16-67db-492b-b28a-02d68f92f04a
2025-10-07 19:12:47,508 - DEBUG - Requesting: http://10.0.0.27:8082/project/5594558e-7fef-4530-aa41-522dd7ba54d6
2025-10-07 19:12:47,582 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/49a8dfde-2709-4d94-8c47-19d67d3e20d5
2025-10-07 19:12:47,592 - DEBUG - ==>Verifying data for policy with id: b1b8409b-9eb7-4651-8a68-1e4fd60dffd1, fqn: ['default-domain', 'ctest-TestBasicPolicy-23161155', 'ctest-policy-allow-all-25008057']
2025-10-07 19:12:47,592 - INFO - VN ctest-vn-15113301 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-07 19:12:47,592 - DEBUG - Verifying the vn in opserver
2025-10-07 19:12:47,592 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23161155:ctest-vn-15113301 virtual network link through opserver 10.0.0.27
2025-10-07 19:12:47,592 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-10-07 19:12:47,602 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23161155:ctest-vn-15113301', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23161155:ctest-vn-15113301?flat'}
2025-10-07 19:12:47,602 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23161155:ctest-vn-15113301 is found in opserver
2025-10-07 19:12:47,613 - DEBUG - Do not have enough data to verify VN in agent
2025-10-07 19:12:47,618 - DEBUG - VRF ids for VN ctest-vn-15113301: {}
2025-10-07 19:12:47,695 - DEBUG - Services list from nova: [