2026-06-18 13:06:20,691 - INFO - Domain Default found not creating
2026-06-18 13:06:20,822 - INFO - Project ctest-TestBasicPolicy-22122949 not found, creating it
2026-06-18 13:06:21,270 - INFO - Created Project:ctest-TestBasicPolicy-22122949, ID : 5a976503-7dd6-4429-8b1e-26526b353c07
2026-06-18 13:06:22,659 - INFO - ================================================================================
2026-06-18 13:06:22,659 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-06-18 13:06:22,659 - 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-18 13:06:22,912 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.192': '0'}} with
2026-06-18 13:06:22,912 - INFO - Initial checks done. Running the testcase now
2026-06-18 13:06:22,912 - INFO -
2026-06-18 13:06:23,451 - DEBUG - Response for create_network : {'network': {'id': '576d8419-008e-4ec2-b3cf-ffc729b24dac', 'name': 'ctest-vn-40755022', 'tenant_id': '5a9765037dd644298b1e26526b353c07', 'project_id': '5a9765037dd644298b1e26526b353c07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22122949', 'ctest-vn-40755022'], 'port_security_enabled': True, 'description': ''}}
2026-06-18 13:06:23,611 - DEBUG - Response for create_subnet : {'subnet': {'id': '54c13cf9-aa71-400d-8ddc-603108926260', 'name': '', 'tenant_id': '5a9765037dd644298b1e26526b353c07', 'network_id': '576d8419-008e-4ec2-b3cf-ffc729b24dac', 'ip_version': 4, 'cidr': '159.35.227.64/26', 'allocation_pools': [{'start': '159.35.227.66', 'end': '159.35.227.126'}], 'gateway_ip': '159.35.227.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '159.35.227.66', 'tags': [], 'project_id': '5a9765037dd644298b1e26526b353c07'}}
2026-06-18 13:06:23,624 - INFO - Created VN ctest-vn-40755022
2026-06-18 13:06:23,679 - DEBUG - VN ctest-vn-40755022 UUID is 576d8419-008e-4ec2-b3cf-ffc729b24dac
2026-06-18 13:06:23,961 - DEBUG - Response for create_network : {'network': {'id': '29cad6bc-a282-4a2c-ad60-d80049034ccd', 'name': 'ctest-vn-18244927', 'tenant_id': '5a9765037dd644298b1e26526b353c07', 'project_id': '5a9765037dd644298b1e26526b353c07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22122949', 'ctest-vn-18244927'], 'port_security_enabled': True, 'description': ''}}
2026-06-18 13:06:24,133 - DEBUG - Response for create_subnet : {'subnet': {'id': '00702d0e-c201-4dc4-9dca-edc257789831', 'name': '', 'tenant_id': '5a9765037dd644298b1e26526b353c07', 'network_id': '29cad6bc-a282-4a2c-ad60-d80049034ccd', 'ip_version': 4, 'cidr': '172.54.76.0/26', 'allocation_pools': [{'start': '172.54.76.2', 'end': '172.54.76.62'}], 'gateway_ip': '172.54.76.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '172.54.76.2', 'tags': [], 'project_id': '5a9765037dd644298b1e26526b353c07'}}
2026-06-18 13:06:24,147 - INFO - Created VN ctest-vn-18244927
2026-06-18 13:06:24,199 - DEBUG - VN ctest-vn-18244927 UUID is 29cad6bc-a282-4a2c-ad60-d80049034ccd
2026-06-18 13:06:24,339 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-22122949:ctest-vn-40755022, 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-22122949:ctest-vn-18244927, 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-18 13:06:24,610 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '576d8419-008e-4ec2-b3cf-ffc729b24dac', 'name': 'ctest-vn-40755022', 'tenant_id': '5a9765037dd644298b1e26526b353c07', 'project_id': '5a9765037dd644298b1e26526b353c07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['54c13cf9-aa71-400d-8ddc-603108926260'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22122949', 'ctest-vn-40755022'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22122949', 'ctest-policy-allow-all-32492386']], 'subnet_ipam': [{'subnet_cidr': '159.35.227.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-18 13:06:24,826 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '29cad6bc-a282-4a2c-ad60-d80049034ccd', 'name': 'ctest-vn-18244927', 'tenant_id': '5a9765037dd644298b1e26526b353c07', 'project_id': '5a9765037dd644298b1e26526b353c07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['00702d0e-c201-4dc4-9dca-edc257789831'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22122949', 'ctest-vn-18244927'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22122949', 'ctest-policy-allow-all-32492386']], 'subnet_ipam': [{'subnet_cidr': '172.54.76.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-18 13:06:24,991 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-18 13:06:25,306 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-18 13:06:25,327 - DEBUG - Requesting: http://10.0.0.50:8082/domain/96e5e975-a248-431e-b6ac-11917f385982
2026-06-18 13:06:25,338 - DEBUG - Requesting: http://10.0.0.50:8082/project/5a976503-7dd6-4429-8b1e-26526b353c07
2026-06-18 13:06:25,408 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/576d8419-008e-4ec2-b3cf-ffc729b24dac
2026-06-18 13:06:25,418 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/576d8419-008e-4ec2-b3cf-ffc729b24dac
2026-06-18 13:06:25,426 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/892c0547-cf22-4e85-b058-59348672f59b
2026-06-18 13:06:25,432 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/892c0547-cf22-4e85-b058-59348672f59b
2026-06-18 13:06:25,438 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a1e76ebe-c338-4031-bf39-0fe67a8bd874
2026-06-18 13:06:25,445 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-18 13:06:25,445 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/576d8419-008e-4ec2-b3cf-ffc729b24dac
2026-06-18 13:06:25,453 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/892c0547-cf22-4e85-b058-59348672f59b
2026-06-18 13:06:25,464 - INFO - Verified VN network id 11 for VN 576d8419-008e-4ec2-b3cf-ffc729b24dac
2026-06-18 13:06:25,464 - INFO - Verifications in API Server for VN ctest-vn-40755022 passed
2026-06-18 13:06:25,464 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/576d8419-008e-4ec2-b3cf-ffc729b24dac
2026-06-18 13:06:25,472 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/892c0547-cf22-4e85-b058-59348672f59b
2026-06-18 13:06:25,478 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/892c0547-cf22-4e85-b058-59348672f59b
2026-06-18 13:06:25,483 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a1e76ebe-c338-4031-bf39-0fe67a8bd874
2026-06-18 13:06:25,493 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22122949:ctest-vn-40755022', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22122949', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6299836696679567042', 'uuid-lslong': '12956855883831332268'}, 'enable': 'true', 'created': '2026-06-18T13:06:23', 'last-modified': '2026-06-18T13:06:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.901846'}
2026-06-18 13:06:25,498 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-18 13:06:25,498 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-40755022 passed
2026-06-18 13:06:25,498 - DEBUG - ====Verifying policy data for ctest-vn-40755022 in API_Server ======
2026-06-18 13:06:25,499 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-18 13:06:25,503 - DEBUG - Requesting: http://10.0.0.50:8082/domain/96e5e975-a248-431e-b6ac-11917f385982
2026-06-18 13:06:25,513 - DEBUG - Requesting: http://10.0.0.50:8082/project/5a976503-7dd6-4429-8b1e-26526b353c07
2026-06-18 13:06:25,575 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/576d8419-008e-4ec2-b3cf-ffc729b24dac
2026-06-18 13:06:25,583 - DEBUG - ==>Verifying data for policy with id: 4f7f730d-215b-4b7c-9b36-b18b287f0544, fqn: ['default-domain', 'ctest-TestBasicPolicy-22122949', 'ctest-policy-allow-all-32492386']
2026-06-18 13:06:25,583 - INFO - VN ctest-vn-40755022 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-18 13:06:25,584 - DEBUG - Verifying the vn in opserver
2026-06-18 13:06:25,584 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22122949:ctest-vn-40755022 virtual network link through opserver 10.0.0.50
2026-06-18 13:06:25,584 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-06-18 13:06:25,897 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-06-18 13:06:25,942 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22122949:ctest-vn-40755022', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22122949:ctest-vn-40755022?flat'}
2026-06-18 13:06:25,942 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22122949:ctest-vn-40755022 is found in opserver
2026-06-18 13:06:25,951 - DEBUG - Do not have enough data to verify VN in agent
2026-06-18 13:06:25,955 - DEBUG - VRF ids for VN ctest-vn-40755022: {}
2026-06-18 13:06:25,955 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-18 13:06:25,959 - DEBUG - Requesting: http://10.0.0.50:8082/domain/96e5e975-a248-431e-b6ac-11917f385982
2026-06-18 13:06:25,969 - DEBUG - Requesting: http://10.0.0.50:8082/project/5a976503-7dd6-4429-8b1e-26526b353c07
2026-06-18 13:06:26,037 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/29cad6bc-a282-4a2c-ad60-d80049034ccd
2026-06-18 13:06:26,047 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/29cad6bc-a282-4a2c-ad60-d80049034ccd
2026-06-18 13:06:26,054 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4f9dc1a9-fc19-4c72-a4c5-8ddf143fa8f4
2026-06-18 13:06:26,062 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4f9dc1a9-fc19-4c72-a4c5-8ddf143fa8f4
2026-06-18 13:06:26,067 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8c020607-29f8-4f54-97bb-a56bf7699772
2026-06-18 13:06:26,072 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-18 13:06:26,072 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/29cad6bc-a282-4a2c-ad60-d80049034ccd
2026-06-18 13:06:26,079 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4f9dc1a9-fc19-4c72-a4c5-8ddf143fa8f4
2026-06-18 13:06:26,091 - INFO - Verified VN network id 12 for VN 29cad6bc-a282-4a2c-ad60-d80049034ccd
2026-06-18 13:06:26,091 - INFO - Verifications in API Server for VN ctest-vn-18244927 passed
2026-06-18 13:06:26,091 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/29cad6bc-a282-4a2c-ad60-d80049034ccd
2026-06-18 13:06:26,099 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4f9dc1a9-fc19-4c72-a4c5-8ddf143fa8f4
2026-06-18 13:06:26,106 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4f9dc1a9-fc19-4c72-a4c5-8ddf143fa8f4
2026-06-18 13:06:26,112 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8c020607-29f8-4f54-97bb-a56bf7699772
2026-06-18 13:06:26,124 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22122949:ctest-vn-18244927', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22122949', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3011455406519241260', 'uuid-lslong': '12493222862062308557'}, 'enable': 'true', 'created': '2026-06-18T13:06:23', 'last-modified': '2026-06-18T13:06:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.316223'}
2026-06-18 13:06:26,129 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-18 13:06:26,129 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18244927 passed
2026-06-18 13:06:26,129 - DEBUG - ====Verifying policy data for ctest-vn-18244927 in API_Server ======
2026-06-18 13:06:26,129 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-18 13:06:26,148 - DEBUG - Requesting: http://10.0.0.50:8082/domain/96e5e975-a248-431e-b6ac-11917f385982
2026-06-18 13:06:26,191 - DEBUG - Requesting: http://10.0.0.50:8082/project/5a976503-7dd6-4429-8b1e-26526b353c07
2026-06-18 13:06:26,306 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/29cad6bc-a282-4a2c-ad60-d80049034ccd
2026-06-18 13:06:26,348 - DEBUG - ==>Verifying data for policy with id: 4f7f730d-215b-4b7c-9b36-b18b287f0544, fqn: ['default-domain', 'ctest-TestBasicPolicy-22122949', 'ctest-policy-allow-all-32492386']
2026-06-18 13:06:26,348 - INFO - VN ctest-vn-18244927 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-18 13:06:26,348 - DEBUG - Verifying the vn in opserver
2026-06-18 13:06:26,348 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22122949:ctest-vn-18244927 virtual network link through opserver 10.0.0.50
2026-06-18 13:06:26,348 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-06-18 13:06:26,357 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22122949:ctest-vn-18244927', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22122949:ctest-vn-18244927?flat'}
2026-06-18 13:06:26,357 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22122949:ctest-vn-18244927 is found in opserver
2026-06-18 13:06:26,368 - DEBUG - Do not have enough data to verify VN in agent
2026-06-18 13:06:26,373 - DEBUG - VRF ids for VN ctest-vn-18244927: {}
2026-06-18 13:06:26,433 - DEBUG - Services list from nova: [