2026-04-23 02:05:34,727 - INFO - Domain Default found not creating
2026-04-23 02:05:34,907 - INFO - Project ctest-TestBasicPolicy-44101166 not found, creating it
2026-04-23 02:05:35,414 - INFO - Created Project:ctest-TestBasicPolicy-44101166, ID : 07b164c3-e26d-4873-b377-06548e8524ea
2026-04-23 02:05:36,980 - INFO - ================================================================================
2026-04-23 02:05:36,980 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-23 02:05:36,980 - 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
2026-04-23 02:05:37,242 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.14': '0'}} with
2026-04-23 02:05:37,242 - INFO - Initial checks done. Running the testcase now
2026-04-23 02:05:37,242 - INFO -
2026-04-23 02:05:37,820 - DEBUG - Response for create_network : {'network': {'id': '360cd617-d88b-42b0-b8ee-3655de226ccf', 'name': 'ctest-vn-04484054', 'tenant_id': '07b164c3e26d4873b37706548e8524ea', 'project_id': '07b164c3e26d4873b37706548e8524ea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44101166', 'ctest-vn-04484054'], 'port_security_enabled': True, 'description': ''}}
2026-04-23 02:05:37,965 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f7d8c967-b607-4e51-83b8-2d236e5d9c07', 'name': '', 'tenant_id': '07b164c3e26d4873b37706548e8524ea', 'network_id': '360cd617-d88b-42b0-b8ee-3655de226ccf', 'ip_version': 4, 'cidr': '168.227.206.128/26', 'allocation_pools': [{'start': '168.227.206.130', 'end': '168.227.206.190'}], 'gateway_ip': '168.227.206.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.227.206.130', 'tags': [], 'project_id': '07b164c3e26d4873b37706548e8524ea'}}
2026-04-23 02:05:37,984 - INFO - Created VN ctest-vn-04484054
2026-04-23 02:05:38,035 - DEBUG - VN ctest-vn-04484054 UUID is 360cd617-d88b-42b0-b8ee-3655de226ccf
2026-04-23 02:05:38,362 - DEBUG - Response for create_network : {'network': {'id': '3d5f3e5e-1e18-417e-8d1a-7d6fe420be34', 'name': 'ctest-vn-67251116', 'tenant_id': '07b164c3e26d4873b37706548e8524ea', 'project_id': '07b164c3e26d4873b37706548e8524ea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44101166', 'ctest-vn-67251116'], 'port_security_enabled': True, 'description': ''}}
2026-04-23 02:05:38,550 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a783816b-65b2-4e68-b72e-d5a26f90a2d5', 'name': '', 'tenant_id': '07b164c3e26d4873b37706548e8524ea', 'network_id': '3d5f3e5e-1e18-417e-8d1a-7d6fe420be34', 'ip_version': 4, 'cidr': '122.236.102.0/26', 'allocation_pools': [{'start': '122.236.102.2', 'end': '122.236.102.62'}], 'gateway_ip': '122.236.102.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '122.236.102.2', 'tags': [], 'project_id': '07b164c3e26d4873b37706548e8524ea'}}
2026-04-23 02:05:38,570 - INFO - Created VN ctest-vn-67251116
2026-04-23 02:05:38,623 - DEBUG - VN ctest-vn-67251116 UUID is 3d5f3e5e-1e18-417e-8d1a-7d6fe420be34
2026-04-23 02:05:38,741 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-44101166:ctest-vn-04484054, 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-44101166:ctest-vn-67251116, 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]
2026-04-23 02:05:39,049 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '360cd617-d88b-42b0-b8ee-3655de226ccf', 'name': 'ctest-vn-04484054', 'tenant_id': '07b164c3e26d4873b37706548e8524ea', 'project_id': '07b164c3e26d4873b37706548e8524ea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f7d8c967-b607-4e51-83b8-2d236e5d9c07'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44101166', 'ctest-vn-04484054'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44101166', 'ctest-policy-allow-all-40450477']], 'subnet_ipam': [{'subnet_cidr': '168.227.206.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-23 02:05:39,279 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3d5f3e5e-1e18-417e-8d1a-7d6fe420be34', 'name': 'ctest-vn-67251116', 'tenant_id': '07b164c3e26d4873b37706548e8524ea', 'project_id': '07b164c3e26d4873b37706548e8524ea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a783816b-65b2-4e68-b72e-d5a26f90a2d5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44101166', 'ctest-vn-67251116'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44101166', 'ctest-policy-allow-all-40450477']], 'subnet_ipam': [{'subnet_cidr': '122.236.102.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-23 02:05:39,411 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2026-04-23 02:05:39,714 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2026-04-23 02:05:39,752 - DEBUG - Requesting: http://10.0.0.65:8082/domain/80bd9db2-2b8e-4dfe-951a-366b305c1b55
2026-04-23 02:05:39,769 - DEBUG - Requesting: http://10.0.0.65:8082/project/07b164c3-e26d-4873-b377-06548e8524ea
2026-04-23 02:05:39,856 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/360cd617-d88b-42b0-b8ee-3655de226ccf
2026-04-23 02:05:39,872 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/360cd617-d88b-42b0-b8ee-3655de226ccf
2026-04-23 02:05:39,884 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/a14c396b-4be4-45ac-afe7-08b25a1db267
2026-04-23 02:05:39,892 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/a14c396b-4be4-45ac-afe7-08b25a1db267
2026-04-23 02:05:39,901 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/6894078a-36a2-44d6-94ce-fd2cfbb79155
2026-04-23 02:05:39,910 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-23 02:05:39,910 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/360cd617-d88b-42b0-b8ee-3655de226ccf
2026-04-23 02:05:39,922 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/a14c396b-4be4-45ac-afe7-08b25a1db267
2026-04-23 02:05:39,939 - INFO - Verified VN network id 11 for VN 360cd617-d88b-42b0-b8ee-3655de226ccf
2026-04-23 02:05:39,939 - INFO - Verifications in API Server for VN ctest-vn-04484054 passed
2026-04-23 02:05:39,939 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/360cd617-d88b-42b0-b8ee-3655de226ccf
2026-04-23 02:05:39,951 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/a14c396b-4be4-45ac-afe7-08b25a1db267
2026-04-23 02:05:39,974 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/a14c396b-4be4-45ac-afe7-08b25a1db267
2026-04-23 02:05:39,989 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/6894078a-36a2-44d6-94ce-fd2cfbb79155
2026-04-23 02:05:40,003 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44101166:ctest-vn-04484054', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44101166', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3894723175674233520', 'uuid-lslong': '13325648089862794447'}, 'enable': 'true', 'created': '2026-04-23T02:05:37', 'last-modified': '2026-04-23T02:05:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.981377'}
2026-04-23 02:05:40,012 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-23 02:05:40,012 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04484054 passed
2026-04-23 02:05:40,012 - DEBUG - ====Verifying policy data for ctest-vn-04484054 in API_Server ======
2026-04-23 02:05:40,012 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2026-04-23 02:05:40,027 - DEBUG - Requesting: http://10.0.0.65:8082/domain/80bd9db2-2b8e-4dfe-951a-366b305c1b55
2026-04-23 02:05:40,071 - DEBUG - Requesting: http://10.0.0.65:8082/project/07b164c3-e26d-4873-b377-06548e8524ea
2026-04-23 02:05:40,184 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/360cd617-d88b-42b0-b8ee-3655de226ccf
2026-04-23 02:05:40,194 - DEBUG - ==>Verifying data for policy with id: 53287e58-75ac-4c39-bf49-b5945982ca1f, fqn: ['default-domain', 'ctest-TestBasicPolicy-44101166', 'ctest-policy-allow-all-40450477']
2026-04-23 02:05:40,194 - INFO - VN ctest-vn-04484054 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-23 02:05:40,194 - DEBUG - Verifying the vn in opserver
2026-04-23 02:05:40,194 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44101166:ctest-vn-04484054 virtual network link through opserver 10.0.0.65
2026-04-23 02:05:40,194 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2026-04-23 02:05:40,584 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2026-04-23 02:05:40,670 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44101166:ctest-vn-04484054', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44101166:ctest-vn-04484054?flat'}
2026-04-23 02:05:40,670 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44101166:ctest-vn-04484054 is found in opserver
2026-04-23 02:05:40,681 - DEBUG - Do not have enough data to verify VN in agent
2026-04-23 02:05:40,686 - DEBUG - VRF ids for VN ctest-vn-04484054: {}
2026-04-23 02:05:40,686 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2026-04-23 02:05:40,692 - DEBUG - Requesting: http://10.0.0.65:8082/domain/80bd9db2-2b8e-4dfe-951a-366b305c1b55
2026-04-23 02:05:40,707 - DEBUG - Requesting: http://10.0.0.65:8082/project/07b164c3-e26d-4873-b377-06548e8524ea
2026-04-23 02:05:40,788 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/3d5f3e5e-1e18-417e-8d1a-7d6fe420be34
2026-04-23 02:05:40,800 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/3d5f3e5e-1e18-417e-8d1a-7d6fe420be34
2026-04-23 02:05:40,809 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/092059c9-6064-40d6-bfb6-20552f49f7bc
2026-04-23 02:05:40,816 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/092059c9-6064-40d6-bfb6-20552f49f7bc
2026-04-23 02:05:40,824 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/595f4426-a965-4018-8f6e-f81185889fb9
2026-04-23 02:05:40,831 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-23 02:05:40,831 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/3d5f3e5e-1e18-417e-8d1a-7d6fe420be34
2026-04-23 02:05:40,840 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/092059c9-6064-40d6-bfb6-20552f49f7bc
2026-04-23 02:05:40,854 - INFO - Verified VN network id 12 for VN 3d5f3e5e-1e18-417e-8d1a-7d6fe420be34
2026-04-23 02:05:40,854 - INFO - Verifications in API Server for VN ctest-vn-67251116 passed
2026-04-23 02:05:40,854 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/3d5f3e5e-1e18-417e-8d1a-7d6fe420be34
2026-04-23 02:05:40,864 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/092059c9-6064-40d6-bfb6-20552f49f7bc
2026-04-23 02:05:40,872 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/092059c9-6064-40d6-bfb6-20552f49f7bc
2026-04-23 02:05:40,879 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/595f4426-a965-4018-8f6e-f81185889fb9
2026-04-23 02:05:40,891 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44101166:ctest-vn-67251116', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44101166', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4422321933053870462', 'uuid-lslong': '10167577028264508980'}, 'enable': 'true', 'created': '2026-04-23T02:05:38', 'last-modified': '2026-04-23T02:05:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.632904'}
2026-04-23 02:05:40,898 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-23 02:05:40,898 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67251116 passed
2026-04-23 02:05:40,898 - DEBUG - ====Verifying policy data for ctest-vn-67251116 in API_Server ======
2026-04-23 02:05:40,898 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2026-04-23 02:05:40,904 - DEBUG - Requesting: http://10.0.0.65:8082/domain/80bd9db2-2b8e-4dfe-951a-366b305c1b55
2026-04-23 02:05:40,918 - DEBUG - Requesting: http://10.0.0.65:8082/project/07b164c3-e26d-4873-b377-06548e8524ea
2026-04-23 02:05:40,993 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/3d5f3e5e-1e18-417e-8d1a-7d6fe420be34
2026-04-23 02:05:41,004 - DEBUG - ==>Verifying data for policy with id: 53287e58-75ac-4c39-bf49-b5945982ca1f, fqn: ['default-domain', 'ctest-TestBasicPolicy-44101166', 'ctest-policy-allow-all-40450477']
2026-04-23 02:05:41,004 - INFO - VN ctest-vn-67251116 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-23 02:05:41,004 - DEBUG - Verifying the vn in opserver
2026-04-23 02:05:41,004 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44101166:ctest-vn-67251116 virtual network link through opserver 10.0.0.65
2026-04-23 02:05:41,004 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2026-04-23 02:05:41,016 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44101166:ctest-vn-67251116', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44101166:ctest-vn-67251116?flat'}
2026-04-23 02:05:41,016 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44101166:ctest-vn-67251116 is found in opserver
2026-04-23 02:05:41,025 - DEBUG - Do not have enough data to verify VN in agent
2026-04-23 02:05:41,030 - DEBUG - VRF ids for VN ctest-vn-67251116: {}
2026-04-23 02:05:41,087 - DEBUG - Services list from nova: [