2025-12-25 02:00:57,804 - INFO - Domain Default found not creating
2025-12-25 02:00:57,953 - INFO - Project ctest-TestBasicPolicy-31207442 not found, creating it
2025-12-25 02:00:58,386 - INFO - Created Project:ctest-TestBasicPolicy-31207442, ID : e93720d8-58e2-49dc-8c8f-12baf01a05c3
2025-12-25 02:00:59,819 - INFO - ================================================================================
2025-12-25 02:00:59,819 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-25 02:00:59,820 - 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-25 02:01:00,075 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2025-12-25 02:01:00,075 - INFO - Initial checks done. Running the testcase now
2025-12-25 02:01:00,075 - INFO -
2025-12-25 02:01:00,619 - DEBUG - Response for create_network : {'network': {'id': 'db03fa72-ddb4-4dcb-b67e-68281791626f', 'name': 'ctest-vn-66956435', 'tenant_id': 'e93720d858e249dc8c8f12baf01a05c3', 'project_id': 'e93720d858e249dc8c8f12baf01a05c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31207442', 'ctest-vn-66956435'], 'port_security_enabled': True, 'description': ''}}
2025-12-25 02:01:00,839 - DEBUG - Response for create_subnet : {'subnet': {'id': '6d522e1a-24fa-4210-af7e-8d104b795052', 'name': '', 'tenant_id': 'e93720d858e249dc8c8f12baf01a05c3', 'network_id': 'db03fa72-ddb4-4dcb-b67e-68281791626f', 'ip_version': 4, 'cidr': '113.53.163.128/26', 'allocation_pools': [{'start': '113.53.163.130', 'end': '113.53.163.190'}], 'gateway_ip': '113.53.163.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '113.53.163.130', 'tags': [], 'project_id': 'e93720d858e249dc8c8f12baf01a05c3'}}
2025-12-25 02:01:00,856 - INFO - Created VN ctest-vn-66956435
2025-12-25 02:01:00,909 - DEBUG - VN ctest-vn-66956435 UUID is db03fa72-ddb4-4dcb-b67e-68281791626f
2025-12-25 02:01:01,191 - DEBUG - Response for create_network : {'network': {'id': '47607a61-165a-4c25-9cc7-ba206819b58f', 'name': 'ctest-vn-51819365', 'tenant_id': 'e93720d858e249dc8c8f12baf01a05c3', 'project_id': 'e93720d858e249dc8c8f12baf01a05c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31207442', 'ctest-vn-51819365'], 'port_security_enabled': True, 'description': ''}}
2025-12-25 02:01:01,356 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b0c52f9e-c34c-47e8-9923-77c5bd49dd48', 'name': '', 'tenant_id': 'e93720d858e249dc8c8f12baf01a05c3', 'network_id': '47607a61-165a-4c25-9cc7-ba206819b58f', 'ip_version': 4, 'cidr': '34.90.173.0/26', 'allocation_pools': [{'start': '34.90.173.2', 'end': '34.90.173.62'}], 'gateway_ip': '34.90.173.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34.90.173.2', 'tags': [], 'project_id': 'e93720d858e249dc8c8f12baf01a05c3'}}
2025-12-25 02:01:01,371 - INFO - Created VN ctest-vn-51819365
2025-12-25 02:01:01,421 - DEBUG - VN ctest-vn-51819365 UUID is 47607a61-165a-4c25-9cc7-ba206819b58f
2025-12-25 02:01:01,568 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-31207442:ctest-vn-66956435, 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-31207442:ctest-vn-51819365, 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-25 02:01:01,852 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'db03fa72-ddb4-4dcb-b67e-68281791626f', 'name': 'ctest-vn-66956435', 'tenant_id': 'e93720d858e249dc8c8f12baf01a05c3', 'project_id': 'e93720d858e249dc8c8f12baf01a05c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6d522e1a-24fa-4210-af7e-8d104b795052'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31207442', 'ctest-vn-66956435'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31207442', 'ctest-policy-allow-all-40997146']], 'subnet_ipam': [{'subnet_cidr': '113.53.163.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-25 02:01:02,118 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '47607a61-165a-4c25-9cc7-ba206819b58f', 'name': 'ctest-vn-51819365', 'tenant_id': 'e93720d858e249dc8c8f12baf01a05c3', 'project_id': 'e93720d858e249dc8c8f12baf01a05c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b0c52f9e-c34c-47e8-9923-77c5bd49dd48'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31207442', 'ctest-vn-51819365'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31207442', 'ctest-policy-allow-all-40997146']], 'subnet_ipam': [{'subnet_cidr': '34.90.173.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-25 02:01:02,277 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-12-25 02:01:02,573 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-12-25 02:01:02,603 - DEBUG - Requesting: http://10.0.0.22:8082/domain/add8fa73-cb5b-49f4-b156-2078b6c2f621
2025-12-25 02:01:02,613 - DEBUG - Requesting: http://10.0.0.22:8082/project/e93720d8-58e2-49dc-8c8f-12baf01a05c3
2025-12-25 02:01:02,682 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/db03fa72-ddb4-4dcb-b67e-68281791626f
2025-12-25 02:01:02,690 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/db03fa72-ddb4-4dcb-b67e-68281791626f
2025-12-25 02:01:02,699 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3efafb0a-6b42-41d0-8a64-e559e8f220ae
2025-12-25 02:01:02,706 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3efafb0a-6b42-41d0-8a64-e559e8f220ae
2025-12-25 02:01:02,712 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e81475a5-0b90-49f7-8f2e-0bc61c8a844c
2025-12-25 02:01:02,717 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-25 02:01:02,717 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/db03fa72-ddb4-4dcb-b67e-68281791626f
2025-12-25 02:01:02,726 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3efafb0a-6b42-41d0-8a64-e559e8f220ae
2025-12-25 02:01:02,737 - INFO - Verified VN network id 12 for VN db03fa72-ddb4-4dcb-b67e-68281791626f
2025-12-25 02:01:02,737 - INFO - Verifications in API Server for VN ctest-vn-66956435 passed
2025-12-25 02:01:02,737 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/db03fa72-ddb4-4dcb-b67e-68281791626f
2025-12-25 02:01:02,745 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3efafb0a-6b42-41d0-8a64-e559e8f220ae
2025-12-25 02:01:02,750 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3efafb0a-6b42-41d0-8a64-e559e8f220ae
2025-12-25 02:01:02,755 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e81475a5-0b90-49f7-8f2e-0bc61c8a844c
2025-12-25 02:01:02,764 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31207442:ctest-vn-66956435', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31207442', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15781732890489146827', 'uuid-lslong': '13150062483371811439'}, 'enable': 'true', 'created': '2025-12-25T02:01:00', 'last-modified': '2025-12-25T02:01:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.931338'}
2025-12-25 02:01:02,769 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-25 02:01:02,769 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66956435 passed
2025-12-25 02:01:02,769 - DEBUG - ====Verifying policy data for ctest-vn-66956435 in API_Server ======
2025-12-25 02:01:02,769 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-12-25 02:01:02,774 - DEBUG - Requesting: http://10.0.0.22:8082/domain/add8fa73-cb5b-49f4-b156-2078b6c2f621
2025-12-25 02:01:02,784 - DEBUG - Requesting: http://10.0.0.22:8082/project/e93720d8-58e2-49dc-8c8f-12baf01a05c3
2025-12-25 02:01:02,853 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/db03fa72-ddb4-4dcb-b67e-68281791626f
2025-12-25 02:01:02,861 - DEBUG - ==>Verifying data for policy with id: ce1daba9-da8c-43b6-9286-a5eeb8c19831, fqn: ['default-domain', 'ctest-TestBasicPolicy-31207442', 'ctest-policy-allow-all-40997146']
2025-12-25 02:01:02,861 - INFO - VN ctest-vn-66956435 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-25 02:01:02,861 - DEBUG - Verifying the vn in opserver
2025-12-25 02:01:02,861 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31207442:ctest-vn-66956435 virtual network link through opserver 10.0.0.22
2025-12-25 02:01:02,861 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-12-25 02:01:03,155 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-12-25 02:01:03,213 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31207442:ctest-vn-66956435', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31207442:ctest-vn-66956435?flat'}
2025-12-25 02:01:03,213 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31207442:ctest-vn-66956435 is found in opserver
2025-12-25 02:01:03,221 - DEBUG - Do not have enough data to verify VN in agent
2025-12-25 02:01:03,225 - DEBUG - VRF ids for VN ctest-vn-66956435: {}
2025-12-25 02:01:03,225 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-12-25 02:01:03,229 - DEBUG - Requesting: http://10.0.0.22:8082/domain/add8fa73-cb5b-49f4-b156-2078b6c2f621
2025-12-25 02:01:03,239 - DEBUG - Requesting: http://10.0.0.22:8082/project/e93720d8-58e2-49dc-8c8f-12baf01a05c3
2025-12-25 02:01:03,307 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/47607a61-165a-4c25-9cc7-ba206819b58f
2025-12-25 02:01:03,318 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/47607a61-165a-4c25-9cc7-ba206819b58f
2025-12-25 02:01:03,325 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5f19c813-6476-4481-bd21-1fb01edf437b
2025-12-25 02:01:03,331 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5f19c813-6476-4481-bd21-1fb01edf437b
2025-12-25 02:01:03,336 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/abc6f874-011e-4e15-b527-7e49bd24eac6
2025-12-25 02:01:03,342 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-25 02:01:03,342 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/47607a61-165a-4c25-9cc7-ba206819b58f
2025-12-25 02:01:03,349 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5f19c813-6476-4481-bd21-1fb01edf437b
2025-12-25 02:01:03,359 - INFO - Verified VN network id 13 for VN 47607a61-165a-4c25-9cc7-ba206819b58f
2025-12-25 02:01:03,360 - INFO - Verifications in API Server for VN ctest-vn-51819365 passed
2025-12-25 02:01:03,360 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/47607a61-165a-4c25-9cc7-ba206819b58f
2025-12-25 02:01:03,367 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5f19c813-6476-4481-bd21-1fb01edf437b
2025-12-25 02:01:03,373 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5f19c813-6476-4481-bd21-1fb01edf437b
2025-12-25 02:01:03,378 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/abc6f874-011e-4e15-b527-7e49bd24eac6
2025-12-25 02:01:03,387 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31207442:ctest-vn-51819365', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31207442', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5143245331862539301', 'uuid-lslong': '11297202838630413711'}, 'enable': 'true', 'created': '2025-12-25T02:01:01', 'last-modified': '2025-12-25T02:01:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.331758'}
2025-12-25 02:01:03,392 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-25 02:01:03,392 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51819365 passed
2025-12-25 02:01:03,392 - DEBUG - ====Verifying policy data for ctest-vn-51819365 in API_Server ======
2025-12-25 02:01:03,392 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-12-25 02:01:03,398 - DEBUG - Requesting: http://10.0.0.22:8082/domain/add8fa73-cb5b-49f4-b156-2078b6c2f621
2025-12-25 02:01:03,407 - DEBUG - Requesting: http://10.0.0.22:8082/project/e93720d8-58e2-49dc-8c8f-12baf01a05c3
2025-12-25 02:01:03,473 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/47607a61-165a-4c25-9cc7-ba206819b58f
2025-12-25 02:01:03,481 - DEBUG - ==>Verifying data for policy with id: ce1daba9-da8c-43b6-9286-a5eeb8c19831, fqn: ['default-domain', 'ctest-TestBasicPolicy-31207442', 'ctest-policy-allow-all-40997146']
2025-12-25 02:01:03,481 - INFO - VN ctest-vn-51819365 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-25 02:01:03,481 - DEBUG - Verifying the vn in opserver
2025-12-25 02:01:03,481 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31207442:ctest-vn-51819365 virtual network link through opserver 10.0.0.22
2025-12-25 02:01:03,481 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-12-25 02:01:03,491 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31207442:ctest-vn-51819365', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31207442:ctest-vn-51819365?flat'}
2025-12-25 02:01:03,491 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31207442:ctest-vn-51819365 is found in opserver
2025-12-25 02:01:03,499 - DEBUG - Do not have enough data to verify VN in agent
2025-12-25 02:01:03,502 - DEBUG - VRF ids for VN ctest-vn-51819365: {}
2025-12-25 02:01:03,555 - DEBUG - Services list from nova: [