2026-03-23 17:45:33,968 - INFO - Domain Default found not creating
2026-03-23 17:45:34,190 - INFO - Project ctest-TestBasicPolicy-04206875 not found, creating it
2026-03-23 17:45:34,808 - INFO - Created Project:ctest-TestBasicPolicy-04206875, ID : 30dc2c81-9825-4ba1-9d7f-0b010e638451
2026-03-23 17:45:36,860 - INFO - ================================================================================
2026-03-23 17:45:36,860 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-23 17:45:36,860 - 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-03-23 17:45:37,145 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with
2026-03-23 17:45:37,146 - INFO - Initial checks done. Running the testcase now
2026-03-23 17:45:37,146 - INFO -
2026-03-23 17:45:38,027 - DEBUG - Response for create_network : {'network': {'id': 'bba33ce7-1850-46fb-9c58-6927e1ffc0a8', 'name': 'ctest-vn-10818377', 'tenant_id': '30dc2c8198254ba19d7f0b010e638451', 'project_id': '30dc2c8198254ba19d7f0b010e638451', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04206875', 'ctest-vn-10818377'], 'port_security_enabled': True, 'description': ''}}
2026-03-23 17:45:38,185 - DEBUG - Response for create_subnet : {'subnet': {'id': '5d36a0d3-0ec3-4f88-8416-29f0634bdd55', 'name': '', 'tenant_id': '30dc2c8198254ba19d7f0b010e638451', 'network_id': 'bba33ce7-1850-46fb-9c58-6927e1ffc0a8', 'ip_version': 4, 'cidr': '49.145.4.192/26', 'allocation_pools': [{'start': '49.145.4.194', 'end': '49.145.4.254'}], 'gateway_ip': '49.145.4.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.145.4.194', 'tags': [], 'project_id': '30dc2c8198254ba19d7f0b010e638451'}}
2026-03-23 17:45:38,203 - INFO - Created VN ctest-vn-10818377
2026-03-23 17:45:38,256 - DEBUG - VN ctest-vn-10818377 UUID is bba33ce7-1850-46fb-9c58-6927e1ffc0a8
2026-03-23 17:45:38,574 - DEBUG - Response for create_network : {'network': {'id': '49efb63c-b698-4dd2-9944-0f484f763a9e', 'name': 'ctest-vn-09517880', 'tenant_id': '30dc2c8198254ba19d7f0b010e638451', 'project_id': '30dc2c8198254ba19d7f0b010e638451', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04206875', 'ctest-vn-09517880'], 'port_security_enabled': True, 'description': ''}}
2026-03-23 17:45:38,775 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f0ba3d0a-8c8c-4a49-ba93-0f6d9a2461de', 'name': '', 'tenant_id': '30dc2c8198254ba19d7f0b010e638451', 'network_id': '49efb63c-b698-4dd2-9944-0f484f763a9e', 'ip_version': 4, 'cidr': '1.198.147.64/26', 'allocation_pools': [{'start': '1.198.147.66', 'end': '1.198.147.126'}], 'gateway_ip': '1.198.147.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '1.198.147.66', 'tags': [], 'project_id': '30dc2c8198254ba19d7f0b010e638451'}}
2026-03-23 17:45:38,792 - INFO - Created VN ctest-vn-09517880
2026-03-23 17:45:38,848 - DEBUG - VN ctest-vn-09517880 UUID is 49efb63c-b698-4dd2-9944-0f484f763a9e
2026-03-23 17:45:38,991 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-04206875:ctest-vn-10818377, 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-04206875:ctest-vn-09517880, 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-03-23 17:45:39,327 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bba33ce7-1850-46fb-9c58-6927e1ffc0a8', 'name': 'ctest-vn-10818377', 'tenant_id': '30dc2c8198254ba19d7f0b010e638451', 'project_id': '30dc2c8198254ba19d7f0b010e638451', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5d36a0d3-0ec3-4f88-8416-29f0634bdd55'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04206875', 'ctest-vn-10818377'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04206875', 'ctest-policy-allow-all-45788752']], 'subnet_ipam': [{'subnet_cidr': '49.145.4.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-23 17:45:39,589 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '49efb63c-b698-4dd2-9944-0f484f763a9e', 'name': 'ctest-vn-09517880', 'tenant_id': '30dc2c8198254ba19d7f0b010e638451', 'project_id': '30dc2c8198254ba19d7f0b010e638451', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f0ba3d0a-8c8c-4a49-ba93-0f6d9a2461de'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04206875', 'ctest-vn-09517880'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04206875', 'ctest-policy-allow-all-45788752']], 'subnet_ipam': [{'subnet_cidr': '1.198.147.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-23 17:45:39,765 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-03-23 17:45:40,118 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-03-23 17:45:40,154 - DEBUG - Requesting: http://10.0.0.141:8082/domain/cbfbfec0-31a9-4c10-98a4-aa5fedaad57d
2026-03-23 17:45:40,178 - DEBUG - Requesting: http://10.0.0.141:8082/project/30dc2c81-9825-4ba1-9d7f-0b010e638451
2026-03-23 17:45:40,282 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/bba33ce7-1850-46fb-9c58-6927e1ffc0a8
2026-03-23 17:45:40,302 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/bba33ce7-1850-46fb-9c58-6927e1ffc0a8
2026-03-23 17:45:40,321 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2cf2d727-a38a-4f78-9a46-020f5cea5d25
2026-03-23 17:45:40,333 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2cf2d727-a38a-4f78-9a46-020f5cea5d25
2026-03-23 17:45:40,345 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/8f18afa6-23e3-486a-a5fe-6fb0dfc2191c
2026-03-23 17:45:40,358 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-23 17:45:40,358 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/bba33ce7-1850-46fb-9c58-6927e1ffc0a8
2026-03-23 17:45:40,382 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2cf2d727-a38a-4f78-9a46-020f5cea5d25
2026-03-23 17:45:40,410 - INFO - Verified VN network id 11 for VN bba33ce7-1850-46fb-9c58-6927e1ffc0a8
2026-03-23 17:45:40,410 - INFO - Verifications in API Server for VN ctest-vn-10818377 passed
2026-03-23 17:45:40,410 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/bba33ce7-1850-46fb-9c58-6927e1ffc0a8
2026-03-23 17:45:40,425 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2cf2d727-a38a-4f78-9a46-020f5cea5d25
2026-03-23 17:45:40,436 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2cf2d727-a38a-4f78-9a46-020f5cea5d25
2026-03-23 17:45:40,449 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/8f18afa6-23e3-486a-a5fe-6fb0dfc2191c
2026-03-23 17:45:40,470 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04206875:ctest-vn-10818377', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04206875', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13520717469539387131', 'uuid-lslong': '11265870087883571368'}, 'enable': 'true', 'created': '2026-03-23T17:45:37', 'last-modified': '2026-03-23T17:45:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.165354'}
2026-03-23 17:45:40,482 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-23 17:45:40,483 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10818377 passed
2026-03-23 17:45:40,483 - DEBUG - ====Verifying policy data for ctest-vn-10818377 in API_Server ======
2026-03-23 17:45:40,483 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-03-23 17:45:40,495 - DEBUG - Requesting: http://10.0.0.141:8082/domain/cbfbfec0-31a9-4c10-98a4-aa5fedaad57d
2026-03-23 17:45:40,520 - DEBUG - Requesting: http://10.0.0.141:8082/project/30dc2c81-9825-4ba1-9d7f-0b010e638451
2026-03-23 17:45:40,641 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/bba33ce7-1850-46fb-9c58-6927e1ffc0a8
2026-03-23 17:45:40,661 - DEBUG - ==>Verifying data for policy with id: 86da3e6e-d887-4693-b569-e442527b550b, fqn: ['default-domain', 'ctest-TestBasicPolicy-04206875', 'ctest-policy-allow-all-45788752']
2026-03-23 17:45:40,661 - INFO - VN ctest-vn-10818377 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-23 17:45:40,661 - DEBUG - Verifying the vn in opserver
2026-03-23 17:45:40,661 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04206875:ctest-vn-10818377 virtual network link through opserver 10.0.0.141
2026-03-23 17:45:40,661 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2026-03-23 17:45:41,012 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2026-03-23 17:45:41,103 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04206875:ctest-vn-10818377', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04206875:ctest-vn-10818377?flat'}
2026-03-23 17:45:41,103 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04206875:ctest-vn-10818377 is found in opserver
2026-03-23 17:45:41,124 - DEBUG - Do not have enough data to verify VN in agent
2026-03-23 17:45:41,136 - DEBUG - VRF ids for VN ctest-vn-10818377: {}
2026-03-23 17:45:41,136 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-03-23 17:45:41,149 - DEBUG - Requesting: http://10.0.0.141:8082/domain/cbfbfec0-31a9-4c10-98a4-aa5fedaad57d
2026-03-23 17:45:41,179 - DEBUG - Requesting: http://10.0.0.141:8082/project/30dc2c81-9825-4ba1-9d7f-0b010e638451
2026-03-23 17:45:41,266 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/49efb63c-b698-4dd2-9944-0f484f763a9e
2026-03-23 17:45:41,283 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/49efb63c-b698-4dd2-9944-0f484f763a9e
2026-03-23 17:45:41,295 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/51d4ae28-5072-4070-869b-eb741fba9706
2026-03-23 17:45:41,303 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/51d4ae28-5072-4070-869b-eb741fba9706
2026-03-23 17:45:41,311 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/21315e7a-d344-4fa9-8fec-2058644c3b89
2026-03-23 17:45:41,321 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-23 17:45:41,321 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/49efb63c-b698-4dd2-9944-0f484f763a9e
2026-03-23 17:45:41,333 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/51d4ae28-5072-4070-869b-eb741fba9706
2026-03-23 17:45:41,353 - INFO - Verified VN network id 12 for VN 49efb63c-b698-4dd2-9944-0f484f763a9e
2026-03-23 17:45:41,353 - INFO - Verifications in API Server for VN ctest-vn-09517880 passed
2026-03-23 17:45:41,354 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/49efb63c-b698-4dd2-9944-0f484f763a9e
2026-03-23 17:45:41,368 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/51d4ae28-5072-4070-869b-eb741fba9706
2026-03-23 17:45:41,379 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/51d4ae28-5072-4070-869b-eb741fba9706
2026-03-23 17:45:41,388 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/21315e7a-d344-4fa9-8fec-2058644c3b89
2026-03-23 17:45:41,401 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04206875:ctest-vn-09517880', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04206875', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5327677256080313810', 'uuid-lslong': '11043968989464509086'}, 'enable': 'true', 'created': '2026-03-23T17:45:38', 'last-modified': '2026-03-23T17:45:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.847994'}
2026-03-23 17:45:41,408 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-23 17:45:41,408 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09517880 passed
2026-03-23 17:45:41,408 - DEBUG - ====Verifying policy data for ctest-vn-09517880 in API_Server ======
2026-03-23 17:45:41,408 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-03-23 17:45:41,417 - DEBUG - Requesting: http://10.0.0.141:8082/domain/cbfbfec0-31a9-4c10-98a4-aa5fedaad57d
2026-03-23 17:45:41,431 - DEBUG - Requesting: http://10.0.0.141:8082/project/30dc2c81-9825-4ba1-9d7f-0b010e638451
2026-03-23 17:45:41,515 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/49efb63c-b698-4dd2-9944-0f484f763a9e
2026-03-23 17:45:41,526 - DEBUG - ==>Verifying data for policy with id: 86da3e6e-d887-4693-b569-e442527b550b, fqn: ['default-domain', 'ctest-TestBasicPolicy-04206875', 'ctest-policy-allow-all-45788752']
2026-03-23 17:45:41,526 - INFO - VN ctest-vn-09517880 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-23 17:45:41,526 - DEBUG - Verifying the vn in opserver
2026-03-23 17:45:41,526 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04206875:ctest-vn-09517880 virtual network link through opserver 10.0.0.141
2026-03-23 17:45:41,526 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2026-03-23 17:45:41,537 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04206875:ctest-vn-09517880', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04206875:ctest-vn-09517880?flat'}
2026-03-23 17:45:41,537 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04206875:ctest-vn-09517880 is found in opserver
2026-03-23 17:45:41,549 - DEBUG - Do not have enough data to verify VN in agent
2026-03-23 17:45:41,558 - DEBUG - VRF ids for VN ctest-vn-09517880: {}
2026-03-23 17:45:41,638 - DEBUG - Services list from nova: [