2025-08-07 02:17:37,028 - INFO - Domain Default found not creating
2025-08-07 02:17:37,173 - INFO - Project ctest-TestBasicPolicy-83587108 not found, creating it
2025-08-07 02:17:37,641 - INFO - Created Project:ctest-TestBasicPolicy-83587108, ID : f06e820d-5a7b-49df-a279-6192f491a158
2025-08-07 02:17:39,250 - INFO - ================================================================================
2025-08-07 02:17:39,250 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-07 02:17:39,250 - 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-07 02:17:39,506 - DEBUG - Nothing to compare xmpp stats {'10.0.0.131': {'10.20.0.18': '0'}} with
2025-08-07 02:17:39,506 - INFO - Initial checks done. Running the testcase now
2025-08-07 02:17:39,506 - INFO -
2025-08-07 02:17:40,096 - DEBUG - Response for create_network : {'network': {'id': '4885799b-d582-44ce-bf96-a081f6219da5', 'name': 'ctest-vn-22892622', 'tenant_id': 'f06e820d5a7b49dfa2796192f491a158', 'project_id': 'f06e820d5a7b49dfa2796192f491a158', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83587108', 'ctest-vn-22892622'], 'port_security_enabled': True, 'description': ''}}
2025-08-07 02:17:40,263 - DEBUG - Response for create_subnet : {'subnet': {'id': '3e6d5847-b3cb-445a-a0b7-6b2b89f827f0', 'name': '', 'tenant_id': 'f06e820d5a7b49dfa2796192f491a158', 'network_id': '4885799b-d582-44ce-bf96-a081f6219da5', 'ip_version': 4, 'cidr': '219.24.140.192/26', 'allocation_pools': [{'start': '219.24.140.194', 'end': '219.24.140.254'}], 'gateway_ip': '219.24.140.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '219.24.140.194', 'tags': [], 'project_id': 'f06e820d5a7b49dfa2796192f491a158'}}
2025-08-07 02:17:40,284 - INFO - Created VN ctest-vn-22892622
2025-08-07 02:17:40,339 - DEBUG - VN ctest-vn-22892622 UUID is 4885799b-d582-44ce-bf96-a081f6219da5
2025-08-07 02:17:40,636 - DEBUG - Response for create_network : {'network': {'id': '15b6712b-05e2-4c69-a836-048987fb79ce', 'name': 'ctest-vn-44445801', 'tenant_id': 'f06e820d5a7b49dfa2796192f491a158', 'project_id': 'f06e820d5a7b49dfa2796192f491a158', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83587108', 'ctest-vn-44445801'], 'port_security_enabled': True, 'description': ''}}
2025-08-07 02:17:40,800 - DEBUG - Response for create_subnet : {'subnet': {'id': '74c36a51-41fa-417f-9336-6b801640ef80', 'name': '', 'tenant_id': 'f06e820d5a7b49dfa2796192f491a158', 'network_id': '15b6712b-05e2-4c69-a836-048987fb79ce', 'ip_version': 4, 'cidr': '40.59.7.0/26', 'allocation_pools': [{'start': '40.59.7.2', 'end': '40.59.7.62'}], 'gateway_ip': '40.59.7.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.59.7.2', 'tags': [], 'project_id': 'f06e820d5a7b49dfa2796192f491a158'}}
2025-08-07 02:17:40,819 - INFO - Created VN ctest-vn-44445801
2025-08-07 02:17:40,875 - DEBUG - VN ctest-vn-44445801 UUID is 15b6712b-05e2-4c69-a836-048987fb79ce
2025-08-07 02:17:41,001 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-83587108:ctest-vn-22892622, 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-83587108:ctest-vn-44445801, 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-07 02:17:41,317 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4885799b-d582-44ce-bf96-a081f6219da5', 'name': 'ctest-vn-22892622', 'tenant_id': 'f06e820d5a7b49dfa2796192f491a158', 'project_id': 'f06e820d5a7b49dfa2796192f491a158', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3e6d5847-b3cb-445a-a0b7-6b2b89f827f0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83587108', 'ctest-vn-22892622'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-83587108', 'ctest-policy-allow-all-79772668']], 'subnet_ipam': [{'subnet_cidr': '219.24.140.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-07 02:17:41,558 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '15b6712b-05e2-4c69-a836-048987fb79ce', 'name': 'ctest-vn-44445801', 'tenant_id': 'f06e820d5a7b49dfa2796192f491a158', 'project_id': 'f06e820d5a7b49dfa2796192f491a158', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['74c36a51-41fa-417f-9336-6b801640ef80'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83587108', 'ctest-vn-44445801'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-83587108', 'ctest-policy-allow-all-79772668']], 'subnet_ipam': [{'subnet_cidr': '40.59.7.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-07 02:17:41,708 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-08-07 02:17:42,043 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-08-07 02:17:42,074 - DEBUG - Requesting: http://10.0.0.131:8082/domain/38adb3fa-9213-48c4-ae9c-2e92b1e50df9
2025-08-07 02:17:42,090 - DEBUG - Requesting: http://10.0.0.131:8082/project/f06e820d-5a7b-49df-a279-6192f491a158
2025-08-07 02:17:42,167 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/4885799b-d582-44ce-bf96-a081f6219da5
2025-08-07 02:17:42,179 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/4885799b-d582-44ce-bf96-a081f6219da5
2025-08-07 02:17:42,189 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/14ddc8be-29a3-4d46-b410-b6ca170d4568
2025-08-07 02:17:42,198 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/14ddc8be-29a3-4d46-b410-b6ca170d4568
2025-08-07 02:17:42,206 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/7033a534-8afc-42d3-a7f6-a883fa22996e
2025-08-07 02:17:42,213 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-07 02:17:42,213 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/4885799b-d582-44ce-bf96-a081f6219da5
2025-08-07 02:17:42,226 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/14ddc8be-29a3-4d46-b410-b6ca170d4568
2025-08-07 02:17:42,244 - INFO - Verified VN network id 11 for VN 4885799b-d582-44ce-bf96-a081f6219da5
2025-08-07 02:17:42,244 - INFO - Verifications in API Server for VN ctest-vn-22892622 passed
2025-08-07 02:17:42,244 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/4885799b-d582-44ce-bf96-a081f6219da5
2025-08-07 02:17:42,256 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/14ddc8be-29a3-4d46-b410-b6ca170d4568
2025-08-07 02:17:42,264 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/14ddc8be-29a3-4d46-b410-b6ca170d4568
2025-08-07 02:17:42,272 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/7033a534-8afc-42d3-a7f6-a883fa22996e
2025-08-07 02:17:42,286 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-83587108:ctest-vn-22892622', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83587108', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5225716652842304718', 'uuid-lslong': '13805398187791457701'}, 'enable': 'true', 'created': '2025-08-07T02:17:40', 'last-modified': '2025-08-07T02:17:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.990964'}
2025-08-07 02:17:42,293 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-07 02:17:42,293 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22892622 passed
2025-08-07 02:17:42,293 - DEBUG - ====Verifying policy data for ctest-vn-22892622 in API_Server ======
2025-08-07 02:17:42,293 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-08-07 02:17:42,299 - DEBUG - Requesting: http://10.0.0.131:8082/domain/38adb3fa-9213-48c4-ae9c-2e92b1e50df9
2025-08-07 02:17:42,313 - DEBUG - Requesting: http://10.0.0.131:8082/project/f06e820d-5a7b-49df-a279-6192f491a158
2025-08-07 02:17:42,388 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/4885799b-d582-44ce-bf96-a081f6219da5
2025-08-07 02:17:42,401 - DEBUG - ==>Verifying data for policy with id: 09c82ed9-dcd3-47e7-9678-737817069198, fqn: ['default-domain', 'ctest-TestBasicPolicy-83587108', 'ctest-policy-allow-all-79772668']
2025-08-07 02:17:42,401 - INFO - VN ctest-vn-22892622 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-07 02:17:42,401 - DEBUG - Verifying the vn in opserver
2025-08-07 02:17:42,401 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-83587108:ctest-vn-22892622 virtual network link through opserver 10.0.0.131
2025-08-07 02:17:42,402 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks
2025-08-07 02:17:42,735 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks
2025-08-07 02:17:42,791 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-83587108:ctest-vn-22892622', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-83587108:ctest-vn-22892622?flat'}
2025-08-07 02:17:42,791 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-83587108:ctest-vn-22892622 is found in opserver
2025-08-07 02:17:42,803 - DEBUG - Do not have enough data to verify VN in agent
2025-08-07 02:17:42,810 - DEBUG - VRF ids for VN ctest-vn-22892622: {}
2025-08-07 02:17:42,810 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-08-07 02:17:42,816 - DEBUG - Requesting: http://10.0.0.131:8082/domain/38adb3fa-9213-48c4-ae9c-2e92b1e50df9
2025-08-07 02:17:42,828 - DEBUG - Requesting: http://10.0.0.131:8082/project/f06e820d-5a7b-49df-a279-6192f491a158
2025-08-07 02:17:42,901 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/15b6712b-05e2-4c69-a836-048987fb79ce
2025-08-07 02:17:42,916 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/15b6712b-05e2-4c69-a836-048987fb79ce
2025-08-07 02:17:42,926 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/1adf39d2-22d9-49c6-8627-2e6d008a873f
2025-08-07 02:17:42,935 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/1adf39d2-22d9-49c6-8627-2e6d008a873f
2025-08-07 02:17:42,943 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/00e6f6a9-3856-46e1-a7e5-825919f40ac3
2025-08-07 02:17:42,950 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-07 02:17:42,951 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/15b6712b-05e2-4c69-a836-048987fb79ce
2025-08-07 02:17:42,961 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/1adf39d2-22d9-49c6-8627-2e6d008a873f
2025-08-07 02:17:42,977 - INFO - Verified VN network id 12 for VN 15b6712b-05e2-4c69-a836-048987fb79ce
2025-08-07 02:17:42,977 - INFO - Verifications in API Server for VN ctest-vn-44445801 passed
2025-08-07 02:17:42,977 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/15b6712b-05e2-4c69-a836-048987fb79ce
2025-08-07 02:17:42,988 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/1adf39d2-22d9-49c6-8627-2e6d008a873f
2025-08-07 02:17:42,996 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/1adf39d2-22d9-49c6-8627-2e6d008a873f
2025-08-07 02:17:43,004 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/00e6f6a9-3856-46e1-a7e5-825919f40ac3
2025-08-07 02:17:43,019 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-83587108:ctest-vn-44445801', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83587108', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1564562350154075241', 'uuid-lslong': '12120880435852704206'}, 'enable': 'true', 'created': '2025-08-07T02:17:40', 'last-modified': '2025-08-07T02:17:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.484652'}
2025-08-07 02:17:43,026 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-07 02:17:43,026 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44445801 passed
2025-08-07 02:17:43,027 - DEBUG - ====Verifying policy data for ctest-vn-44445801 in API_Server ======
2025-08-07 02:17:43,027 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-08-07 02:17:43,034 - DEBUG - Requesting: http://10.0.0.131:8082/domain/38adb3fa-9213-48c4-ae9c-2e92b1e50df9
2025-08-07 02:17:43,048 - DEBUG - Requesting: http://10.0.0.131:8082/project/f06e820d-5a7b-49df-a279-6192f491a158
2025-08-07 02:17:43,123 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/15b6712b-05e2-4c69-a836-048987fb79ce
2025-08-07 02:17:43,135 - DEBUG - ==>Verifying data for policy with id: 09c82ed9-dcd3-47e7-9678-737817069198, fqn: ['default-domain', 'ctest-TestBasicPolicy-83587108', 'ctest-policy-allow-all-79772668']
2025-08-07 02:17:43,136 - INFO - VN ctest-vn-44445801 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-07 02:17:43,136 - DEBUG - Verifying the vn in opserver
2025-08-07 02:17:43,136 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-83587108:ctest-vn-44445801 virtual network link through opserver 10.0.0.131
2025-08-07 02:17:43,136 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks
2025-08-07 02:17:43,147 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-83587108:ctest-vn-44445801', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-83587108:ctest-vn-44445801?flat'}
2025-08-07 02:17:43,147 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-83587108:ctest-vn-44445801 is found in opserver
2025-08-07 02:17:43,160 - DEBUG - Do not have enough data to verify VN in agent
2025-08-07 02:17:43,165 - DEBUG - VRF ids for VN ctest-vn-44445801: {}
2025-08-07 02:17:43,225 - DEBUG - Services list from nova: [