2026-09-07 13:24:30,742 - INFO - Domain Default found not creating
2026-09-07 13:24:30,917 - INFO - Project ctest-TestBasicPolicy-24670754 not found, creating it
2026-09-07 13:24:31,453 - INFO - Created Project:ctest-TestBasicPolicy-24670754, ID : 183c563d-d734-4c17-b2d5-66ff57aba17b
2026-09-07 13:24:33,307 - INFO - ================================================================================
2026-09-07 13:24:33,307 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-09-07 13:24:33,307 - 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-09-07 13:24:33,572 - DEBUG - Nothing to compare xmpp stats {'10.0.0.191': {'10.20.0.17': '0'}} with
2026-09-07 13:24:33,572 - INFO - Initial checks done. Running the testcase now
2026-09-07 13:24:33,572 - INFO -
2026-09-07 13:24:34,201 - DEBUG - Response for create_network : {'network': {'id': '60a0ba0c-e94b-490c-960a-704708df9069', 'name': 'ctest-vn-77493269', 'tenant_id': '183c563dd7344c17b2d566ff57aba17b', 'project_id': '183c563dd7344c17b2d566ff57aba17b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24670754', 'ctest-vn-77493269'], 'port_security_enabled': True, 'description': ''}}
2026-09-07 13:24:34,434 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c261ca81-a4d4-4f2b-bd77-6a2b3de34e2b', 'name': '', 'tenant_id': '183c563dd7344c17b2d566ff57aba17b', 'network_id': '60a0ba0c-e94b-490c-960a-704708df9069', 'ip_version': 4, 'cidr': '148.99.208.64/26', 'allocation_pools': [{'start': '148.99.208.66', 'end': '148.99.208.126'}], 'gateway_ip': '148.99.208.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '148.99.208.66', 'tags': [], 'project_id': '183c563dd7344c17b2d566ff57aba17b'}}
2026-09-07 13:24:34,451 - INFO - Created VN ctest-vn-77493269
2026-09-07 13:24:34,508 - DEBUG - VN ctest-vn-77493269 UUID is 60a0ba0c-e94b-490c-960a-704708df9069
2026-09-07 13:24:34,914 - DEBUG - Response for create_network : {'network': {'id': '7aaa195f-034d-418b-ae65-23b49db94aa5', 'name': 'ctest-vn-44685292', 'tenant_id': '183c563dd7344c17b2d566ff57aba17b', 'project_id': '183c563dd7344c17b2d566ff57aba17b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24670754', 'ctest-vn-44685292'], 'port_security_enabled': True, 'description': ''}}
2026-09-07 13:24:35,140 - DEBUG - Response for create_subnet : {'subnet': {'id': '4e57d521-2a34-453b-a3b8-87b6822677d5', 'name': '', 'tenant_id': '183c563dd7344c17b2d566ff57aba17b', 'network_id': '7aaa195f-034d-418b-ae65-23b49db94aa5', 'ip_version': 4, 'cidr': '116.108.140.192/26', 'allocation_pools': [{'start': '116.108.140.194', 'end': '116.108.140.254'}], 'gateway_ip': '116.108.140.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '116.108.140.194', 'tags': [], 'project_id': '183c563dd7344c17b2d566ff57aba17b'}}
2026-09-07 13:24:35,157 - INFO - Created VN ctest-vn-44685292
2026-09-07 13:24:35,211 - DEBUG - VN ctest-vn-44685292 UUID is 7aaa195f-034d-418b-ae65-23b49db94aa5
2026-09-07 13:24:35,331 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-24670754:ctest-vn-77493269, 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-24670754:ctest-vn-44685292, 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-09-07 13:24:35,664 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '60a0ba0c-e94b-490c-960a-704708df9069', 'name': 'ctest-vn-77493269', 'tenant_id': '183c563dd7344c17b2d566ff57aba17b', 'project_id': '183c563dd7344c17b2d566ff57aba17b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['c261ca81-a4d4-4f2b-bd77-6a2b3de34e2b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24670754', 'ctest-vn-77493269'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24670754', 'ctest-policy-allow-all-73000946']], 'subnet_ipam': [{'subnet_cidr': '148.99.208.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-07 13:24:35,905 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7aaa195f-034d-418b-ae65-23b49db94aa5', 'name': 'ctest-vn-44685292', 'tenant_id': '183c563dd7344c17b2d566ff57aba17b', 'project_id': '183c563dd7344c17b2d566ff57aba17b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['4e57d521-2a34-453b-a3b8-87b6822677d5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24670754', 'ctest-vn-44685292'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24670754', 'ctest-policy-allow-all-73000946']], 'subnet_ipam': [{'subnet_cidr': '116.108.140.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-07 13:24:36,079 - DEBUG - Requesting: http://10.0.0.191:8082/domains
2026-09-07 13:24:36,444 - DEBUG - Requesting: http://10.0.0.191:8082/domains
2026-09-07 13:24:36,473 - DEBUG - Requesting: http://10.0.0.191:8082/domain/649f1eb8-50d6-4305-a573-1e7dba4d8d4a
2026-09-07 13:24:36,485 - DEBUG - Requesting: http://10.0.0.191:8082/project/183c563d-d734-4c17-b2d5-66ff57aba17b
2026-09-07 13:24:36,569 - DEBUG - Requesting: http://10.0.0.191:8082/virtual-network/60a0ba0c-e94b-490c-960a-704708df9069
2026-09-07 13:24:36,584 - DEBUG - Requesting: http://10.0.0.191:8082/virtual-network/60a0ba0c-e94b-490c-960a-704708df9069
2026-09-07 13:24:36,597 - DEBUG - Requesting: http://10.0.0.191:8082/routing-instance/8b154e07-bf6b-4bb3-8dc9-3a4ea7081c83
2026-09-07 13:24:36,606 - DEBUG - Requesting: http://10.0.0.191:8082/routing-instance/8b154e07-bf6b-4bb3-8dc9-3a4ea7081c83
2026-09-07 13:24:36,615 - DEBUG - Requesting: http://10.0.0.191:8082/route-target/8e9f8cc5-c12f-4954-adb7-f4e01abfc2f8
2026-09-07 13:24:36,622 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-07 13:24:36,623 - DEBUG - Requesting: http://10.0.0.191:8082/virtual-network/60a0ba0c-e94b-490c-960a-704708df9069
2026-09-07 13:24:36,633 - DEBUG - Requesting: http://10.0.0.191:8082/routing-instance/8b154e07-bf6b-4bb3-8dc9-3a4ea7081c83
2026-09-07 13:24:36,650 - INFO - Verified VN network id 12 for VN 60a0ba0c-e94b-490c-960a-704708df9069
2026-09-07 13:24:36,651 - INFO - Verifications in API Server for VN ctest-vn-77493269 passed
2026-09-07 13:24:36,651 - DEBUG - Requesting: http://10.0.0.191:8082/virtual-network/60a0ba0c-e94b-490c-960a-704708df9069
2026-09-07 13:24:36,663 - DEBUG - Requesting: http://10.0.0.191:8082/routing-instance/8b154e07-bf6b-4bb3-8dc9-3a4ea7081c83
2026-09-07 13:24:36,670 - DEBUG - Requesting: http://10.0.0.191:8082/routing-instance/8b154e07-bf6b-4bb3-8dc9-3a4ea7081c83
2026-09-07 13:24:36,677 - DEBUG - Requesting: http://10.0.0.191:8082/route-target/8e9f8cc5-c12f-4954-adb7-f4e01abfc2f8
2026-09-07 13:24:36,690 - DEBUG - Control-node 10.0.0.191 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24670754:ctest-vn-77493269', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24670754', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6962769588531185932', 'uuid-lslong': '10811577305850155113'}, 'enable': 'true', 'created': '2026-09-07T13:24:34', 'last-modified': '2026-09-07T13:24:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.059551'}
2026-09-07 13:24:36,697 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-07 13:24:36,697 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77493269 passed
2026-09-07 13:24:36,698 - DEBUG - ====Verifying policy data for ctest-vn-77493269 in API_Server ======
2026-09-07 13:24:36,698 - DEBUG - Requesting: http://10.0.0.191:8082/domains
2026-09-07 13:24:36,704 - DEBUG - Requesting: http://10.0.0.191:8082/domain/649f1eb8-50d6-4305-a573-1e7dba4d8d4a
2026-09-07 13:24:36,717 - DEBUG - Requesting: http://10.0.0.191:8082/project/183c563d-d734-4c17-b2d5-66ff57aba17b
2026-09-07 13:24:36,801 - DEBUG - Requesting: http://10.0.0.191:8082/virtual-network/60a0ba0c-e94b-490c-960a-704708df9069
2026-09-07 13:24:36,813 - DEBUG - ==>Verifying data for policy with id: b2c19d77-3923-40a6-8c7c-acc03b815274, fqn: ['default-domain', 'ctest-TestBasicPolicy-24670754', 'ctest-policy-allow-all-73000946']
2026-09-07 13:24:36,813 - INFO - VN ctest-vn-77493269 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-07 13:24:36,814 - DEBUG - Verifying the vn in opserver
2026-09-07 13:24:36,814 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24670754:ctest-vn-77493269 virtual network link through opserver 10.0.0.191
2026-09-07 13:24:36,814 - DEBUG - Requesting: http://10.0.0.191:8081/analytics/uves/virtual-networks
2026-09-07 13:24:37,208 - DEBUG - Requesting: http://10.0.0.191:8081/analytics/uves/virtual-networks
2026-09-07 13:24:37,273 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24670754:ctest-vn-77493269', 'href': 'http://10.0.0.191:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24670754:ctest-vn-77493269?flat'}
2026-09-07 13:24:37,273 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24670754:ctest-vn-77493269 is found in opserver
2026-09-07 13:24:37,284 - DEBUG - Do not have enough data to verify VN in agent
2026-09-07 13:24:37,289 - DEBUG - VRF ids for VN ctest-vn-77493269: {}
2026-09-07 13:24:37,289 - DEBUG - Requesting: http://10.0.0.191:8082/domains
2026-09-07 13:24:37,294 - DEBUG - Requesting: http://10.0.0.191:8082/domain/649f1eb8-50d6-4305-a573-1e7dba4d8d4a
2026-09-07 13:24:37,305 - DEBUG - Requesting: http://10.0.0.191:8082/project/183c563d-d734-4c17-b2d5-66ff57aba17b
2026-09-07 13:24:37,388 - DEBUG - Requesting: http://10.0.0.191:8082/virtual-network/7aaa195f-034d-418b-ae65-23b49db94aa5
2026-09-07 13:24:37,400 - DEBUG - Requesting: http://10.0.0.191:8082/virtual-network/7aaa195f-034d-418b-ae65-23b49db94aa5
2026-09-07 13:24:37,410 - DEBUG - Requesting: http://10.0.0.191:8082/routing-instance/7b5cfb5c-b97e-4bdc-a7dd-204e3fdd76d0
2026-09-07 13:24:37,417 - DEBUG - Requesting: http://10.0.0.191:8082/routing-instance/7b5cfb5c-b97e-4bdc-a7dd-204e3fdd76d0
2026-09-07 13:24:37,424 - DEBUG - Requesting: http://10.0.0.191:8082/route-target/46b51b8a-ec35-42ed-a5f7-a30643543db7
2026-09-07 13:24:37,431 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-07 13:24:37,431 - DEBUG - Requesting: http://10.0.0.191:8082/virtual-network/7aaa195f-034d-418b-ae65-23b49db94aa5
2026-09-07 13:24:37,442 - DEBUG - Requesting: http://10.0.0.191:8082/routing-instance/7b5cfb5c-b97e-4bdc-a7dd-204e3fdd76d0
2026-09-07 13:24:37,458 - INFO - Verified VN network id 13 for VN 7aaa195f-034d-418b-ae65-23b49db94aa5
2026-09-07 13:24:37,459 - INFO - Verifications in API Server for VN ctest-vn-44685292 passed
2026-09-07 13:24:37,459 - DEBUG - Requesting: http://10.0.0.191:8082/virtual-network/7aaa195f-034d-418b-ae65-23b49db94aa5
2026-09-07 13:24:37,469 - DEBUG - Requesting: http://10.0.0.191:8082/routing-instance/7b5cfb5c-b97e-4bdc-a7dd-204e3fdd76d0
2026-09-07 13:24:37,477 - DEBUG - Requesting: http://10.0.0.191:8082/routing-instance/7b5cfb5c-b97e-4bdc-a7dd-204e3fdd76d0
2026-09-07 13:24:37,484 - DEBUG - Requesting: http://10.0.0.191:8082/route-target/46b51b8a-ec35-42ed-a5f7-a30643543db7
2026-09-07 13:24:37,496 - DEBUG - Control-node 10.0.0.191 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24670754:ctest-vn-44685292', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24670754', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8838905114536001931', 'uuid-lslong': '12566489593894488741'}, 'enable': 'true', 'created': '2026-09-07T13:24:34', 'last-modified': '2026-09-07T13:24:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.623928'}
2026-09-07 13:24:37,503 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-07 13:24:37,503 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44685292 passed
2026-09-07 13:24:37,503 - DEBUG - ====Verifying policy data for ctest-vn-44685292 in API_Server ======
2026-09-07 13:24:37,503 - DEBUG - Requesting: http://10.0.0.191:8082/domains
2026-09-07 13:24:37,509 - DEBUG - Requesting: http://10.0.0.191:8082/domain/649f1eb8-50d6-4305-a573-1e7dba4d8d4a
2026-09-07 13:24:37,519 - DEBUG - Requesting: http://10.0.0.191:8082/project/183c563d-d734-4c17-b2d5-66ff57aba17b
2026-09-07 13:24:37,594 - DEBUG - Requesting: http://10.0.0.191:8082/virtual-network/7aaa195f-034d-418b-ae65-23b49db94aa5
2026-09-07 13:24:37,605 - DEBUG - ==>Verifying data for policy with id: b2c19d77-3923-40a6-8c7c-acc03b815274, fqn: ['default-domain', 'ctest-TestBasicPolicy-24670754', 'ctest-policy-allow-all-73000946']
2026-09-07 13:24:37,605 - INFO - VN ctest-vn-44685292 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-07 13:24:37,605 - DEBUG - Verifying the vn in opserver
2026-09-07 13:24:37,605 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24670754:ctest-vn-44685292 virtual network link through opserver 10.0.0.191
2026-09-07 13:24:37,605 - DEBUG - Requesting: http://10.0.0.191:8081/analytics/uves/virtual-networks
2026-09-07 13:24:37,616 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24670754:ctest-vn-44685292', 'href': 'http://10.0.0.191:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24670754:ctest-vn-44685292?flat'}
2026-09-07 13:24:37,616 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24670754:ctest-vn-44685292 is found in opserver
2026-09-07 13:24:37,628 - DEBUG - Do not have enough data to verify VN in agent
2026-09-07 13:24:37,633 - DEBUG - VRF ids for VN ctest-vn-44685292: {}
2026-09-07 13:24:37,695 - DEBUG - Services list from nova: [