2026-06-17 08:58:03,393 - INFO - Domain Default found not creating
2026-06-17 08:58:03,541 - INFO - Project ctest-TestBasicPolicy-06361865 not found, creating it
2026-06-17 08:58:03,997 - INFO - Created Project:ctest-TestBasicPolicy-06361865, ID : 8f5c9493-a1ab-4759-a4c5-8d61df862455
2026-06-17 08:58:05,508 - INFO - ================================================================================
2026-06-17 08:58:05,508 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-06-17 08:58:05,508 - 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-06-17 08:58:05,767 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-06-17 08:58:05,767 - INFO - Initial checks done. Running the testcase now
2026-06-17 08:58:05,767 - INFO -
2026-06-17 08:58:06,324 - DEBUG - Response for create_network : {'network': {'id': '91252a77-3216-4aea-ae69-f8e309e8326c', 'name': 'ctest-vn-54024265', 'tenant_id': '8f5c9493a1ab4759a4c58d61df862455', 'project_id': '8f5c9493a1ab4759a4c58d61df862455', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06361865', 'ctest-vn-54024265'], 'port_security_enabled': True, 'description': ''}}
2026-06-17 08:58:06,516 - DEBUG - Response for create_subnet : {'subnet': {'id': '7e0e45d1-8b96-4fa6-a312-f3d4c19079f5', 'name': '', 'tenant_id': '8f5c9493a1ab4759a4c58d61df862455', 'network_id': '91252a77-3216-4aea-ae69-f8e309e8326c', 'ip_version': 4, 'cidr': '120.113.188.0/26', 'allocation_pools': [{'start': '120.113.188.2', 'end': '120.113.188.62'}], 'gateway_ip': '120.113.188.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '120.113.188.2', 'tags': [], 'project_id': '8f5c9493a1ab4759a4c58d61df862455'}}
2026-06-17 08:58:06,530 - INFO - Created VN ctest-vn-54024265
2026-06-17 08:58:06,581 - DEBUG - VN ctest-vn-54024265 UUID is 91252a77-3216-4aea-ae69-f8e309e8326c
2026-06-17 08:58:06,905 - DEBUG - Response for create_network : {'network': {'id': '6e2f9d4d-385f-4bcf-9652-97f4b69f8423', 'name': 'ctest-vn-90374440', 'tenant_id': '8f5c9493a1ab4759a4c58d61df862455', 'project_id': '8f5c9493a1ab4759a4c58d61df862455', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06361865', 'ctest-vn-90374440'], 'port_security_enabled': True, 'description': ''}}
2026-06-17 08:58:07,071 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f6736fcf-1648-48c1-bfd5-7da720023b20', 'name': '', 'tenant_id': '8f5c9493a1ab4759a4c58d61df862455', 'network_id': '6e2f9d4d-385f-4bcf-9652-97f4b69f8423', 'ip_version': 4, 'cidr': '37.177.140.192/26', 'allocation_pools': [{'start': '37.177.140.194', 'end': '37.177.140.254'}], 'gateway_ip': '37.177.140.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37.177.140.194', 'tags': [], 'project_id': '8f5c9493a1ab4759a4c58d61df862455'}}
2026-06-17 08:58:07,086 - INFO - Created VN ctest-vn-90374440
2026-06-17 08:58:07,137 - DEBUG - VN ctest-vn-90374440 UUID is 6e2f9d4d-385f-4bcf-9652-97f4b69f8423
2026-06-17 08:58:07,285 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-06361865:ctest-vn-54024265, 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-06361865:ctest-vn-90374440, 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-06-17 08:58:07,583 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '91252a77-3216-4aea-ae69-f8e309e8326c', 'name': 'ctest-vn-54024265', 'tenant_id': '8f5c9493a1ab4759a4c58d61df862455', 'project_id': '8f5c9493a1ab4759a4c58d61df862455', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7e0e45d1-8b96-4fa6-a312-f3d4c19079f5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06361865', 'ctest-vn-54024265'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06361865', 'ctest-policy-allow-all-55418284']], 'subnet_ipam': [{'subnet_cidr': '120.113.188.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-17 08:58:07,799 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6e2f9d4d-385f-4bcf-9652-97f4b69f8423', 'name': 'ctest-vn-90374440', 'tenant_id': '8f5c9493a1ab4759a4c58d61df862455', 'project_id': '8f5c9493a1ab4759a4c58d61df862455', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f6736fcf-1648-48c1-bfd5-7da720023b20'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06361865', 'ctest-vn-90374440'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06361865', 'ctest-policy-allow-all-55418284']], 'subnet_ipam': [{'subnet_cidr': '37.177.140.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-17 08:58:07,961 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-17 08:58:08,280 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-17 08:58:08,309 - DEBUG - Requesting: http://10.0.0.50:8082/domain/cf5e4dfc-6bab-40a5-b895-37a5d2e8113b
2026-06-17 08:58:08,323 - DEBUG - Requesting: http://10.0.0.50:8082/project/8f5c9493-a1ab-4759-a4c5-8d61df862455
2026-06-17 08:58:08,395 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/91252a77-3216-4aea-ae69-f8e309e8326c
2026-06-17 08:58:08,406 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/91252a77-3216-4aea-ae69-f8e309e8326c
2026-06-17 08:58:08,416 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8f6fe5e1-f4b3-4711-97ac-b242e5a9bd1c
2026-06-17 08:58:08,422 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8f6fe5e1-f4b3-4711-97ac-b242e5a9bd1c
2026-06-17 08:58:08,428 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d067153e-8624-4bdc-8b1a-49482e003246
2026-06-17 08:58:08,434 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-17 08:58:08,434 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/91252a77-3216-4aea-ae69-f8e309e8326c
2026-06-17 08:58:08,442 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8f6fe5e1-f4b3-4711-97ac-b242e5a9bd1c
2026-06-17 08:58:08,454 - INFO - Verified VN network id 11 for VN 91252a77-3216-4aea-ae69-f8e309e8326c
2026-06-17 08:58:08,454 - INFO - Verifications in API Server for VN ctest-vn-54024265 passed
2026-06-17 08:58:08,454 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/91252a77-3216-4aea-ae69-f8e309e8326c
2026-06-17 08:58:08,462 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8f6fe5e1-f4b3-4711-97ac-b242e5a9bd1c
2026-06-17 08:58:08,468 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8f6fe5e1-f4b3-4711-97ac-b242e5a9bd1c
2026-06-17 08:58:08,475 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d067153e-8624-4bdc-8b1a-49482e003246
2026-06-17 08:58:08,486 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06361865:ctest-vn-54024265', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06361865', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10458812401067641578', 'uuid-lslong': '12567849889161556588'}, 'enable': 'true', 'created': '2026-06-17T08:58:06', 'last-modified': '2026-06-17T08:58:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.924952'}
2026-06-17 08:58:08,491 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-17 08:58:08,491 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54024265 passed
2026-06-17 08:58:08,491 - DEBUG - ====Verifying policy data for ctest-vn-54024265 in API_Server ======
2026-06-17 08:58:08,491 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-17 08:58:08,497 - DEBUG - Requesting: http://10.0.0.50:8082/domain/cf5e4dfc-6bab-40a5-b895-37a5d2e8113b
2026-06-17 08:58:08,507 - DEBUG - Requesting: http://10.0.0.50:8082/project/8f5c9493-a1ab-4759-a4c5-8d61df862455
2026-06-17 08:58:08,576 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/91252a77-3216-4aea-ae69-f8e309e8326c
2026-06-17 08:58:08,587 - DEBUG - ==>Verifying data for policy with id: 12a16d2c-2e67-4383-bd7b-a2fa5bb10b43, fqn: ['default-domain', 'ctest-TestBasicPolicy-06361865', 'ctest-policy-allow-all-55418284']
2026-06-17 08:58:08,587 - INFO - VN ctest-vn-54024265 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-17 08:58:08,587 - DEBUG - Verifying the vn in opserver
2026-06-17 08:58:08,587 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06361865:ctest-vn-54024265 virtual network link through opserver 10.0.0.50
2026-06-17 08:58:08,587 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-06-17 08:58:08,910 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-06-17 08:58:08,961 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06361865:ctest-vn-54024265', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06361865:ctest-vn-54024265?flat'}
2026-06-17 08:58:08,961 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06361865:ctest-vn-54024265 is found in opserver
2026-06-17 08:58:08,970 - DEBUG - Do not have enough data to verify VN in agent
2026-06-17 08:58:08,974 - DEBUG - VRF ids for VN ctest-vn-54024265: {}
2026-06-17 08:58:08,974 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-17 08:58:08,980 - DEBUG - Requesting: http://10.0.0.50:8082/domain/cf5e4dfc-6bab-40a5-b895-37a5d2e8113b
2026-06-17 08:58:08,990 - DEBUG - Requesting: http://10.0.0.50:8082/project/8f5c9493-a1ab-4759-a4c5-8d61df862455
2026-06-17 08:58:09,059 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6e2f9d4d-385f-4bcf-9652-97f4b69f8423
2026-06-17 08:58:09,070 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6e2f9d4d-385f-4bcf-9652-97f4b69f8423
2026-06-17 08:58:09,077 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/21036324-9fbb-4007-9972-322a91d4ab70
2026-06-17 08:58:09,084 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/21036324-9fbb-4007-9972-322a91d4ab70
2026-06-17 08:58:09,091 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/750bbf53-6b19-4a12-a024-b28e576d111e
2026-06-17 08:58:09,097 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-17 08:58:09,097 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6e2f9d4d-385f-4bcf-9652-97f4b69f8423
2026-06-17 08:58:09,105 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/21036324-9fbb-4007-9972-322a91d4ab70
2026-06-17 08:58:09,121 - INFO - Verified VN network id 12 for VN 6e2f9d4d-385f-4bcf-9652-97f4b69f8423
2026-06-17 08:58:09,121 - INFO - Verifications in API Server for VN ctest-vn-90374440 passed
2026-06-17 08:58:09,121 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6e2f9d4d-385f-4bcf-9652-97f4b69f8423
2026-06-17 08:58:09,129 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/21036324-9fbb-4007-9972-322a91d4ab70
2026-06-17 08:58:09,136 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/21036324-9fbb-4007-9972-322a91d4ab70
2026-06-17 08:58:09,142 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/750bbf53-6b19-4a12-a024-b28e576d111e
2026-06-17 08:58:09,151 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06361865:ctest-vn-90374440', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06361865', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7939737623061285839', 'uuid-lslong': '10831887131071185955'}, 'enable': 'true', 'created': '2026-06-17T08:58:06', 'last-modified': '2026-06-17T08:58:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.365477'}
2026-06-17 08:58:09,157 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-17 08:58:09,157 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90374440 passed
2026-06-17 08:58:09,157 - DEBUG - ====Verifying policy data for ctest-vn-90374440 in API_Server ======
2026-06-17 08:58:09,157 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-17 08:58:09,165 - DEBUG - Requesting: http://10.0.0.50:8082/domain/cf5e4dfc-6bab-40a5-b895-37a5d2e8113b
2026-06-17 08:58:09,177 - DEBUG - Requesting: http://10.0.0.50:8082/project/8f5c9493-a1ab-4759-a4c5-8d61df862455
2026-06-17 08:58:09,251 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6e2f9d4d-385f-4bcf-9652-97f4b69f8423
2026-06-17 08:58:09,260 - DEBUG - ==>Verifying data for policy with id: 12a16d2c-2e67-4383-bd7b-a2fa5bb10b43, fqn: ['default-domain', 'ctest-TestBasicPolicy-06361865', 'ctest-policy-allow-all-55418284']
2026-06-17 08:58:09,260 - INFO - VN ctest-vn-90374440 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-17 08:58:09,260 - DEBUG - Verifying the vn in opserver
2026-06-17 08:58:09,260 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06361865:ctest-vn-90374440 virtual network link through opserver 10.0.0.50
2026-06-17 08:58:09,260 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-06-17 08:58:09,271 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06361865:ctest-vn-90374440', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06361865:ctest-vn-90374440?flat'}
2026-06-17 08:58:09,271 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06361865:ctest-vn-90374440 is found in opserver
2026-06-17 08:58:09,280 - DEBUG - Do not have enough data to verify VN in agent
2026-06-17 08:58:09,285 - DEBUG - VRF ids for VN ctest-vn-90374440: {}
2026-06-17 08:58:09,342 - DEBUG - Services list from nova: [