2026-07-18 14:36:46,092 - INFO - Domain Default found not creating
2026-07-18 14:36:46,282 - INFO - Project ctest-TestBasicPolicy-69011500 not found, creating it
2026-07-18 14:36:46,804 - INFO - Created Project:ctest-TestBasicPolicy-69011500, ID : 3a988c39-25db-4853-af43-6ba514e57d35
2026-07-18 14:36:48,584 - INFO - ================================================================================
2026-07-18 14:36:48,584 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-07-18 14:36:48,584 - 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-07-18 14:36:48,868 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with
2026-07-18 14:36:48,868 - INFO - Initial checks done. Running the testcase now
2026-07-18 14:36:48,868 - INFO -
2026-07-18 14:36:49,524 - DEBUG - Response for create_network : {'network': {'id': 'ad64de44-eb85-4c68-aae4-8dcd7dabd8af', 'name': 'ctest-vn-27140863', 'tenant_id': '3a988c3925db4853af436ba514e57d35', 'project_id': '3a988c3925db4853af436ba514e57d35', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69011500', 'ctest-vn-27140863'], 'port_security_enabled': True, 'description': ''}}
2026-07-18 14:36:49,712 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bbec4a19-c669-4494-8d4c-905d562f6d40', 'name': '', 'tenant_id': '3a988c3925db4853af436ba514e57d35', 'network_id': 'ad64de44-eb85-4c68-aae4-8dcd7dabd8af', 'ip_version': 4, 'cidr': '60.169.2.128/26', 'allocation_pools': [{'start': '60.169.2.130', 'end': '60.169.2.190'}], 'gateway_ip': '60.169.2.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '60.169.2.130', 'tags': [], 'project_id': '3a988c3925db4853af436ba514e57d35'}}
2026-07-18 14:36:49,733 - INFO - Created VN ctest-vn-27140863
2026-07-18 14:36:49,790 - DEBUG - VN ctest-vn-27140863 UUID is ad64de44-eb85-4c68-aae4-8dcd7dabd8af
2026-07-18 14:36:50,096 - DEBUG - Response for create_network : {'network': {'id': '5f2e494a-1809-4311-8d6e-50a5bdf12c66', 'name': 'ctest-vn-10290155', 'tenant_id': '3a988c3925db4853af436ba514e57d35', 'project_id': '3a988c3925db4853af436ba514e57d35', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69011500', 'ctest-vn-10290155'], 'port_security_enabled': True, 'description': ''}}
2026-07-18 14:36:50,334 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dda7051d-2841-4dd3-b62d-2d2baa52442d', 'name': '', 'tenant_id': '3a988c3925db4853af436ba514e57d35', 'network_id': '5f2e494a-1809-4311-8d6e-50a5bdf12c66', 'ip_version': 4, 'cidr': '140.183.216.192/26', 'allocation_pools': [{'start': '140.183.216.194', 'end': '140.183.216.254'}], 'gateway_ip': '140.183.216.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '140.183.216.194', 'tags': [], 'project_id': '3a988c3925db4853af436ba514e57d35'}}
2026-07-18 14:36:50,352 - INFO - Created VN ctest-vn-10290155
2026-07-18 14:36:50,410 - DEBUG - VN ctest-vn-10290155 UUID is 5f2e494a-1809-4311-8d6e-50a5bdf12c66
2026-07-18 14:36:50,529 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-69011500:ctest-vn-27140863, 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-69011500:ctest-vn-10290155, 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-07-18 14:36:50,840 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ad64de44-eb85-4c68-aae4-8dcd7dabd8af', 'name': 'ctest-vn-27140863', 'tenant_id': '3a988c3925db4853af436ba514e57d35', 'project_id': '3a988c3925db4853af436ba514e57d35', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bbec4a19-c669-4494-8d4c-905d562f6d40'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69011500', 'ctest-vn-27140863'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69011500', 'ctest-policy-allow-all-27106918']], 'subnet_ipam': [{'subnet_cidr': '60.169.2.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-07-18 14:36:51,106 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5f2e494a-1809-4311-8d6e-50a5bdf12c66', 'name': 'ctest-vn-10290155', 'tenant_id': '3a988c3925db4853af436ba514e57d35', 'project_id': '3a988c3925db4853af436ba514e57d35', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dda7051d-2841-4dd3-b62d-2d2baa52442d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69011500', 'ctest-vn-10290155'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69011500', 'ctest-policy-allow-all-27106918']], 'subnet_ipam': [{'subnet_cidr': '140.183.216.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-07-18 14:36:51,274 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-07-18 14:36:51,649 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-07-18 14:36:51,681 - DEBUG - Requesting: http://10.0.0.242:8082/domain/e5d71531-1c93-46fb-84d4-bc8ea547b5f2
2026-07-18 14:36:51,696 - DEBUG - Requesting: http://10.0.0.242:8082/project/3a988c39-25db-4853-af43-6ba514e57d35
2026-07-18 14:36:51,782 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/ad64de44-eb85-4c68-aae4-8dcd7dabd8af
2026-07-18 14:36:51,798 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/ad64de44-eb85-4c68-aae4-8dcd7dabd8af
2026-07-18 14:36:51,812 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/48e2d75f-23fb-4c4f-9cc5-8445df886662
2026-07-18 14:36:51,822 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/48e2d75f-23fb-4c4f-9cc5-8445df886662
2026-07-18 14:36:51,830 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/90cdbb78-1448-4d8e-b12d-6ea6061c522e
2026-07-18 14:36:51,837 - DEBUG - Route Targets: ['target:64512:8000004']
2026-07-18 14:36:51,837 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/ad64de44-eb85-4c68-aae4-8dcd7dabd8af
2026-07-18 14:36:51,847 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/48e2d75f-23fb-4c4f-9cc5-8445df886662
2026-07-18 14:36:51,863 - INFO - Verified VN network id 11 for VN ad64de44-eb85-4c68-aae4-8dcd7dabd8af
2026-07-18 14:36:51,863 - INFO - Verifications in API Server for VN ctest-vn-27140863 passed
2026-07-18 14:36:51,863 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/ad64de44-eb85-4c68-aae4-8dcd7dabd8af
2026-07-18 14:36:51,874 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/48e2d75f-23fb-4c4f-9cc5-8445df886662
2026-07-18 14:36:51,882 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/48e2d75f-23fb-4c4f-9cc5-8445df886662
2026-07-18 14:36:51,891 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/90cdbb78-1448-4d8e-b12d-6ea6061c522e
2026-07-18 14:36:51,906 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69011500:ctest-vn-27140863', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69011500', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12494355653823122536', 'uuid-lslong': '12314123194854004911'}, 'enable': 'true', 'created': '2026-07-18T14:36:49', 'last-modified': '2026-07-18T14:36:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.092487'}
2026-07-18 14:36:51,914 - DEBUG - Route Targets: ['target:64512:8000004']
2026-07-18 14:36:51,914 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27140863 passed
2026-07-18 14:36:51,914 - DEBUG - ====Verifying policy data for ctest-vn-27140863 in API_Server ======
2026-07-18 14:36:51,914 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-07-18 14:36:51,921 - DEBUG - Requesting: http://10.0.0.242:8082/domain/e5d71531-1c93-46fb-84d4-bc8ea547b5f2
2026-07-18 14:36:51,935 - DEBUG - Requesting: http://10.0.0.242:8082/project/3a988c39-25db-4853-af43-6ba514e57d35
2026-07-18 14:36:52,014 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/ad64de44-eb85-4c68-aae4-8dcd7dabd8af
2026-07-18 14:36:52,025 - DEBUG - ==>Verifying data for policy with id: 6b106c25-5126-4bf9-8ee3-85372c0f980c, fqn: ['default-domain', 'ctest-TestBasicPolicy-69011500', 'ctest-policy-allow-all-27106918']
2026-07-18 14:36:52,026 - INFO - VN ctest-vn-27140863 Policy verification: verify_vn_policy_in_api_server, status: True
2026-07-18 14:36:52,026 - DEBUG - Verifying the vn in opserver
2026-07-18 14:36:52,026 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69011500:ctest-vn-27140863 virtual network link through opserver 10.0.0.242
2026-07-18 14:36:52,026 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-07-18 14:36:52,397 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-07-18 14:36:52,457 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69011500:ctest-vn-27140863', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69011500:ctest-vn-27140863?flat'}
2026-07-18 14:36:52,457 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69011500:ctest-vn-27140863 is found in opserver
2026-07-18 14:36:52,469 - DEBUG - Do not have enough data to verify VN in agent
2026-07-18 14:36:52,474 - DEBUG - VRF ids for VN ctest-vn-27140863: {}
2026-07-18 14:36:52,474 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-07-18 14:36:52,480 - DEBUG - Requesting: http://10.0.0.242:8082/domain/e5d71531-1c93-46fb-84d4-bc8ea547b5f2
2026-07-18 14:36:52,492 - DEBUG - Requesting: http://10.0.0.242:8082/project/3a988c39-25db-4853-af43-6ba514e57d35
2026-07-18 14:36:52,575 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/5f2e494a-1809-4311-8d6e-50a5bdf12c66
2026-07-18 14:36:52,591 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/5f2e494a-1809-4311-8d6e-50a5bdf12c66
2026-07-18 14:36:52,603 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e20b3afb-6193-43bc-af54-065258645c44
2026-07-18 14:36:52,611 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e20b3afb-6193-43bc-af54-065258645c44
2026-07-18 14:36:52,620 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/6fee92e6-ed3f-4ada-8a77-9f3f91c57808
2026-07-18 14:36:52,627 - DEBUG - Route Targets: ['target:64512:8000005']
2026-07-18 14:36:52,627 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/5f2e494a-1809-4311-8d6e-50a5bdf12c66
2026-07-18 14:36:52,639 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e20b3afb-6193-43bc-af54-065258645c44
2026-07-18 14:36:52,657 - INFO - Verified VN network id 12 for VN 5f2e494a-1809-4311-8d6e-50a5bdf12c66
2026-07-18 14:36:52,657 - INFO - Verifications in API Server for VN ctest-vn-10290155 passed
2026-07-18 14:36:52,657 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/5f2e494a-1809-4311-8d6e-50a5bdf12c66
2026-07-18 14:36:52,668 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e20b3afb-6193-43bc-af54-065258645c44
2026-07-18 14:36:52,677 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e20b3afb-6193-43bc-af54-065258645c44
2026-07-18 14:36:52,685 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/6fee92e6-ed3f-4ada-8a77-9f3f91c57808
2026-07-18 14:36:52,699 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69011500:ctest-vn-10290155', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69011500', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6858499865111511825', 'uuid-lslong': '10191171679572536422'}, 'enable': 'true', 'created': '2026-07-18T14:36:50', 'last-modified': '2026-07-18T14:36:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.623113'}
2026-07-18 14:36:52,707 - DEBUG - Route Targets: ['target:64512:8000005']
2026-07-18 14:36:52,707 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10290155 passed
2026-07-18 14:36:52,707 - DEBUG - ====Verifying policy data for ctest-vn-10290155 in API_Server ======
2026-07-18 14:36:52,707 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2026-07-18 14:36:52,713 - DEBUG - Requesting: http://10.0.0.242:8082/domain/e5d71531-1c93-46fb-84d4-bc8ea547b5f2
2026-07-18 14:36:52,725 - DEBUG - Requesting: http://10.0.0.242:8082/project/3a988c39-25db-4853-af43-6ba514e57d35
2026-07-18 14:36:52,811 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/5f2e494a-1809-4311-8d6e-50a5bdf12c66
2026-07-18 14:36:52,824 - DEBUG - ==>Verifying data for policy with id: 6b106c25-5126-4bf9-8ee3-85372c0f980c, fqn: ['default-domain', 'ctest-TestBasicPolicy-69011500', 'ctest-policy-allow-all-27106918']
2026-07-18 14:36:52,824 - INFO - VN ctest-vn-10290155 Policy verification: verify_vn_policy_in_api_server, status: True
2026-07-18 14:36:52,824 - DEBUG - Verifying the vn in opserver
2026-07-18 14:36:52,824 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69011500:ctest-vn-10290155 virtual network link through opserver 10.0.0.242
2026-07-18 14:36:52,824 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2026-07-18 14:36:52,837 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69011500:ctest-vn-10290155', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69011500:ctest-vn-10290155?flat'}
2026-07-18 14:36:52,837 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69011500:ctest-vn-10290155 is found in opserver
2026-07-18 14:36:52,849 - DEBUG - Do not have enough data to verify VN in agent
2026-07-18 14:36:52,854 - DEBUG - VRF ids for VN ctest-vn-10290155: {}
2026-07-18 14:36:52,929 - DEBUG - Services list from nova: [