2026-02-09 13:34:06,803 - INFO - Domain Default found not creating
2026-02-09 13:34:06,984 - INFO - Project ctest-TestBasicPolicy-50745683 not found, creating it
2026-02-09 13:34:07,478 - INFO - Created Project:ctest-TestBasicPolicy-50745683, ID : daf02b9a-1608-4238-90e9-3b8934a35a9d
2026-02-09 13:34:09,018 - INFO - ================================================================================
2026-02-09 13:34:09,019 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-09 13:34:09,019 - 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-02-09 13:34:09,274 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2026-02-09 13:34:09,274 - INFO - Initial checks done. Running the testcase now
2026-02-09 13:34:09,274 - INFO -
2026-02-09 13:34:09,873 - DEBUG - Response for create_network : {'network': {'id': '32c4cb4f-5e23-4c5c-b27c-09cf211319c0', 'name': 'ctest-vn-46490391', 'tenant_id': 'daf02b9a1608423890e93b8934a35a9d', 'project_id': 'daf02b9a1608423890e93b8934a35a9d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50745683', 'ctest-vn-46490391'], 'port_security_enabled': True, 'description': ''}}
2026-02-09 13:34:10,089 - DEBUG - Response for create_subnet : {'subnet': {'id': '0fce6787-2e74-4e5f-a9fd-026ab4c03c20', 'name': '', 'tenant_id': 'daf02b9a1608423890e93b8934a35a9d', 'network_id': '32c4cb4f-5e23-4c5c-b27c-09cf211319c0', 'ip_version': 4, 'cidr': '140.91.183.0/26', 'allocation_pools': [{'start': '140.91.183.2', 'end': '140.91.183.62'}], 'gateway_ip': '140.91.183.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '140.91.183.2', 'tags': [], 'project_id': 'daf02b9a1608423890e93b8934a35a9d'}}
2026-02-09 13:34:10,107 - INFO - Created VN ctest-vn-46490391
2026-02-09 13:34:10,160 - DEBUG - VN ctest-vn-46490391 UUID is 32c4cb4f-5e23-4c5c-b27c-09cf211319c0
2026-02-09 13:34:10,483 - DEBUG - Response for create_network : {'network': {'id': 'a28c3d26-181d-4d57-b1a0-1347ece1c3e1', 'name': 'ctest-vn-81188651', 'tenant_id': 'daf02b9a1608423890e93b8934a35a9d', 'project_id': 'daf02b9a1608423890e93b8934a35a9d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50745683', 'ctest-vn-81188651'], 'port_security_enabled': True, 'description': ''}}
2026-02-09 13:34:10,641 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cec8d21b-b85e-450f-afab-24abc4f3da49', 'name': '', 'tenant_id': 'daf02b9a1608423890e93b8934a35a9d', 'network_id': 'a28c3d26-181d-4d57-b1a0-1347ece1c3e1', 'ip_version': 4, 'cidr': '38.110.238.192/26', 'allocation_pools': [{'start': '38.110.238.194', 'end': '38.110.238.254'}], 'gateway_ip': '38.110.238.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.110.238.194', 'tags': [], 'project_id': 'daf02b9a1608423890e93b8934a35a9d'}}
2026-02-09 13:34:10,661 - INFO - Created VN ctest-vn-81188651
2026-02-09 13:34:10,716 - DEBUG - VN ctest-vn-81188651 UUID is a28c3d26-181d-4d57-b1a0-1347ece1c3e1
2026-02-09 13:34:10,834 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-50745683:ctest-vn-46490391, 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-50745683:ctest-vn-81188651, 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-02-09 13:34:11,139 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '32c4cb4f-5e23-4c5c-b27c-09cf211319c0', 'name': 'ctest-vn-46490391', 'tenant_id': 'daf02b9a1608423890e93b8934a35a9d', 'project_id': 'daf02b9a1608423890e93b8934a35a9d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0fce6787-2e74-4e5f-a9fd-026ab4c03c20'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50745683', 'ctest-vn-46490391'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50745683', 'ctest-policy-allow-all-83384509']], 'subnet_ipam': [{'subnet_cidr': '140.91.183.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-09 13:34:11,348 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a28c3d26-181d-4d57-b1a0-1347ece1c3e1', 'name': 'ctest-vn-81188651', 'tenant_id': 'daf02b9a1608423890e93b8934a35a9d', 'project_id': 'daf02b9a1608423890e93b8934a35a9d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cec8d21b-b85e-450f-afab-24abc4f3da49'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50745683', 'ctest-vn-81188651'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50745683', 'ctest-policy-allow-all-83384509']], 'subnet_ipam': [{'subnet_cidr': '38.110.238.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-09 13:34:11,500 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-09 13:34:11,800 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-09 13:34:11,834 - DEBUG - Requesting: http://10.0.0.50:8082/domain/34c93b61-235d-4a2b-abf5-b890201be482
2026-02-09 13:34:11,847 - DEBUG - Requesting: http://10.0.0.50:8082/project/daf02b9a-1608-4238-90e9-3b8934a35a9d
2026-02-09 13:34:11,920 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/32c4cb4f-5e23-4c5c-b27c-09cf211319c0
2026-02-09 13:34:11,932 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/32c4cb4f-5e23-4c5c-b27c-09cf211319c0
2026-02-09 13:34:11,941 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5384d92f-8cc7-4a9f-ade9-c5706adb6b55
2026-02-09 13:34:11,948 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5384d92f-8cc7-4a9f-ade9-c5706adb6b55
2026-02-09 13:34:11,955 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f7265ea5-495a-4ff4-b175-831a5f179899
2026-02-09 13:34:11,962 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-09 13:34:11,962 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/32c4cb4f-5e23-4c5c-b27c-09cf211319c0
2026-02-09 13:34:11,971 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5384d92f-8cc7-4a9f-ade9-c5706adb6b55
2026-02-09 13:34:11,986 - INFO - Verified VN network id 11 for VN 32c4cb4f-5e23-4c5c-b27c-09cf211319c0
2026-02-09 13:34:11,986 - INFO - Verifications in API Server for VN ctest-vn-46490391 passed
2026-02-09 13:34:11,986 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/32c4cb4f-5e23-4c5c-b27c-09cf211319c0
2026-02-09 13:34:11,996 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5384d92f-8cc7-4a9f-ade9-c5706adb6b55
2026-02-09 13:34:12,003 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5384d92f-8cc7-4a9f-ade9-c5706adb6b55
2026-02-09 13:34:12,010 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f7265ea5-495a-4ff4-b175-831a5f179899
2026-02-09 13:34:12,021 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50745683:ctest-vn-46490391', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50745683', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3658272339073911900', 'uuid-lslong': '12861165421081074112'}, 'enable': 'true', 'created': '2026-02-09T13:34:09', 'last-modified': '2026-02-09T13:34:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.908854'}
2026-02-09 13:34:12,027 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-09 13:34:12,027 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46490391 passed
2026-02-09 13:34:12,027 - DEBUG - ====Verifying policy data for ctest-vn-46490391 in API_Server ======
2026-02-09 13:34:12,027 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-09 13:34:12,033 - DEBUG - Requesting: http://10.0.0.50:8082/domain/34c93b61-235d-4a2b-abf5-b890201be482
2026-02-09 13:34:12,046 - DEBUG - Requesting: http://10.0.0.50:8082/project/daf02b9a-1608-4238-90e9-3b8934a35a9d
2026-02-09 13:34:12,118 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/32c4cb4f-5e23-4c5c-b27c-09cf211319c0
2026-02-09 13:34:12,129 - DEBUG - ==>Verifying data for policy with id: 1320a5c0-3b26-4ce5-942c-95860bc09ccf, fqn: ['default-domain', 'ctest-TestBasicPolicy-50745683', 'ctest-policy-allow-all-83384509']
2026-02-09 13:34:12,129 - INFO - VN ctest-vn-46490391 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-09 13:34:12,129 - DEBUG - Verifying the vn in opserver
2026-02-09 13:34:12,129 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50745683:ctest-vn-46490391 virtual network link through opserver 10.0.0.50
2026-02-09 13:34:12,130 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-09 13:34:12,422 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-09 13:34:12,498 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50745683:ctest-vn-46490391', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50745683:ctest-vn-46490391?flat'}
2026-02-09 13:34:12,498 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50745683:ctest-vn-46490391 is found in opserver
2026-02-09 13:34:12,509 - DEBUG - Do not have enough data to verify VN in agent
2026-02-09 13:34:12,514 - DEBUG - VRF ids for VN ctest-vn-46490391: {}
2026-02-09 13:34:12,514 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-09 13:34:12,520 - DEBUG - Requesting: http://10.0.0.50:8082/domain/34c93b61-235d-4a2b-abf5-b890201be482
2026-02-09 13:34:12,531 - DEBUG - Requesting: http://10.0.0.50:8082/project/daf02b9a-1608-4238-90e9-3b8934a35a9d
2026-02-09 13:34:12,602 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a28c3d26-181d-4d57-b1a0-1347ece1c3e1
2026-02-09 13:34:12,613 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a28c3d26-181d-4d57-b1a0-1347ece1c3e1
2026-02-09 13:34:12,622 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/17242da1-badc-446b-b5e7-6403da009020
2026-02-09 13:34:12,630 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/17242da1-badc-446b-b5e7-6403da009020
2026-02-09 13:34:12,637 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e41ab1dc-46c1-408c-9bc5-e18b75855c8c
2026-02-09 13:34:12,644 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-09 13:34:12,644 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a28c3d26-181d-4d57-b1a0-1347ece1c3e1
2026-02-09 13:34:12,654 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/17242da1-badc-446b-b5e7-6403da009020
2026-02-09 13:34:12,668 - INFO - Verified VN network id 12 for VN a28c3d26-181d-4d57-b1a0-1347ece1c3e1
2026-02-09 13:34:12,669 - INFO - Verifications in API Server for VN ctest-vn-81188651 passed
2026-02-09 13:34:12,669 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a28c3d26-181d-4d57-b1a0-1347ece1c3e1
2026-02-09 13:34:12,678 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/17242da1-badc-446b-b5e7-6403da009020
2026-02-09 13:34:12,685 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/17242da1-badc-446b-b5e7-6403da009020
2026-02-09 13:34:12,692 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e41ab1dc-46c1-408c-9bc5-e18b75855c8c
2026-02-09 13:34:12,704 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50745683:ctest-vn-81188651', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50745683', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11712803964706442583', 'uuid-lslong': '12799251340624774113'}, 'enable': 'true', 'created': '2026-02-09T13:34:10', 'last-modified': '2026-02-09T13:34:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.386452'}
2026-02-09 13:34:12,711 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-09 13:34:12,711 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81188651 passed
2026-02-09 13:34:12,711 - DEBUG - ====Verifying policy data for ctest-vn-81188651 in API_Server ======
2026-02-09 13:34:12,711 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-09 13:34:12,719 - DEBUG - Requesting: http://10.0.0.50:8082/domain/34c93b61-235d-4a2b-abf5-b890201be482
2026-02-09 13:34:12,732 - DEBUG - Requesting: http://10.0.0.50:8082/project/daf02b9a-1608-4238-90e9-3b8934a35a9d
2026-02-09 13:34:12,803 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a28c3d26-181d-4d57-b1a0-1347ece1c3e1
2026-02-09 13:34:12,812 - DEBUG - ==>Verifying data for policy with id: 1320a5c0-3b26-4ce5-942c-95860bc09ccf, fqn: ['default-domain', 'ctest-TestBasicPolicy-50745683', 'ctest-policy-allow-all-83384509']
2026-02-09 13:34:12,812 - INFO - VN ctest-vn-81188651 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-09 13:34:12,812 - DEBUG - Verifying the vn in opserver
2026-02-09 13:34:12,812 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50745683:ctest-vn-81188651 virtual network link through opserver 10.0.0.50
2026-02-09 13:34:12,813 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-09 13:34:12,822 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50745683:ctest-vn-81188651', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50745683:ctest-vn-81188651?flat'}
2026-02-09 13:34:12,823 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50745683:ctest-vn-81188651 is found in opserver
2026-02-09 13:34:12,832 - DEBUG - Do not have enough data to verify VN in agent
2026-02-09 13:34:12,837 - DEBUG - VRF ids for VN ctest-vn-81188651: {}
2026-02-09 13:34:12,896 - DEBUG - Services list from nova: [