2025-08-03 09:40:22,982 - INFO - Domain Default found not creating
2025-08-03 09:40:23,148 - INFO - Project ctest-TestBasicPolicy-15935762 not found, creating it
2025-08-03 09:40:23,645 - INFO - Created Project:ctest-TestBasicPolicy-15935762, ID : 1176a1ea-ee20-4b64-b6df-2ebd703edd98
2025-08-03 09:40:25,360 - INFO - ================================================================================
2025-08-03 09:40:25,360 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-03 09:40:25,360 - 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-08-03 09:40:25,621 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with
2025-08-03 09:40:25,621 - INFO - Initial checks done. Running the testcase now
2025-08-03 09:40:25,621 - INFO -
2025-08-03 09:40:26,258 - DEBUG - Response for create_network : {'network': {'id': 'f821dc68-e004-46c7-9ed6-3d8862048644', 'name': 'ctest-vn-82408154', 'tenant_id': '1176a1eaee204b64b6df2ebd703edd98', 'project_id': '1176a1eaee204b64b6df2ebd703edd98', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15935762', 'ctest-vn-82408154'], 'port_security_enabled': True, 'description': ''}}
2025-08-03 09:40:26,465 - DEBUG - Response for create_subnet : {'subnet': {'id': '0883b429-fd6d-4788-8047-d843d43726e8', 'name': '', 'tenant_id': '1176a1eaee204b64b6df2ebd703edd98', 'network_id': 'f821dc68-e004-46c7-9ed6-3d8862048644', 'ip_version': 4, 'cidr': '79.192.47.64/26', 'allocation_pools': [{'start': '79.192.47.66', 'end': '79.192.47.126'}], 'gateway_ip': '79.192.47.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.192.47.66', 'tags': [], 'project_id': '1176a1eaee204b64b6df2ebd703edd98'}}
2025-08-03 09:40:26,485 - INFO - Created VN ctest-vn-82408154
2025-08-03 09:40:26,539 - DEBUG - VN ctest-vn-82408154 UUID is f821dc68-e004-46c7-9ed6-3d8862048644
2025-08-03 09:40:26,883 - DEBUG - Response for create_network : {'network': {'id': '5966245e-d703-4d6d-8427-448e97168500', 'name': 'ctest-vn-04428045', 'tenant_id': '1176a1eaee204b64b6df2ebd703edd98', 'project_id': '1176a1eaee204b64b6df2ebd703edd98', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15935762', 'ctest-vn-04428045'], 'port_security_enabled': True, 'description': ''}}
2025-08-03 09:40:27,116 - DEBUG - Response for create_subnet : {'subnet': {'id': '0d9043a6-5169-45bd-9b05-4c85e491603f', 'name': '', 'tenant_id': '1176a1eaee204b64b6df2ebd703edd98', 'network_id': '5966245e-d703-4d6d-8427-448e97168500', 'ip_version': 4, 'cidr': '38.41.235.0/26', 'allocation_pools': [{'start': '38.41.235.2', 'end': '38.41.235.62'}], 'gateway_ip': '38.41.235.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.41.235.2', 'tags': [], 'project_id': '1176a1eaee204b64b6df2ebd703edd98'}}
2025-08-03 09:40:27,143 - INFO - Created VN ctest-vn-04428045
2025-08-03 09:40:27,199 - DEBUG - VN ctest-vn-04428045 UUID is 5966245e-d703-4d6d-8427-448e97168500
2025-08-03 09:40:27,332 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-15935762:ctest-vn-82408154, 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-15935762:ctest-vn-04428045, 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-08-03 09:40:27,673 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f821dc68-e004-46c7-9ed6-3d8862048644', 'name': 'ctest-vn-82408154', 'tenant_id': '1176a1eaee204b64b6df2ebd703edd98', 'project_id': '1176a1eaee204b64b6df2ebd703edd98', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0883b429-fd6d-4788-8047-d843d43726e8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15935762', 'ctest-vn-82408154'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15935762', 'ctest-policy-allow-all-10766399']], 'subnet_ipam': [{'subnet_cidr': '79.192.47.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-03 09:40:27,936 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5966245e-d703-4d6d-8427-448e97168500', 'name': 'ctest-vn-04428045', 'tenant_id': '1176a1eaee204b64b6df2ebd703edd98', 'project_id': '1176a1eaee204b64b6df2ebd703edd98', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0d9043a6-5169-45bd-9b05-4c85e491603f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15935762', 'ctest-vn-04428045'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15935762', 'ctest-policy-allow-all-10766399']], 'subnet_ipam': [{'subnet_cidr': '38.41.235.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-03 09:40:28,107 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-08-03 09:40:28,442 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-08-03 09:40:28,472 - DEBUG - Requesting: http://10.0.0.48:8082/domain/b8467dcd-5303-4731-b68c-74cf5310116b
2025-08-03 09:40:28,487 - DEBUG - Requesting: http://10.0.0.48:8082/project/1176a1ea-ee20-4b64-b6df-2ebd703edd98
2025-08-03 09:40:28,568 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f821dc68-e004-46c7-9ed6-3d8862048644
2025-08-03 09:40:28,581 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f821dc68-e004-46c7-9ed6-3d8862048644
2025-08-03 09:40:28,592 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/7ca8ba98-7192-4040-88ee-3ab88b604717
2025-08-03 09:40:28,603 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/7ca8ba98-7192-4040-88ee-3ab88b604717
2025-08-03 09:40:28,613 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/a0d31445-5989-4612-8f0e-8fec72ad0dbd
2025-08-03 09:40:28,624 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-03 09:40:28,624 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f821dc68-e004-46c7-9ed6-3d8862048644
2025-08-03 09:40:28,639 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/7ca8ba98-7192-4040-88ee-3ab88b604717
2025-08-03 09:40:28,659 - INFO - Verified VN network id 11 for VN f821dc68-e004-46c7-9ed6-3d8862048644
2025-08-03 09:40:28,660 - INFO - Verifications in API Server for VN ctest-vn-82408154 passed
2025-08-03 09:40:28,662 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f821dc68-e004-46c7-9ed6-3d8862048644
2025-08-03 09:40:28,678 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/7ca8ba98-7192-4040-88ee-3ab88b604717
2025-08-03 09:40:28,689 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/7ca8ba98-7192-4040-88ee-3ab88b604717
2025-08-03 09:40:28,700 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/a0d31445-5989-4612-8f0e-8fec72ad0dbd
2025-08-03 09:40:28,718 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15935762:ctest-vn-82408154', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15935762', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17879814338630665927', 'uuid-lslong': '11445403158978004548'}, 'enable': 'true', 'created': '2025-08-03T09:40:26', 'last-modified': '2025-08-03T09:40:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.082746'}
2025-08-03 09:40:28,726 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-03 09:40:28,726 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82408154 passed
2025-08-03 09:40:28,726 - DEBUG - ====Verifying policy data for ctest-vn-82408154 in API_Server ======
2025-08-03 09:40:28,726 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-08-03 09:40:28,733 - DEBUG - Requesting: http://10.0.0.48:8082/domain/b8467dcd-5303-4731-b68c-74cf5310116b
2025-08-03 09:40:28,746 - DEBUG - Requesting: http://10.0.0.48:8082/project/1176a1ea-ee20-4b64-b6df-2ebd703edd98
2025-08-03 09:40:28,821 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/f821dc68-e004-46c7-9ed6-3d8862048644
2025-08-03 09:40:28,833 - DEBUG - ==>Verifying data for policy with id: 0884a06c-d205-4337-898f-bf06edf97341, fqn: ['default-domain', 'ctest-TestBasicPolicy-15935762', 'ctest-policy-allow-all-10766399']
2025-08-03 09:40:28,834 - INFO - VN ctest-vn-82408154 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-03 09:40:28,834 - DEBUG - Verifying the vn in opserver
2025-08-03 09:40:28,834 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15935762:ctest-vn-82408154 virtual network link through opserver 10.0.0.48
2025-08-03 09:40:28,834 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-08-03 09:40:29,167 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-08-03 09:40:29,231 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15935762:ctest-vn-82408154', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15935762:ctest-vn-82408154?flat'}
2025-08-03 09:40:29,231 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15935762:ctest-vn-82408154 is found in opserver
2025-08-03 09:40:29,243 - DEBUG - Do not have enough data to verify VN in agent
2025-08-03 09:40:29,249 - DEBUG - VRF ids for VN ctest-vn-82408154: {}
2025-08-03 09:40:29,250 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-08-03 09:40:29,256 - DEBUG - Requesting: http://10.0.0.48:8082/domain/b8467dcd-5303-4731-b68c-74cf5310116b
2025-08-03 09:40:29,269 - DEBUG - Requesting: http://10.0.0.48:8082/project/1176a1ea-ee20-4b64-b6df-2ebd703edd98
2025-08-03 09:40:29,347 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/5966245e-d703-4d6d-8427-448e97168500
2025-08-03 09:40:29,361 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/5966245e-d703-4d6d-8427-448e97168500
2025-08-03 09:40:29,372 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ac2bf1fb-485a-4f32-81d3-8d95b6209458
2025-08-03 09:40:29,381 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ac2bf1fb-485a-4f32-81d3-8d95b6209458
2025-08-03 09:40:29,391 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/9126af10-7b99-4a28-8464-2dc09b9388b5
2025-08-03 09:40:29,399 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-03 09:40:29,400 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/5966245e-d703-4d6d-8427-448e97168500
2025-08-03 09:40:29,413 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ac2bf1fb-485a-4f32-81d3-8d95b6209458
2025-08-03 09:40:29,434 - INFO - Verified VN network id 12 for VN 5966245e-d703-4d6d-8427-448e97168500
2025-08-03 09:40:29,434 - INFO - Verifications in API Server for VN ctest-vn-04428045 passed
2025-08-03 09:40:29,434 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/5966245e-d703-4d6d-8427-448e97168500
2025-08-03 09:40:29,449 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ac2bf1fb-485a-4f32-81d3-8d95b6209458
2025-08-03 09:40:29,458 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ac2bf1fb-485a-4f32-81d3-8d95b6209458
2025-08-03 09:40:29,466 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/9126af10-7b99-4a28-8464-2dc09b9388b5
2025-08-03 09:40:29,480 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15935762:ctest-vn-04428045', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15935762', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6441876306752916845', 'uuid-lslong': '9522655316309083392'}, 'enable': 'true', 'created': '2025-08-03T09:40:26', 'last-modified': '2025-08-03T09:40:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.575232'}
2025-08-03 09:40:29,487 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-03 09:40:29,487 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04428045 passed
2025-08-03 09:40:29,488 - DEBUG - ====Verifying policy data for ctest-vn-04428045 in API_Server ======
2025-08-03 09:40:29,488 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-08-03 09:40:29,494 - DEBUG - Requesting: http://10.0.0.48:8082/domain/b8467dcd-5303-4731-b68c-74cf5310116b
2025-08-03 09:40:29,507 - DEBUG - Requesting: http://10.0.0.48:8082/project/1176a1ea-ee20-4b64-b6df-2ebd703edd98
2025-08-03 09:40:29,585 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/5966245e-d703-4d6d-8427-448e97168500
2025-08-03 09:40:29,597 - DEBUG - ==>Verifying data for policy with id: 0884a06c-d205-4337-898f-bf06edf97341, fqn: ['default-domain', 'ctest-TestBasicPolicy-15935762', 'ctest-policy-allow-all-10766399']
2025-08-03 09:40:29,597 - INFO - VN ctest-vn-04428045 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-03 09:40:29,597 - DEBUG - Verifying the vn in opserver
2025-08-03 09:40:29,597 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15935762:ctest-vn-04428045 virtual network link through opserver 10.0.0.48
2025-08-03 09:40:29,597 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-08-03 09:40:29,610 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15935762:ctest-vn-04428045', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15935762:ctest-vn-04428045?flat'}
2025-08-03 09:40:29,610 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15935762:ctest-vn-04428045 is found in opserver
2025-08-03 09:40:29,624 - DEBUG - Do not have enough data to verify VN in agent
2025-08-03 09:40:29,632 - DEBUG - VRF ids for VN ctest-vn-04428045: {}
2025-08-03 09:40:29,698 - DEBUG - Services list from nova: [