2025-11-24 02:02:02,025 - INFO - Domain Default found not creating
2025-11-24 02:02:02,204 - INFO - Project ctest-TestBasicPolicy-44229958 not found, creating it
2025-11-24 02:02:02,691 - INFO - Created Project:ctest-TestBasicPolicy-44229958, ID : fd8641a4-4790-400f-91a7-845c2924585f
2025-11-24 02:02:04,333 - INFO - ================================================================================
2025-11-24 02:02:04,333 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-24 02:02:04,333 - 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-11-24 02:02:04,587 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with
2025-11-24 02:02:04,587 - INFO - Initial checks done. Running the testcase now
2025-11-24 02:02:04,587 - INFO -
2025-11-24 02:02:05,204 - DEBUG - Response for create_network : {'network': {'id': '7f4c3b7a-8577-4f51-8d7c-caf01e0ba61e', 'name': 'ctest-vn-81429350', 'tenant_id': 'fd8641a44790400f91a7845c2924585f', 'project_id': 'fd8641a44790400f91a7845c2924585f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44229958', 'ctest-vn-81429350'], 'port_security_enabled': True, 'description': ''}}
2025-11-24 02:02:05,392 - DEBUG - Response for create_subnet : {'subnet': {'id': '8b0270a3-580a-4306-acd5-4503eb48c81b', 'name': '', 'tenant_id': 'fd8641a44790400f91a7845c2924585f', 'network_id': '7f4c3b7a-8577-4f51-8d7c-caf01e0ba61e', 'ip_version': 4, 'cidr': '81.186.142.128/26', 'allocation_pools': [{'start': '81.186.142.130', 'end': '81.186.142.190'}], 'gateway_ip': '81.186.142.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.186.142.130', 'tags': [], 'project_id': 'fd8641a44790400f91a7845c2924585f'}}
2025-11-24 02:02:05,411 - INFO - Created VN ctest-vn-81429350
2025-11-24 02:02:05,461 - DEBUG - VN ctest-vn-81429350 UUID is 7f4c3b7a-8577-4f51-8d7c-caf01e0ba61e
2025-11-24 02:02:05,757 - DEBUG - Response for create_network : {'network': {'id': '56045112-21fc-4aed-b7f8-ed628171c7b8', 'name': 'ctest-vn-71152872', 'tenant_id': 'fd8641a44790400f91a7845c2924585f', 'project_id': 'fd8641a44790400f91a7845c2924585f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44229958', 'ctest-vn-71152872'], 'port_security_enabled': True, 'description': ''}}
2025-11-24 02:02:05,990 - DEBUG - Response for create_subnet : {'subnet': {'id': '7f9801b5-b932-4f95-8722-a3fe5ae87c88', 'name': '', 'tenant_id': 'fd8641a44790400f91a7845c2924585f', 'network_id': '56045112-21fc-4aed-b7f8-ed628171c7b8', 'ip_version': 4, 'cidr': '129.33.98.64/26', 'allocation_pools': [{'start': '129.33.98.66', 'end': '129.33.98.126'}], 'gateway_ip': '129.33.98.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.33.98.66', 'tags': [], 'project_id': 'fd8641a44790400f91a7845c2924585f'}}
2025-11-24 02:02:06,010 - INFO - Created VN ctest-vn-71152872
2025-11-24 02:02:06,065 - DEBUG - VN ctest-vn-71152872 UUID is 56045112-21fc-4aed-b7f8-ed628171c7b8
2025-11-24 02:02:06,221 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-44229958:ctest-vn-81429350, 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-44229958:ctest-vn-71152872, 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-11-24 02:02:06,531 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7f4c3b7a-8577-4f51-8d7c-caf01e0ba61e', 'name': 'ctest-vn-81429350', 'tenant_id': 'fd8641a44790400f91a7845c2924585f', 'project_id': 'fd8641a44790400f91a7845c2924585f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8b0270a3-580a-4306-acd5-4503eb48c81b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44229958', 'ctest-vn-81429350'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44229958', 'ctest-policy-allow-all-50544177']], 'subnet_ipam': [{'subnet_cidr': '81.186.142.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-24 02:02:06,774 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '56045112-21fc-4aed-b7f8-ed628171c7b8', 'name': 'ctest-vn-71152872', 'tenant_id': 'fd8641a44790400f91a7845c2924585f', 'project_id': 'fd8641a44790400f91a7845c2924585f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7f9801b5-b932-4f95-8722-a3fe5ae87c88'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44229958', 'ctest-vn-71152872'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44229958', 'ctest-policy-allow-all-50544177']], 'subnet_ipam': [{'subnet_cidr': '129.33.98.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-24 02:02:06,945 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-11-24 02:02:07,288 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-11-24 02:02:07,319 - DEBUG - Requesting: http://10.0.0.242:8082/domain/3d516aa3-00e7-47eb-957a-294b4c298a57
2025-11-24 02:02:07,332 - DEBUG - Requesting: http://10.0.0.242:8082/project/fd8641a4-4790-400f-91a7-845c2924585f
2025-11-24 02:02:07,410 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/7f4c3b7a-8577-4f51-8d7c-caf01e0ba61e
2025-11-24 02:02:07,421 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/7f4c3b7a-8577-4f51-8d7c-caf01e0ba61e
2025-11-24 02:02:07,429 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/745b042a-4b93-4588-89a2-40b7687e1959
2025-11-24 02:02:07,435 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/745b042a-4b93-4588-89a2-40b7687e1959
2025-11-24 02:02:07,442 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/ee93ed40-8b6b-4df0-a69f-395a90a22dcd
2025-11-24 02:02:07,448 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-24 02:02:07,448 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/7f4c3b7a-8577-4f51-8d7c-caf01e0ba61e
2025-11-24 02:02:07,457 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/745b042a-4b93-4588-89a2-40b7687e1959
2025-11-24 02:02:07,472 - INFO - Verified VN network id 11 for VN 7f4c3b7a-8577-4f51-8d7c-caf01e0ba61e
2025-11-24 02:02:07,472 - INFO - Verifications in API Server for VN ctest-vn-81429350 passed
2025-11-24 02:02:07,473 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/7f4c3b7a-8577-4f51-8d7c-caf01e0ba61e
2025-11-24 02:02:07,484 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/745b042a-4b93-4588-89a2-40b7687e1959
2025-11-24 02:02:07,491 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/745b042a-4b93-4588-89a2-40b7687e1959
2025-11-24 02:02:07,498 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/ee93ed40-8b6b-4df0-a69f-395a90a22dcd
2025-11-24 02:02:07,511 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44229958:ctest-vn-81429350', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44229958', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9172771938458095441', 'uuid-lslong': '10195246789105002014'}, 'enable': 'true', 'created': '2025-11-24T02:02:05', 'last-modified': '2025-11-24T02:02:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.002180'}
2025-11-24 02:02:07,517 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-24 02:02:07,517 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81429350 passed
2025-11-24 02:02:07,518 - DEBUG - ====Verifying policy data for ctest-vn-81429350 in API_Server ======
2025-11-24 02:02:07,518 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-11-24 02:02:07,523 - DEBUG - Requesting: http://10.0.0.242:8082/domain/3d516aa3-00e7-47eb-957a-294b4c298a57
2025-11-24 02:02:07,533 - DEBUG - Requesting: http://10.0.0.242:8082/project/fd8641a4-4790-400f-91a7-845c2924585f
2025-11-24 02:02:07,614 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/7f4c3b7a-8577-4f51-8d7c-caf01e0ba61e
2025-11-24 02:02:07,624 - DEBUG - ==>Verifying data for policy with id: c22765b0-0ba7-4fdb-8f96-818df7e53298, fqn: ['default-domain', 'ctest-TestBasicPolicy-44229958', 'ctest-policy-allow-all-50544177']
2025-11-24 02:02:07,624 - INFO - VN ctest-vn-81429350 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-24 02:02:07,624 - DEBUG - Verifying the vn in opserver
2025-11-24 02:02:07,624 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44229958:ctest-vn-81429350 virtual network link through opserver 10.0.0.242
2025-11-24 02:02:07,624 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-11-24 02:02:07,957 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-11-24 02:02:08,021 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44229958:ctest-vn-81429350', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44229958:ctest-vn-81429350?flat'}
2025-11-24 02:02:08,022 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44229958:ctest-vn-81429350 is found in opserver
2025-11-24 02:02:08,031 - DEBUG - Do not have enough data to verify VN in agent
2025-11-24 02:02:08,036 - DEBUG - VRF ids for VN ctest-vn-81429350: {}
2025-11-24 02:02:08,036 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-11-24 02:02:08,043 - DEBUG - Requesting: http://10.0.0.242:8082/domain/3d516aa3-00e7-47eb-957a-294b4c298a57
2025-11-24 02:02:08,056 - DEBUG - Requesting: http://10.0.0.242:8082/project/fd8641a4-4790-400f-91a7-845c2924585f
2025-11-24 02:02:08,127 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/56045112-21fc-4aed-b7f8-ed628171c7b8
2025-11-24 02:02:08,139 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/56045112-21fc-4aed-b7f8-ed628171c7b8
2025-11-24 02:02:08,148 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/486a4b33-f5f1-4abc-9a01-681d1235fd76
2025-11-24 02:02:08,156 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/486a4b33-f5f1-4abc-9a01-681d1235fd76
2025-11-24 02:02:08,163 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/334098e8-f98c-48f7-96b0-ff3a4dcb4af4
2025-11-24 02:02:08,172 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-24 02:02:08,172 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/56045112-21fc-4aed-b7f8-ed628171c7b8
2025-11-24 02:02:08,181 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/486a4b33-f5f1-4abc-9a01-681d1235fd76
2025-11-24 02:02:08,195 - INFO - Verified VN network id 12 for VN 56045112-21fc-4aed-b7f8-ed628171c7b8
2025-11-24 02:02:08,195 - INFO - Verifications in API Server for VN ctest-vn-71152872 passed
2025-11-24 02:02:08,196 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/56045112-21fc-4aed-b7f8-ed628171c7b8
2025-11-24 02:02:08,205 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/486a4b33-f5f1-4abc-9a01-681d1235fd76
2025-11-24 02:02:08,212 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/486a4b33-f5f1-4abc-9a01-681d1235fd76
2025-11-24 02:02:08,220 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/334098e8-f98c-48f7-96b0-ff3a4dcb4af4
2025-11-24 02:02:08,233 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44229958:ctest-vn-71152872', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44229958', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6198168125490088685', 'uuid-lslong': '13256606510499350456'}, 'enable': 'true', 'created': '2025-11-24T02:02:05', 'last-modified': '2025-11-24T02:02:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.476797'}
2025-11-24 02:02:08,239 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-24 02:02:08,240 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71152872 passed
2025-11-24 02:02:08,240 - DEBUG - ====Verifying policy data for ctest-vn-71152872 in API_Server ======
2025-11-24 02:02:08,240 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-11-24 02:02:08,246 - DEBUG - Requesting: http://10.0.0.242:8082/domain/3d516aa3-00e7-47eb-957a-294b4c298a57
2025-11-24 02:02:08,258 - DEBUG - Requesting: http://10.0.0.242:8082/project/fd8641a4-4790-400f-91a7-845c2924585f
2025-11-24 02:02:08,336 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/56045112-21fc-4aed-b7f8-ed628171c7b8
2025-11-24 02:02:08,346 - DEBUG - ==>Verifying data for policy with id: c22765b0-0ba7-4fdb-8f96-818df7e53298, fqn: ['default-domain', 'ctest-TestBasicPolicy-44229958', 'ctest-policy-allow-all-50544177']
2025-11-24 02:02:08,346 - INFO - VN ctest-vn-71152872 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-24 02:02:08,346 - DEBUG - Verifying the vn in opserver
2025-11-24 02:02:08,346 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44229958:ctest-vn-71152872 virtual network link through opserver 10.0.0.242
2025-11-24 02:02:08,346 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-11-24 02:02:08,356 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44229958:ctest-vn-71152872', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44229958:ctest-vn-71152872?flat'}
2025-11-24 02:02:08,356 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44229958:ctest-vn-71152872 is found in opserver
2025-11-24 02:02:08,365 - DEBUG - Do not have enough data to verify VN in agent
2025-11-24 02:02:08,370 - DEBUG - VRF ids for VN ctest-vn-71152872: {}
2025-11-24 02:02:08,430 - DEBUG - Services list from nova: [