2025-09-13 23:17:55,774 - INFO - Domain Default found not creating
2025-09-13 23:17:55,927 - INFO - Project ctest-TestBasicPolicy-23062338 not found, creating it
2025-09-13 23:17:56,417 - INFO - Created Project:ctest-TestBasicPolicy-23062338, ID : 2ec86055-b4a3-4f0a-99ee-bb9260e33dd2
2025-09-13 23:17:57,907 - INFO - ================================================================================
2025-09-13 23:17:57,907 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-13 23:17:57,907 - 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-09-13 23:17:58,160 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2025-09-13 23:17:58,160 - INFO - Initial checks done. Running the testcase now
2025-09-13 23:17:58,160 - INFO -
2025-09-13 23:17:58,707 - DEBUG - Response for create_network : {'network': {'id': '7f4ade06-1382-4e48-a349-ece5bb320f05', 'name': 'ctest-vn-60293095', 'tenant_id': '2ec86055b4a34f0a99eebb9260e33dd2', 'project_id': '2ec86055b4a34f0a99eebb9260e33dd2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23062338', 'ctest-vn-60293095'], 'port_security_enabled': True, 'description': ''}}
2025-09-13 23:17:58,898 - DEBUG - Response for create_subnet : {'subnet': {'id': '2e12119e-9d3f-4734-806d-9504ad2ab9d6', 'name': '', 'tenant_id': '2ec86055b4a34f0a99eebb9260e33dd2', 'network_id': '7f4ade06-1382-4e48-a349-ece5bb320f05', 'ip_version': 4, 'cidr': '134.81.163.64/26', 'allocation_pools': [{'start': '134.81.163.66', 'end': '134.81.163.126'}], 'gateway_ip': '134.81.163.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.81.163.66', 'tags': [], 'project_id': '2ec86055b4a34f0a99eebb9260e33dd2'}}
2025-09-13 23:17:58,916 - INFO - Created VN ctest-vn-60293095
2025-09-13 23:17:58,967 - DEBUG - VN ctest-vn-60293095 UUID is 7f4ade06-1382-4e48-a349-ece5bb320f05
2025-09-13 23:17:59,242 - DEBUG - Response for create_network : {'network': {'id': '7d704fe0-8750-4afb-ad10-5e3a17604f93', 'name': 'ctest-vn-50171174', 'tenant_id': '2ec86055b4a34f0a99eebb9260e33dd2', 'project_id': '2ec86055b4a34f0a99eebb9260e33dd2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23062338', 'ctest-vn-50171174'], 'port_security_enabled': True, 'description': ''}}
2025-09-13 23:17:59,453 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd4b23daf-8055-4e32-b2db-aecee6edaea3', 'name': '', 'tenant_id': '2ec86055b4a34f0a99eebb9260e33dd2', 'network_id': '7d704fe0-8750-4afb-ad10-5e3a17604f93', 'ip_version': 4, 'cidr': '111.126.24.0/26', 'allocation_pools': [{'start': '111.126.24.2', 'end': '111.126.24.62'}], 'gateway_ip': '111.126.24.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.126.24.2', 'tags': [], 'project_id': '2ec86055b4a34f0a99eebb9260e33dd2'}}
2025-09-13 23:17:59,471 - INFO - Created VN ctest-vn-50171174
2025-09-13 23:17:59,523 - DEBUG - VN ctest-vn-50171174 UUID is 7d704fe0-8750-4afb-ad10-5e3a17604f93
2025-09-13 23:17:59,679 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-23062338:ctest-vn-60293095, 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-23062338:ctest-vn-50171174, 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-09-13 23:17:59,986 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7f4ade06-1382-4e48-a349-ece5bb320f05', 'name': 'ctest-vn-60293095', 'tenant_id': '2ec86055b4a34f0a99eebb9260e33dd2', 'project_id': '2ec86055b4a34f0a99eebb9260e33dd2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2e12119e-9d3f-4734-806d-9504ad2ab9d6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23062338', 'ctest-vn-60293095'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23062338', 'ctest-policy-allow-all-45335632']], 'subnet_ipam': [{'subnet_cidr': '134.81.163.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-13 23:18:00,217 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7d704fe0-8750-4afb-ad10-5e3a17604f93', 'name': 'ctest-vn-50171174', 'tenant_id': '2ec86055b4a34f0a99eebb9260e33dd2', 'project_id': '2ec86055b4a34f0a99eebb9260e33dd2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d4b23daf-8055-4e32-b2db-aecee6edaea3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23062338', 'ctest-vn-50171174'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23062338', 'ctest-policy-allow-all-45335632']], 'subnet_ipam': [{'subnet_cidr': '111.126.24.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-13 23:18:00,375 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-13 23:18:00,688 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-13 23:18:00,720 - DEBUG - Requesting: http://10.0.0.22:8082/domain/fc53a9f6-5c43-4bac-b584-7fc39fee9d55
2025-09-13 23:18:00,733 - DEBUG - Requesting: http://10.0.0.22:8082/project/2ec86055-b4a3-4f0a-99ee-bb9260e33dd2
2025-09-13 23:18:00,810 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7f4ade06-1382-4e48-a349-ece5bb320f05
2025-09-13 23:18:00,821 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7f4ade06-1382-4e48-a349-ece5bb320f05
2025-09-13 23:18:00,830 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2da2947a-0bef-4a3f-9a30-e1b5adb1d81a
2025-09-13 23:18:00,839 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2da2947a-0bef-4a3f-9a30-e1b5adb1d81a
2025-09-13 23:18:00,848 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5bff77ee-2b6e-4945-9355-82ff76fadd15
2025-09-13 23:18:00,854 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-13 23:18:00,855 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7f4ade06-1382-4e48-a349-ece5bb320f05
2025-09-13 23:18:00,869 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2da2947a-0bef-4a3f-9a30-e1b5adb1d81a
2025-09-13 23:18:00,885 - INFO - Verified VN network id 11 for VN 7f4ade06-1382-4e48-a349-ece5bb320f05
2025-09-13 23:18:00,885 - INFO - Verifications in API Server for VN ctest-vn-60293095 passed
2025-09-13 23:18:00,885 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7f4ade06-1382-4e48-a349-ece5bb320f05
2025-09-13 23:18:00,896 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2da2947a-0bef-4a3f-9a30-e1b5adb1d81a
2025-09-13 23:18:00,903 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2da2947a-0bef-4a3f-9a30-e1b5adb1d81a
2025-09-13 23:18:00,913 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5bff77ee-2b6e-4945-9355-82ff76fadd15
2025-09-13 23:18:00,926 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23062338:ctest-vn-60293095', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23062338', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9172387708771913288', 'uuid-lslong': '11766195972914417413'}, 'enable': 'true', 'created': '2025-09-13T23:17:58', 'last-modified': '2025-09-13T23:17:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.977291'}
2025-09-13 23:18:00,933 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-13 23:18:00,933 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60293095 passed
2025-09-13 23:18:00,933 - DEBUG - ====Verifying policy data for ctest-vn-60293095 in API_Server ======
2025-09-13 23:18:00,933 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-13 23:18:00,939 - DEBUG - Requesting: http://10.0.0.22:8082/domain/fc53a9f6-5c43-4bac-b584-7fc39fee9d55
2025-09-13 23:18:00,950 - DEBUG - Requesting: http://10.0.0.22:8082/project/2ec86055-b4a3-4f0a-99ee-bb9260e33dd2
2025-09-13 23:18:01,036 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7f4ade06-1382-4e48-a349-ece5bb320f05
2025-09-13 23:18:01,047 - DEBUG - ==>Verifying data for policy with id: 811a2447-d10e-4fe2-9471-f67534a9e541, fqn: ['default-domain', 'ctest-TestBasicPolicy-23062338', 'ctest-policy-allow-all-45335632']
2025-09-13 23:18:01,047 - INFO - VN ctest-vn-60293095 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-13 23:18:01,047 - DEBUG - Verifying the vn in opserver
2025-09-13 23:18:01,047 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23062338:ctest-vn-60293095 virtual network link through opserver 10.0.0.22
2025-09-13 23:18:01,047 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-13 23:18:01,357 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-13 23:18:01,423 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23062338:ctest-vn-60293095', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23062338:ctest-vn-60293095?flat'}
2025-09-13 23:18:01,424 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23062338:ctest-vn-60293095 is found in opserver
2025-09-13 23:18:01,435 - DEBUG - Do not have enough data to verify VN in agent
2025-09-13 23:18:01,440 - DEBUG - VRF ids for VN ctest-vn-60293095: {}
2025-09-13 23:18:01,440 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-13 23:18:01,446 - DEBUG - Requesting: http://10.0.0.22:8082/domain/fc53a9f6-5c43-4bac-b584-7fc39fee9d55
2025-09-13 23:18:01,459 - DEBUG - Requesting: http://10.0.0.22:8082/project/2ec86055-b4a3-4f0a-99ee-bb9260e33dd2
2025-09-13 23:18:01,540 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7d704fe0-8750-4afb-ad10-5e3a17604f93
2025-09-13 23:18:01,555 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7d704fe0-8750-4afb-ad10-5e3a17604f93
2025-09-13 23:18:01,567 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4ed8ed6b-6af6-4b8a-9da8-50d8a994c358
2025-09-13 23:18:01,577 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4ed8ed6b-6af6-4b8a-9da8-50d8a994c358
2025-09-13 23:18:01,585 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5bad890b-5b10-4c5f-83ae-ba0c3a97b3c9
2025-09-13 23:18:01,594 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-13 23:18:01,594 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7d704fe0-8750-4afb-ad10-5e3a17604f93
2025-09-13 23:18:01,604 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4ed8ed6b-6af6-4b8a-9da8-50d8a994c358
2025-09-13 23:18:01,621 - INFO - Verified VN network id 12 for VN 7d704fe0-8750-4afb-ad10-5e3a17604f93
2025-09-13 23:18:01,621 - INFO - Verifications in API Server for VN ctest-vn-50171174 passed
2025-09-13 23:18:01,621 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7d704fe0-8750-4afb-ad10-5e3a17604f93
2025-09-13 23:18:01,632 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4ed8ed6b-6af6-4b8a-9da8-50d8a994c358
2025-09-13 23:18:01,642 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4ed8ed6b-6af6-4b8a-9da8-50d8a994c358
2025-09-13 23:18:01,649 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5bad890b-5b10-4c5f-83ae-ba0c3a97b3c9
2025-09-13 23:18:01,661 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23062338:ctest-vn-50171174', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23062338', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9038812277894040315', 'uuid-lslong': '12470570971782205331'}, 'enable': 'true', 'created': '2025-09-13T23:17:59', 'last-modified': '2025-09-13T23:18:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.459506'}
2025-09-13 23:18:01,668 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-13 23:18:01,668 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50171174 passed
2025-09-13 23:18:01,668 - DEBUG - ====Verifying policy data for ctest-vn-50171174 in API_Server ======
2025-09-13 23:18:01,668 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-13 23:18:01,674 - DEBUG - Requesting: http://10.0.0.22:8082/domain/fc53a9f6-5c43-4bac-b584-7fc39fee9d55
2025-09-13 23:18:01,686 - DEBUG - Requesting: http://10.0.0.22:8082/project/2ec86055-b4a3-4f0a-99ee-bb9260e33dd2
2025-09-13 23:18:01,761 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7d704fe0-8750-4afb-ad10-5e3a17604f93
2025-09-13 23:18:01,772 - DEBUG - ==>Verifying data for policy with id: 811a2447-d10e-4fe2-9471-f67534a9e541, fqn: ['default-domain', 'ctest-TestBasicPolicy-23062338', 'ctest-policy-allow-all-45335632']
2025-09-13 23:18:01,772 - INFO - VN ctest-vn-50171174 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-13 23:18:01,772 - DEBUG - Verifying the vn in opserver
2025-09-13 23:18:01,772 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23062338:ctest-vn-50171174 virtual network link through opserver 10.0.0.22
2025-09-13 23:18:01,772 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-13 23:18:01,783 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23062338:ctest-vn-50171174', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23062338:ctest-vn-50171174?flat'}
2025-09-13 23:18:01,783 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23062338:ctest-vn-50171174 is found in opserver
2025-09-13 23:18:01,793 - DEBUG - Do not have enough data to verify VN in agent
2025-09-13 23:18:01,798 - DEBUG - VRF ids for VN ctest-vn-50171174: {}
2025-09-13 23:18:01,864 - DEBUG - Services list from nova: [