2026-08-31 02:22:33,091 - INFO - Domain Default found not creating
2026-08-31 02:22:33,247 - INFO - Project ctest-TestBasicPolicy-94137890 not found, creating it
2026-08-31 02:22:33,729 - INFO - Created Project:ctest-TestBasicPolicy-94137890, ID : 14ac731b-2126-431d-b08b-c004c11855e9
2026-08-31 02:22:35,271 - INFO - ================================================================================
2026-08-31 02:22:35,271 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-08-31 02:22:35,271 - 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-08-31 02:22:35,538 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.17': '0'}} with
2026-08-31 02:22:35,538 - INFO - Initial checks done. Running the testcase now
2026-08-31 02:22:35,538 - INFO -
2026-08-31 02:22:36,173 - DEBUG - Response for create_network : {'network': {'id': '19a70456-f140-45b1-b4ca-3da7de322f4e', 'name': 'ctest-vn-67850602', 'tenant_id': '14ac731b2126431db08bc004c11855e9', 'project_id': '14ac731b2126431db08bc004c11855e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94137890', 'ctest-vn-67850602'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2026-08-31 02:22:36,370 - DEBUG - Response for create_subnet : {'subnet': {'id': '774b1641-ca99-4149-a540-6c0178cb1468', 'name': '', 'tenant_id': '14ac731b2126431db08bc004c11855e9', 'network_id': '19a70456-f140-45b1-b4ca-3da7de322f4e', 'ip_version': 4, 'cidr': '74.252.205.192/26', 'allocation_pools': [{'start': '74.252.205.194', 'end': '74.252.205.254'}], 'gateway_ip': '74.252.205.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-08-31T02:22:36.280001', 'updated_at': '2026-08-31T02:22:36.280001', 'dns_server_address': '74.252.205.194', 'tags': [], 'project_id': '14ac731b2126431db08bc004c11855e9'}}
2026-08-31 02:22:36,388 - INFO - Created VN ctest-vn-67850602
2026-08-31 02:22:36,441 - DEBUG - VN ctest-vn-67850602 UUID is 19a70456-f140-45b1-b4ca-3da7de322f4e
2026-08-31 02:22:36,756 - DEBUG - Response for create_network : {'network': {'id': 'e181f4f1-d28d-4008-b313-8b8d17f9917f', 'name': 'ctest-vn-90592135', 'tenant_id': '14ac731b2126431db08bc004c11855e9', 'project_id': '14ac731b2126431db08bc004c11855e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94137890', 'ctest-vn-90592135'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2026-08-31 02:22:36,962 - DEBUG - Response for create_subnet : {'subnet': {'id': '1b4cfef5-4de2-486f-84dc-f73d6f9689c7', 'name': '', 'tenant_id': '14ac731b2126431db08bc004c11855e9', 'network_id': 'e181f4f1-d28d-4008-b313-8b8d17f9917f', 'ip_version': 4, 'cidr': '202.45.51.0/26', 'allocation_pools': [{'start': '202.45.51.2', 'end': '202.45.51.62'}], 'gateway_ip': '202.45.51.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-08-31T02:22:36.880925', 'updated_at': '2026-08-31T02:22:36.880925', 'dns_server_address': '202.45.51.2', 'tags': [], 'project_id': '14ac731b2126431db08bc004c11855e9'}}
2026-08-31 02:22:36,982 - INFO - Created VN ctest-vn-90592135
2026-08-31 02:22:37,037 - DEBUG - VN ctest-vn-90592135 UUID is e181f4f1-d28d-4008-b313-8b8d17f9917f
2026-08-31 02:22:37,148 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-94137890:ctest-vn-67850602, 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-94137890:ctest-vn-90592135, 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-08-31 02:22:37,481 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '19a70456-f140-45b1-b4ca-3da7de322f4e', 'name': 'ctest-vn-67850602', 'tenant_id': '14ac731b2126431db08bc004c11855e9', 'project_id': '14ac731b2126431db08bc004c11855e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['774b1641-ca99-4149-a540-6c0178cb1468'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94137890', 'ctest-vn-67850602'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94137890', 'ctest-policy-allow-all-61276070']], 'subnet_ipam': [{'subnet_cidr': '74.252.205.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-08-31T02:22:36.116712', 'updated_at': '2026-08-31T02:22:36.306937'}}
2026-08-31 02:22:37,746 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e181f4f1-d28d-4008-b313-8b8d17f9917f', 'name': 'ctest-vn-90592135', 'tenant_id': '14ac731b2126431db08bc004c11855e9', 'project_id': '14ac731b2126431db08bc004c11855e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['1b4cfef5-4de2-486f-84dc-f73d6f9689c7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94137890', 'ctest-vn-90592135'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94137890', 'ctest-policy-allow-all-61276070']], 'subnet_ipam': [{'subnet_cidr': '202.45.51.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-08-31T02:22:36.720777', 'updated_at': '2026-08-31T02:22:36.899560'}}
2026-08-31 02:22:37,905 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-08-31 02:22:38,223 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-08-31 02:22:38,254 - DEBUG - Requesting: http://10.0.0.177:8082/domain/e72092a5-ed6c-4e44-9e26-97f06214b8ee
2026-08-31 02:22:38,267 - DEBUG - Requesting: http://10.0.0.177:8082/project/14ac731b-2126-431d-b08b-c004c11855e9
2026-08-31 02:22:38,351 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/19a70456-f140-45b1-b4ca-3da7de322f4e
2026-08-31 02:22:38,367 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/19a70456-f140-45b1-b4ca-3da7de322f4e
2026-08-31 02:22:38,377 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/b1c7caa1-f61f-47ff-b0b2-55f253ae40bf
2026-08-31 02:22:38,385 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/b1c7caa1-f61f-47ff-b0b2-55f253ae40bf
2026-08-31 02:22:38,393 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/bd4c761c-e480-495f-86d3-affac99ee54d
2026-08-31 02:22:38,401 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-31 02:22:38,401 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/19a70456-f140-45b1-b4ca-3da7de322f4e
2026-08-31 02:22:38,410 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/b1c7caa1-f61f-47ff-b0b2-55f253ae40bf
2026-08-31 02:22:38,427 - INFO - Verified VN network id 12 for VN 19a70456-f140-45b1-b4ca-3da7de322f4e
2026-08-31 02:22:38,427 - INFO - Verifications in API Server for VN ctest-vn-67850602 passed
2026-08-31 02:22:38,427 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/19a70456-f140-45b1-b4ca-3da7de322f4e
2026-08-31 02:22:38,437 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/b1c7caa1-f61f-47ff-b0b2-55f253ae40bf
2026-08-31 02:22:38,446 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/b1c7caa1-f61f-47ff-b0b2-55f253ae40bf
2026-08-31 02:22:38,454 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/bd4c761c-e480-495f-86d3-affac99ee54d
2026-08-31 02:22:38,468 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94137890:ctest-vn-67850602', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94137890', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1848450943520097713', 'uuid-lslong': '13027292663319244622'}, 'enable': 'true', 'created': '2026-08-31T02:22:36', 'last-modified': '2026-08-31T02:22:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.019685'}
2026-08-31 02:22:38,475 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-31 02:22:38,475 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67850602 passed
2026-08-31 02:22:38,475 - DEBUG - ====Verifying policy data for ctest-vn-67850602 in API_Server ======
2026-08-31 02:22:38,476 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-08-31 02:22:38,482 - DEBUG - Requesting: http://10.0.0.177:8082/domain/e72092a5-ed6c-4e44-9e26-97f06214b8ee
2026-08-31 02:22:38,493 - DEBUG - Requesting: http://10.0.0.177:8082/project/14ac731b-2126-431d-b08b-c004c11855e9
2026-08-31 02:22:38,582 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/19a70456-f140-45b1-b4ca-3da7de322f4e
2026-08-31 02:22:38,624 - DEBUG - ==>Verifying data for policy with id: f60677a9-f1ff-4cda-a275-34c7f1e3f886, fqn: ['default-domain', 'ctest-TestBasicPolicy-94137890', 'ctest-policy-allow-all-61276070']
2026-08-31 02:22:38,624 - INFO - VN ctest-vn-67850602 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-31 02:22:38,624 - DEBUG - Verifying the vn in opserver
2026-08-31 02:22:38,624 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94137890:ctest-vn-67850602 virtual network link through opserver 10.0.0.177
2026-08-31 02:22:38,624 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks
2026-08-31 02:22:38,963 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks
2026-08-31 02:22:39,026 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94137890:ctest-vn-67850602', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94137890:ctest-vn-67850602?flat'}
2026-08-31 02:22:39,026 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94137890:ctest-vn-67850602 is found in opserver
2026-08-31 02:22:39,038 - DEBUG - Do not have enough data to verify VN in agent
2026-08-31 02:22:39,044 - DEBUG - VRF ids for VN ctest-vn-67850602: {}
2026-08-31 02:22:39,044 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-08-31 02:22:39,051 - DEBUG - Requesting: http://10.0.0.177:8082/domain/e72092a5-ed6c-4e44-9e26-97f06214b8ee
2026-08-31 02:22:39,064 - DEBUG - Requesting: http://10.0.0.177:8082/project/14ac731b-2126-431d-b08b-c004c11855e9
2026-08-31 02:22:39,141 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/e181f4f1-d28d-4008-b313-8b8d17f9917f
2026-08-31 02:22:39,155 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/e181f4f1-d28d-4008-b313-8b8d17f9917f
2026-08-31 02:22:39,165 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/40f02d24-ed09-4b19-9969-067fd46f0dd7
2026-08-31 02:22:39,174 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/40f02d24-ed09-4b19-9969-067fd46f0dd7
2026-08-31 02:22:39,183 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/dfa263d5-c785-4352-9686-2746b9585090
2026-08-31 02:22:39,191 - DEBUG - Route Targets: ['target:64512:8000006']
2026-08-31 02:22:39,191 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/e181f4f1-d28d-4008-b313-8b8d17f9917f
2026-08-31 02:22:39,202 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/40f02d24-ed09-4b19-9969-067fd46f0dd7
2026-08-31 02:22:39,218 - INFO - Verified VN network id 13 for VN e181f4f1-d28d-4008-b313-8b8d17f9917f
2026-08-31 02:22:39,218 - INFO - Verifications in API Server for VN ctest-vn-90592135 passed
2026-08-31 02:22:39,218 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/e181f4f1-d28d-4008-b313-8b8d17f9917f
2026-08-31 02:22:39,228 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/40f02d24-ed09-4b19-9969-067fd46f0dd7
2026-08-31 02:22:39,238 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/40f02d24-ed09-4b19-9969-067fd46f0dd7
2026-08-31 02:22:39,248 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/dfa263d5-c785-4352-9686-2746b9585090
2026-08-31 02:22:39,264 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94137890:ctest-vn-90592135', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94137890', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16249538249986228232', 'uuid-lslong': '12903810795455484287'}, 'enable': 'true', 'created': '2026-08-31T02:22:36', 'last-modified': '2026-08-31T02:22:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.551151'}
2026-08-31 02:22:39,271 - DEBUG - Route Targets: ['target:64512:8000006']
2026-08-31 02:22:39,271 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90592135 passed
2026-08-31 02:22:39,271 - DEBUG - ====Verifying policy data for ctest-vn-90592135 in API_Server ======
2026-08-31 02:22:39,271 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-08-31 02:22:39,277 - DEBUG - Requesting: http://10.0.0.177:8082/domain/e72092a5-ed6c-4e44-9e26-97f06214b8ee
2026-08-31 02:22:39,289 - DEBUG - Requesting: http://10.0.0.177:8082/project/14ac731b-2126-431d-b08b-c004c11855e9
2026-08-31 02:22:39,371 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/e181f4f1-d28d-4008-b313-8b8d17f9917f
2026-08-31 02:22:39,381 - DEBUG - ==>Verifying data for policy with id: f60677a9-f1ff-4cda-a275-34c7f1e3f886, fqn: ['default-domain', 'ctest-TestBasicPolicy-94137890', 'ctest-policy-allow-all-61276070']
2026-08-31 02:22:39,381 - INFO - VN ctest-vn-90592135 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-31 02:22:39,382 - DEBUG - Verifying the vn in opserver
2026-08-31 02:22:39,382 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94137890:ctest-vn-90592135 virtual network link through opserver 10.0.0.177
2026-08-31 02:22:39,382 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks
2026-08-31 02:22:39,394 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94137890:ctest-vn-90592135', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94137890:ctest-vn-90592135?flat'}
2026-08-31 02:22:39,394 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94137890:ctest-vn-90592135 is found in opserver
2026-08-31 02:22:39,407 - DEBUG - Do not have enough data to verify VN in agent
2026-08-31 02:22:39,411 - DEBUG - VRF ids for VN ctest-vn-90592135: {}
2026-08-31 02:22:39,472 - DEBUG - Services list from nova: [