2026-04-30 02:13:11,909 - INFO - Reading existing Domain with UUID 54f544c9-c831-4d04-9bb9-e86845e32e36
2026-04-30 02:13:11,921 - INFO - Using existing domain ['admin_domain'](54f544c9-c831-4d04-9bb9-e86845e32e36)
2026-04-30 02:13:12,216 - INFO - Project ctest-TestBasicPolicy-61370539 not found, creating it
2026-04-30 02:13:12,735 - INFO - Created Project:ctest-TestBasicPolicy-61370539, ID : 55232f47-d9db-4078-92d3-bef4d5a360ec
2026-04-30 02:13:14,628 - INFO - ================================================================================
2026-04-30 02:13:14,628 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-30 02:13:14,628 - 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-04-30 02:13:15,022 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.0.0.27': '0'}} with
2026-04-30 02:13:15,022 - INFO - Initial checks done. Running the testcase now
2026-04-30 02:13:15,022 - INFO -
2026-04-30 02:13:15,806 - DEBUG - Response for create_network : {'network': {'id': '824d077e-c061-4ca6-b3de-9407d23038af', 'name': 'ctest-vn-91477752', 'tenant_id': '55232f47d9db407892d3bef4d5a360ec', 'project_id': '55232f47d9db407892d3bef4d5a360ec', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-61370539', 'ctest-vn-91477752'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2026-04-30 02:13:16,086 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b73b224b-c702-44a4-ac02-62f1fa9251ce', 'name': '', 'tenant_id': '55232f47d9db407892d3bef4d5a360ec', 'network_id': '824d077e-c061-4ca6-b3de-9407d23038af', 'ip_version': 4, 'cidr': '2.88.107.64/26', 'allocation_pools': [{'start': '2.88.107.66', 'end': '2.88.107.126'}], 'gateway_ip': '2.88.107.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-04-30T02:13:15.975271', 'updated_at': '2026-04-30T02:13:15.975271', 'dns_server_address': '2.88.107.66', 'tags': [], 'project_id': '55232f47d9db407892d3bef4d5a360ec'}}
2026-04-30 02:13:16,155 - INFO - Created VN ctest-vn-91477752
2026-04-30 02:13:16,213 - DEBUG - VN ctest-vn-91477752 UUID is 824d077e-c061-4ca6-b3de-9407d23038af
2026-04-30 02:13:16,722 - DEBUG - Response for create_network : {'network': {'id': '043531cf-da74-4f14-af79-b1722e1531e2', 'name': 'ctest-vn-75807542', 'tenant_id': '55232f47d9db407892d3bef4d5a360ec', 'project_id': '55232f47d9db407892d3bef4d5a360ec', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-61370539', 'ctest-vn-75807542'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2026-04-30 02:13:16,958 - DEBUG - Response for create_subnet : {'subnet': {'id': '92e7c483-b137-47c2-a5f2-cf9c88aac0f7', 'name': '', 'tenant_id': '55232f47d9db407892d3bef4d5a360ec', 'network_id': '043531cf-da74-4f14-af79-b1722e1531e2', 'ip_version': 4, 'cidr': '147.19.232.0/26', 'allocation_pools': [{'start': '147.19.232.2', 'end': '147.19.232.62'}], 'gateway_ip': '147.19.232.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-04-30T02:13:16.859969', 'updated_at': '2026-04-30T02:13:16.859969', 'dns_server_address': '147.19.232.2', 'tags': [], 'project_id': '55232f47d9db407892d3bef4d5a360ec'}}
2026-04-30 02:13:17,023 - INFO - Created VN ctest-vn-75807542
2026-04-30 02:13:17,081 - DEBUG - VN ctest-vn-75807542 UUID is 043531cf-da74-4f14-af79-b1722e1531e2
2026-04-30 02:13:17,302 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-61370539:ctest-vn-91477752, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-61370539:ctest-vn-75807542, 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-04-30 02:13:17,729 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '824d077e-c061-4ca6-b3de-9407d23038af', 'name': 'ctest-vn-91477752', 'tenant_id': '55232f47d9db407892d3bef4d5a360ec', 'project_id': '55232f47d9db407892d3bef4d5a360ec', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b73b224b-c702-44a4-ac02-62f1fa9251ce'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-61370539', 'ctest-vn-91477752'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-61370539', 'ctest-policy-allow-all-46481843']], 'subnet_ipam': [{'subnet_cidr': '2.88.107.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-04-30T02:13:15.721531', 'updated_at': '2026-04-30T02:13:15.990272'}}
2026-04-30 02:13:18,113 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '043531cf-da74-4f14-af79-b1722e1531e2', 'name': 'ctest-vn-75807542', 'tenant_id': '55232f47d9db407892d3bef4d5a360ec', 'project_id': '55232f47d9db407892d3bef4d5a360ec', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['92e7c483-b137-47c2-a5f2-cf9c88aac0f7'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-61370539', 'ctest-vn-75807542'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-61370539', 'ctest-policy-allow-all-46481843']], 'subnet_ipam': [{'subnet_cidr': '147.19.232.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-04-30T02:13:16.643257', 'updated_at': '2026-04-30T02:13:16.875714'}}
2026-04-30 02:13:18,297 - DEBUG - Requesting: https://10.0.0.27:8082/domains
2026-04-30 02:13:18,652 - DEBUG - Requesting: https://10.0.0.27:8082/domains
2026-04-30 02:13:18,741 - DEBUG - Requesting: https://10.0.0.27:8082/domain/54f544c9-c831-4d04-9bb9-e86845e32e36
2026-04-30 02:13:18,802 - DEBUG - Requesting: https://10.0.0.27:8082/project/55232f47-d9db-4078-92d3-bef4d5a360ec
2026-04-30 02:13:18,883 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/824d077e-c061-4ca6-b3de-9407d23038af
2026-04-30 02:13:18,942 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/824d077e-c061-4ca6-b3de-9407d23038af
2026-04-30 02:13:18,999 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/e28b04df-2a5e-4ece-825d-912cb9c8ea12
2026-04-30 02:13:19,053 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/e28b04df-2a5e-4ece-825d-912cb9c8ea12
2026-04-30 02:13:19,110 - DEBUG - Requesting: https://10.0.0.27:8082/route-target/850463c4-b557-440f-bc8c-39df64687c1b
2026-04-30 02:13:19,165 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-30 02:13:19,166 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/824d077e-c061-4ca6-b3de-9407d23038af
2026-04-30 02:13:19,227 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/e28b04df-2a5e-4ece-825d-912cb9c8ea12
2026-04-30 02:13:19,291 - INFO - Verified VN network id 11 for VN 824d077e-c061-4ca6-b3de-9407d23038af
2026-04-30 02:13:19,291 - INFO - Verifications in API Server for VN ctest-vn-91477752 passed
2026-04-30 02:13:19,291 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/824d077e-c061-4ca6-b3de-9407d23038af
2026-04-30 02:13:19,351 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/e28b04df-2a5e-4ece-825d-912cb9c8ea12
2026-04-30 02:13:19,410 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/e28b04df-2a5e-4ece-825d-912cb9c8ea12
2026-04-30 02:13:19,462 - DEBUG - Requesting: https://10.0.0.27:8082/route-target/850463c4-b557-440f-bc8c-39df64687c1b
2026-04-30 02:13:19,562 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-61370539:ctest-vn-91477752', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61370539', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9389169039112228006', 'uuid-lslong': '12960959538930923695'}, 'enable': 'true', 'created': '2026-04-30T02:13:15', 'last-modified': '2026-04-30T02:13:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.876264'}
2026-04-30 02:13:19,615 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-30 02:13:19,615 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91477752 passed
2026-04-30 02:13:19,616 - DEBUG - ====Verifying policy data for ctest-vn-91477752 in API_Server ======
2026-04-30 02:13:19,616 - DEBUG - Requesting: https://10.0.0.27:8082/domains
2026-04-30 02:13:19,669 - DEBUG - Requesting: https://10.0.0.27:8082/domain/54f544c9-c831-4d04-9bb9-e86845e32e36
2026-04-30 02:13:19,733 - DEBUG - Requesting: https://10.0.0.27:8082/project/55232f47-d9db-4078-92d3-bef4d5a360ec
2026-04-30 02:13:19,818 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/824d077e-c061-4ca6-b3de-9407d23038af
2026-04-30 02:13:19,874 - DEBUG - ==>Verifying data for policy with id: 4fe15d43-2d0b-418a-9802-4b7466bac761, fqn: ['admin_domain', 'ctest-TestBasicPolicy-61370539', 'ctest-policy-allow-all-46481843']
2026-04-30 02:13:19,874 - INFO - VN ctest-vn-91477752 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-30 02:13:19,874 - DEBUG - Verifying the vn in opserver
2026-04-30 02:13:19,874 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-61370539:ctest-vn-91477752 virtual network link through opserver 10.0.0.27
2026-04-30 02:13:19,875 - DEBUG - Requesting: https://10.0.0.27:8081/analytics/uves/virtual-networks
2026-04-30 02:13:20,224 - DEBUG - Requesting: https://10.0.0.27:8081/analytics/uves/virtual-networks
2026-04-30 02:13:20,345 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-61370539:ctest-vn-91477752', 'href': 'https://10.0.0.27:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-61370539:ctest-vn-91477752?flat'}
2026-04-30 02:13:20,345 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-61370539:ctest-vn-91477752 is found in opserver
2026-04-30 02:13:20,441 - DEBUG - Do not have enough data to verify VN in agent
2026-04-30 02:13:20,489 - DEBUG - VRF ids for VN ctest-vn-91477752: {}
2026-04-30 02:13:20,489 - DEBUG - Requesting: https://10.0.0.27:8082/domains
2026-04-30 02:13:20,545 - DEBUG - Requesting: https://10.0.0.27:8082/domain/54f544c9-c831-4d04-9bb9-e86845e32e36
2026-04-30 02:13:20,602 - DEBUG - Requesting: https://10.0.0.27:8082/project/55232f47-d9db-4078-92d3-bef4d5a360ec
2026-04-30 02:13:20,682 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/043531cf-da74-4f14-af79-b1722e1531e2
2026-04-30 02:13:20,742 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/043531cf-da74-4f14-af79-b1722e1531e2
2026-04-30 02:13:20,798 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/5c1954f0-ce12-4ab7-ba7b-3cea13f25d12
2026-04-30 02:13:20,853 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/5c1954f0-ce12-4ab7-ba7b-3cea13f25d12
2026-04-30 02:13:20,910 - DEBUG - Requesting: https://10.0.0.27:8082/route-target/6fe3dbb6-29fe-4dab-b886-8f64b5cae899
2026-04-30 02:13:20,969 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-30 02:13:20,969 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/043531cf-da74-4f14-af79-b1722e1531e2
2026-04-30 02:13:21,026 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/5c1954f0-ce12-4ab7-ba7b-3cea13f25d12
2026-04-30 02:13:21,093 - INFO - Verified VN network id 12 for VN 043531cf-da74-4f14-af79-b1722e1531e2
2026-04-30 02:13:21,093 - INFO - Verifications in API Server for VN ctest-vn-75807542 passed
2026-04-30 02:13:21,094 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/043531cf-da74-4f14-af79-b1722e1531e2
2026-04-30 02:13:21,150 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/5c1954f0-ce12-4ab7-ba7b-3cea13f25d12
2026-04-30 02:13:21,205 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/5c1954f0-ce12-4ab7-ba7b-3cea13f25d12
2026-04-30 02:13:21,258 - DEBUG - Requesting: https://10.0.0.27:8082/route-target/6fe3dbb6-29fe-4dab-b886-8f64b5cae899
2026-04-30 02:13:21,366 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-61370539:ctest-vn-75807542', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61370539', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '303203318710423316', 'uuid-lslong': '12644332532776907234'}, 'enable': 'true', 'created': '2026-04-30T02:13:16', 'last-modified': '2026-04-30T02:13:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.291544'}
2026-04-30 02:13:21,419 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-30 02:13:21,419 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75807542 passed
2026-04-30 02:13:21,419 - DEBUG - ====Verifying policy data for ctest-vn-75807542 in API_Server ======
2026-04-30 02:13:21,420 - DEBUG - Requesting: https://10.0.0.27:8082/domains
2026-04-30 02:13:21,473 - DEBUG - Requesting: https://10.0.0.27:8082/domain/54f544c9-c831-4d04-9bb9-e86845e32e36
2026-04-30 02:13:21,534 - DEBUG - Requesting: https://10.0.0.27:8082/project/55232f47-d9db-4078-92d3-bef4d5a360ec
2026-04-30 02:13:21,618 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/043531cf-da74-4f14-af79-b1722e1531e2
2026-04-30 02:13:21,675 - DEBUG - ==>Verifying data for policy with id: 4fe15d43-2d0b-418a-9802-4b7466bac761, fqn: ['admin_domain', 'ctest-TestBasicPolicy-61370539', 'ctest-policy-allow-all-46481843']
2026-04-30 02:13:21,675 - INFO - VN ctest-vn-75807542 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-30 02:13:21,675 - DEBUG - Verifying the vn in opserver
2026-04-30 02:13:21,675 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-61370539:ctest-vn-75807542 virtual network link through opserver 10.0.0.27
2026-04-30 02:13:21,675 - DEBUG - Requesting: https://10.0.0.27:8081/analytics/uves/virtual-networks
2026-04-30 02:13:21,729 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-61370539:ctest-vn-75807542', 'href': 'https://10.0.0.27:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-61370539:ctest-vn-75807542?flat'}
2026-04-30 02:13:21,729 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-61370539:ctest-vn-75807542 is found in opserver
2026-04-30 02:13:21,829 - DEBUG - Do not have enough data to verify VN in agent
2026-04-30 02:13:21,885 - DEBUG - VRF ids for VN ctest-vn-75807542: {}
2026-04-30 02:13:21,962 - DEBUG - Services list from nova: [