2025-10-02 01:51:06,213 - INFO - Domain Default found not creating
2025-10-02 01:51:06,333 - INFO - Project ctest-TestBasicPolicy-83157466 not found, creating it
2025-10-02 01:51:06,746 - INFO - Created Project:ctest-TestBasicPolicy-83157466, ID : d80151a5-af92-46b8-89d4-960688f99e16
2025-10-02 01:51:08,073 - INFO - ================================================================================
2025-10-02 01:51:08,074 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-02 01:51:08,074 - 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-10-02 01:51:08,332 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-10-02 01:51:08,332 - INFO - Initial checks done. Running the testcase now
2025-10-02 01:51:08,332 - INFO -
2025-10-02 01:51:08,826 - DEBUG - Response for create_network : {'network': {'id': 'f5951365-196a-4ec1-8a44-8f37e0a5f337', 'name': 'ctest-vn-76406479', 'tenant_id': 'd80151a5af9246b889d4960688f99e16', 'project_id': 'd80151a5af9246b889d4960688f99e16', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83157466', 'ctest-vn-76406479'], 'port_security_enabled': True, 'description': ''}}
2025-10-02 01:51:08,996 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f238da9d-9c23-4053-98bb-aa35fbf51df4', 'name': '', 'tenant_id': 'd80151a5af9246b889d4960688f99e16', 'network_id': 'f5951365-196a-4ec1-8a44-8f37e0a5f337', 'ip_version': 4, 'cidr': '163.57.187.0/26', 'allocation_pools': [{'start': '163.57.187.2', 'end': '163.57.187.62'}], 'gateway_ip': '163.57.187.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '163.57.187.2', 'tags': [], 'project_id': 'd80151a5af9246b889d4960688f99e16'}}
2025-10-02 01:51:09,011 - INFO - Created VN ctest-vn-76406479
2025-10-02 01:51:09,060 - DEBUG - VN ctest-vn-76406479 UUID is f5951365-196a-4ec1-8a44-8f37e0a5f337
2025-10-02 01:51:09,353 - DEBUG - Response for create_network : {'network': {'id': '3fc5a7ca-662e-48a7-8ab1-8f0801c4a6c4', 'name': 'ctest-vn-21707076', 'tenant_id': 'd80151a5af9246b889d4960688f99e16', 'project_id': 'd80151a5af9246b889d4960688f99e16', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83157466', 'ctest-vn-21707076'], 'port_security_enabled': True, 'description': ''}}
2025-10-02 01:51:09,509 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b2cf7947-cb41-4b63-96d2-43b30aea0ce0', 'name': '', 'tenant_id': 'd80151a5af9246b889d4960688f99e16', 'network_id': '3fc5a7ca-662e-48a7-8ab1-8f0801c4a6c4', 'ip_version': 4, 'cidr': '178.96.105.128/26', 'allocation_pools': [{'start': '178.96.105.130', 'end': '178.96.105.190'}], 'gateway_ip': '178.96.105.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '178.96.105.130', 'tags': [], 'project_id': 'd80151a5af9246b889d4960688f99e16'}}
2025-10-02 01:51:09,523 - INFO - Created VN ctest-vn-21707076
2025-10-02 01:51:09,572 - DEBUG - VN ctest-vn-21707076 UUID is 3fc5a7ca-662e-48a7-8ab1-8f0801c4a6c4
2025-10-02 01:51:09,712 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-83157466:ctest-vn-76406479, 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-83157466:ctest-vn-21707076, 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-10-02 01:51:09,980 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f5951365-196a-4ec1-8a44-8f37e0a5f337', 'name': 'ctest-vn-76406479', 'tenant_id': 'd80151a5af9246b889d4960688f99e16', 'project_id': 'd80151a5af9246b889d4960688f99e16', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f238da9d-9c23-4053-98bb-aa35fbf51df4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83157466', 'ctest-vn-76406479'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-83157466', 'ctest-policy-allow-all-14529063']], 'subnet_ipam': [{'subnet_cidr': '163.57.187.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-02 01:51:10,193 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3fc5a7ca-662e-48a7-8ab1-8f0801c4a6c4', 'name': 'ctest-vn-21707076', 'tenant_id': 'd80151a5af9246b889d4960688f99e16', 'project_id': 'd80151a5af9246b889d4960688f99e16', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b2cf7947-cb41-4b63-96d2-43b30aea0ce0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83157466', 'ctest-vn-21707076'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-83157466', 'ctest-policy-allow-all-14529063']], 'subnet_ipam': [{'subnet_cidr': '178.96.105.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-02 01:51:10,340 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-02 01:51:10,632 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-02 01:51:10,659 - DEBUG - Requesting: http://10.0.0.254:8082/domain/07d0a88b-1789-43b3-bb15-a61de59474e7
2025-10-02 01:51:10,668 - DEBUG - Requesting: http://10.0.0.254:8082/project/d80151a5-af92-46b8-89d4-960688f99e16
2025-10-02 01:51:10,741 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f5951365-196a-4ec1-8a44-8f37e0a5f337
2025-10-02 01:51:10,749 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f5951365-196a-4ec1-8a44-8f37e0a5f337
2025-10-02 01:51:10,756 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/234ec987-aa5d-454f-9041-c8c9cfb58faf
2025-10-02 01:51:10,764 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/234ec987-aa5d-454f-9041-c8c9cfb58faf
2025-10-02 01:51:10,769 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/33fb5481-8e40-44c4-8a47-a08a714ae868
2025-10-02 01:51:10,773 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-02 01:51:10,773 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f5951365-196a-4ec1-8a44-8f37e0a5f337
2025-10-02 01:51:10,780 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/234ec987-aa5d-454f-9041-c8c9cfb58faf
2025-10-02 01:51:10,791 - INFO - Verified VN network id 12 for VN f5951365-196a-4ec1-8a44-8f37e0a5f337
2025-10-02 01:51:10,791 - INFO - Verifications in API Server for VN ctest-vn-76406479 passed
2025-10-02 01:51:10,792 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f5951365-196a-4ec1-8a44-8f37e0a5f337
2025-10-02 01:51:10,799 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/234ec987-aa5d-454f-9041-c8c9cfb58faf
2025-10-02 01:51:10,804 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/234ec987-aa5d-454f-9041-c8c9cfb58faf
2025-10-02 01:51:10,808 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/33fb5481-8e40-44c4-8a47-a08a714ae868
2025-10-02 01:51:10,817 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-83157466:ctest-vn-76406479', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83157466', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17696071635761254081', 'uuid-lslong': '9963245745805325111'}, 'enable': 'true', 'created': '2025-10-02T01:51:08', 'last-modified': '2025-10-02T01:51:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.853443'}
2025-10-02 01:51:10,822 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-02 01:51:10,822 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76406479 passed
2025-10-02 01:51:10,822 - DEBUG - ====Verifying policy data for ctest-vn-76406479 in API_Server ======
2025-10-02 01:51:10,822 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-02 01:51:10,826 - DEBUG - Requesting: http://10.0.0.254:8082/domain/07d0a88b-1789-43b3-bb15-a61de59474e7
2025-10-02 01:51:10,835 - DEBUG - Requesting: http://10.0.0.254:8082/project/d80151a5-af92-46b8-89d4-960688f99e16
2025-10-02 01:51:10,898 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f5951365-196a-4ec1-8a44-8f37e0a5f337
2025-10-02 01:51:10,906 - DEBUG - ==>Verifying data for policy with id: 2a8d7a29-04d5-4373-bc29-3d40466de639, fqn: ['default-domain', 'ctest-TestBasicPolicy-83157466', 'ctest-policy-allow-all-14529063']
2025-10-02 01:51:10,906 - INFO - VN ctest-vn-76406479 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-02 01:51:10,906 - DEBUG - Verifying the vn in opserver
2025-10-02 01:51:10,906 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-83157466:ctest-vn-76406479 virtual network link through opserver 10.0.0.254
2025-10-02 01:51:10,906 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-02 01:51:11,193 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-02 01:51:11,240 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-83157466:ctest-vn-76406479', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-83157466:ctest-vn-76406479?flat'}
2025-10-02 01:51:11,240 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-83157466:ctest-vn-76406479 is found in opserver
2025-10-02 01:51:11,248 - DEBUG - Do not have enough data to verify VN in agent
2025-10-02 01:51:11,251 - DEBUG - VRF ids for VN ctest-vn-76406479: {}
2025-10-02 01:51:11,251 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-02 01:51:11,255 - DEBUG - Requesting: http://10.0.0.254:8082/domain/07d0a88b-1789-43b3-bb15-a61de59474e7
2025-10-02 01:51:11,263 - DEBUG - Requesting: http://10.0.0.254:8082/project/d80151a5-af92-46b8-89d4-960688f99e16
2025-10-02 01:51:11,329 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3fc5a7ca-662e-48a7-8ab1-8f0801c4a6c4
2025-10-02 01:51:11,338 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3fc5a7ca-662e-48a7-8ab1-8f0801c4a6c4
2025-10-02 01:51:11,345 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6e5432ee-1ff5-49cd-a9b2-a0c5bf3f6dcc
2025-10-02 01:51:11,350 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6e5432ee-1ff5-49cd-a9b2-a0c5bf3f6dcc
2025-10-02 01:51:11,355 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7472a551-06c2-47b7-ade9-12e1a1cf26fb
2025-10-02 01:51:11,360 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-02 01:51:11,360 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3fc5a7ca-662e-48a7-8ab1-8f0801c4a6c4
2025-10-02 01:51:11,367 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6e5432ee-1ff5-49cd-a9b2-a0c5bf3f6dcc
2025-10-02 01:51:11,379 - INFO - Verified VN network id 13 for VN 3fc5a7ca-662e-48a7-8ab1-8f0801c4a6c4
2025-10-02 01:51:11,379 - INFO - Verifications in API Server for VN ctest-vn-21707076 passed
2025-10-02 01:51:11,379 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3fc5a7ca-662e-48a7-8ab1-8f0801c4a6c4
2025-10-02 01:51:11,387 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6e5432ee-1ff5-49cd-a9b2-a0c5bf3f6dcc
2025-10-02 01:51:11,393 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6e5432ee-1ff5-49cd-a9b2-a0c5bf3f6dcc
2025-10-02 01:51:11,397 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7472a551-06c2-47b7-ade9-12e1a1cf26fb
2025-10-02 01:51:11,406 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-83157466:ctest-vn-21707076', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83157466', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4595263482541000871', 'uuid-lslong': '9993926312664016580'}, 'enable': 'true', 'created': '2025-10-02T01:51:09', 'last-modified': '2025-10-02T01:51:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.226566'}
2025-10-02 01:51:11,411 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-02 01:51:11,411 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21707076 passed
2025-10-02 01:51:11,411 - DEBUG - ====Verifying policy data for ctest-vn-21707076 in API_Server ======
2025-10-02 01:51:11,411 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-02 01:51:11,415 - DEBUG - Requesting: http://10.0.0.254:8082/domain/07d0a88b-1789-43b3-bb15-a61de59474e7
2025-10-02 01:51:11,423 - DEBUG - Requesting: http://10.0.0.254:8082/project/d80151a5-af92-46b8-89d4-960688f99e16
2025-10-02 01:51:11,487 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3fc5a7ca-662e-48a7-8ab1-8f0801c4a6c4
2025-10-02 01:51:11,496 - DEBUG - ==>Verifying data for policy with id: 2a8d7a29-04d5-4373-bc29-3d40466de639, fqn: ['default-domain', 'ctest-TestBasicPolicy-83157466', 'ctest-policy-allow-all-14529063']
2025-10-02 01:51:11,496 - INFO - VN ctest-vn-21707076 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-02 01:51:11,496 - DEBUG - Verifying the vn in opserver
2025-10-02 01:51:11,496 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-83157466:ctest-vn-21707076 virtual network link through opserver 10.0.0.254
2025-10-02 01:51:11,496 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-02 01:51:11,505 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-83157466:ctest-vn-21707076', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-83157466:ctest-vn-21707076?flat'}
2025-10-02 01:51:11,505 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-83157466:ctest-vn-21707076 is found in opserver
2025-10-02 01:51:11,514 - DEBUG - Do not have enough data to verify VN in agent
2025-10-02 01:51:11,518 - DEBUG - VRF ids for VN ctest-vn-21707076: {}
2025-10-02 01:51:11,565 - DEBUG - Services list from nova: [