2025-10-08 22:18:21,070 - INFO - Domain Default found not creating
2025-10-08 22:18:21,191 - INFO - Project ctest-TestBasicPolicy-82023768 not found, creating it
2025-10-08 22:18:21,597 - INFO - Created Project:ctest-TestBasicPolicy-82023768, ID : 3a7e9d1e-f908-4c94-8960-52fc0fa3abe6
2025-10-08 22:18:22,905 - INFO - ================================================================================
2025-10-08 22:18:22,905 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-08 22:18:22,905 - 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
2025-10-08 22:18:23,163 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.254': '0'}} with
2025-10-08 22:18:23,163 - INFO - Initial checks done. Running the testcase now
2025-10-08 22:18:23,163 - INFO -
2025-10-08 22:18:23,658 - DEBUG - Response for create_network : {'network': {'id': '05898cc7-3983-495d-b085-30033ea24b33', 'name': 'ctest-vn-84082736', 'tenant_id': '3a7e9d1ef9084c94896052fc0fa3abe6', 'project_id': '3a7e9d1ef9084c94896052fc0fa3abe6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82023768', 'ctest-vn-84082736'], 'port_security_enabled': True, 'description': ''}}
2025-10-08 22:18:23,842 - DEBUG - Response for create_subnet : {'subnet': {'id': '09aad389-ed38-4832-848d-2645a2e13c71', 'name': '', 'tenant_id': '3a7e9d1ef9084c94896052fc0fa3abe6', 'network_id': '05898cc7-3983-495d-b085-30033ea24b33', 'ip_version': 4, 'cidr': '157.149.7.192/26', 'allocation_pools': [{'start': '157.149.7.194', 'end': '157.149.7.254'}], 'gateway_ip': '157.149.7.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.149.7.194', 'tags': [], 'project_id': '3a7e9d1ef9084c94896052fc0fa3abe6'}}
2025-10-08 22:18:23,856 - INFO - Created VN ctest-vn-84082736
2025-10-08 22:18:23,906 - DEBUG - VN ctest-vn-84082736 UUID is 05898cc7-3983-495d-b085-30033ea24b33
2025-10-08 22:18:24,201 - DEBUG - Response for create_network : {'network': {'id': '26525536-4cf3-4a93-8213-9d584fab06a6', 'name': 'ctest-vn-01301214', 'tenant_id': '3a7e9d1ef9084c94896052fc0fa3abe6', 'project_id': '3a7e9d1ef9084c94896052fc0fa3abe6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82023768', 'ctest-vn-01301214'], 'port_security_enabled': True, 'description': ''}}
2025-10-08 22:18:24,397 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b710faf6-4ab2-42dd-883f-52d243695bdf', 'name': '', 'tenant_id': '3a7e9d1ef9084c94896052fc0fa3abe6', 'network_id': '26525536-4cf3-4a93-8213-9d584fab06a6', 'ip_version': 4, 'cidr': '14.181.110.128/26', 'allocation_pools': [{'start': '14.181.110.130', 'end': '14.181.110.190'}], 'gateway_ip': '14.181.110.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.181.110.130', 'tags': [], 'project_id': '3a7e9d1ef9084c94896052fc0fa3abe6'}}
2025-10-08 22:18:24,411 - INFO - Created VN ctest-vn-01301214
2025-10-08 22:18:24,462 - DEBUG - VN ctest-vn-01301214 UUID is 26525536-4cf3-4a93-8213-9d584fab06a6
2025-10-08 22:18:24,602 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-82023768:ctest-vn-84082736, 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-82023768:ctest-vn-01301214, 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]
2025-10-08 22:18:24,870 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '05898cc7-3983-495d-b085-30033ea24b33', 'name': 'ctest-vn-84082736', 'tenant_id': '3a7e9d1ef9084c94896052fc0fa3abe6', 'project_id': '3a7e9d1ef9084c94896052fc0fa3abe6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['09aad389-ed38-4832-848d-2645a2e13c71'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82023768', 'ctest-vn-84082736'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82023768', 'ctest-policy-allow-all-68062328']], 'subnet_ipam': [{'subnet_cidr': '157.149.7.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-08 22:18:25,075 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '26525536-4cf3-4a93-8213-9d584fab06a6', 'name': 'ctest-vn-01301214', 'tenant_id': '3a7e9d1ef9084c94896052fc0fa3abe6', 'project_id': '3a7e9d1ef9084c94896052fc0fa3abe6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b710faf6-4ab2-42dd-883f-52d243695bdf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82023768', 'ctest-vn-01301214'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82023768', 'ctest-policy-allow-all-68062328']], 'subnet_ipam': [{'subnet_cidr': '14.181.110.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-08 22:18:25,246 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-10-08 22:18:25,537 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-10-08 22:18:25,561 - DEBUG - Requesting: http://10.0.0.23:8082/domain/8c5bfd11-78c7-425a-b27d-2ea89958427e
2025-10-08 22:18:25,571 - DEBUG - Requesting: http://10.0.0.23:8082/project/3a7e9d1e-f908-4c94-8960-52fc0fa3abe6
2025-10-08 22:18:25,640 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/05898cc7-3983-495d-b085-30033ea24b33
2025-10-08 22:18:25,648 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/05898cc7-3983-495d-b085-30033ea24b33
2025-10-08 22:18:25,656 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f28333ef-8ed8-4a3c-b078-92719dcf0d59
2025-10-08 22:18:25,661 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f28333ef-8ed8-4a3c-b078-92719dcf0d59
2025-10-08 22:18:25,665 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/ae4bf4d3-58b3-4ea7-8c64-fdbdd2ffc9b6
2025-10-08 22:18:25,670 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-08 22:18:25,670 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/05898cc7-3983-495d-b085-30033ea24b33
2025-10-08 22:18:25,676 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f28333ef-8ed8-4a3c-b078-92719dcf0d59
2025-10-08 22:18:25,686 - INFO - Verified VN network id 12 for VN 05898cc7-3983-495d-b085-30033ea24b33
2025-10-08 22:18:25,686 - INFO - Verifications in API Server for VN ctest-vn-84082736 passed
2025-10-08 22:18:25,686 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/05898cc7-3983-495d-b085-30033ea24b33
2025-10-08 22:18:25,693 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f28333ef-8ed8-4a3c-b078-92719dcf0d59
2025-10-08 22:18:25,698 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f28333ef-8ed8-4a3c-b078-92719dcf0d59
2025-10-08 22:18:25,702 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/ae4bf4d3-58b3-4ea7-8c64-fdbdd2ffc9b6
2025-10-08 22:18:25,711 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82023768:ctest-vn-84082736', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82023768', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '399004829290285405', 'uuid-lslong': '12719625513071692595'}, 'enable': 'true', 'created': '2025-10-08T22:18:23', 'last-modified': '2025-10-08T22:18:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.859644'}
2025-10-08 22:18:25,716 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-08 22:18:25,716 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84082736 passed
2025-10-08 22:18:25,716 - DEBUG - ====Verifying policy data for ctest-vn-84082736 in API_Server ======
2025-10-08 22:18:25,716 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-10-08 22:18:25,720 - DEBUG - Requesting: http://10.0.0.23:8082/domain/8c5bfd11-78c7-425a-b27d-2ea89958427e
2025-10-08 22:18:25,728 - DEBUG - Requesting: http://10.0.0.23:8082/project/3a7e9d1e-f908-4c94-8960-52fc0fa3abe6
2025-10-08 22:18:25,793 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/05898cc7-3983-495d-b085-30033ea24b33
2025-10-08 22:18:25,801 - DEBUG - ==>Verifying data for policy with id: c5e80867-5abb-4b1b-8bd6-5a4f014e7c82, fqn: ['default-domain', 'ctest-TestBasicPolicy-82023768', 'ctest-policy-allow-all-68062328']
2025-10-08 22:18:25,801 - INFO - VN ctest-vn-84082736 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-08 22:18:25,801 - DEBUG - Verifying the vn in opserver
2025-10-08 22:18:25,801 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82023768:ctest-vn-84082736 virtual network link through opserver 10.0.0.23
2025-10-08 22:18:25,801 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-10-08 22:18:26,088 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-10-08 22:18:26,132 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82023768:ctest-vn-84082736', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82023768:ctest-vn-84082736?flat'}
2025-10-08 22:18:26,132 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82023768:ctest-vn-84082736 is found in opserver
2025-10-08 22:18:26,140 - DEBUG - Do not have enough data to verify VN in agent
2025-10-08 22:18:26,144 - DEBUG - VRF ids for VN ctest-vn-84082736: {}
2025-10-08 22:18:26,144 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-10-08 22:18:26,148 - DEBUG - Requesting: http://10.0.0.23:8082/domain/8c5bfd11-78c7-425a-b27d-2ea89958427e
2025-10-08 22:18:26,156 - DEBUG - Requesting: http://10.0.0.23:8082/project/3a7e9d1e-f908-4c94-8960-52fc0fa3abe6
2025-10-08 22:18:26,227 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/26525536-4cf3-4a93-8213-9d584fab06a6
2025-10-08 22:18:26,237 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/26525536-4cf3-4a93-8213-9d584fab06a6
2025-10-08 22:18:26,244 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f3000753-d51a-45db-8b78-6c576c817060
2025-10-08 22:18:26,251 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f3000753-d51a-45db-8b78-6c576c817060
2025-10-08 22:18:26,256 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/3de45fd8-d89a-4296-b7b8-63380c05a708
2025-10-08 22:18:26,261 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-08 22:18:26,261 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/26525536-4cf3-4a93-8213-9d584fab06a6
2025-10-08 22:18:26,268 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f3000753-d51a-45db-8b78-6c576c817060
2025-10-08 22:18:26,278 - INFO - Verified VN network id 13 for VN 26525536-4cf3-4a93-8213-9d584fab06a6
2025-10-08 22:18:26,278 - INFO - Verifications in API Server for VN ctest-vn-01301214 passed
2025-10-08 22:18:26,278 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/26525536-4cf3-4a93-8213-9d584fab06a6
2025-10-08 22:18:26,284 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f3000753-d51a-45db-8b78-6c576c817060
2025-10-08 22:18:26,289 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f3000753-d51a-45db-8b78-6c576c817060
2025-10-08 22:18:26,295 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/3de45fd8-d89a-4296-b7b8-63380c05a708
2025-10-08 22:18:26,304 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82023768:ctest-vn-01301214', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82023768', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2761363213239143059', 'uuid-lslong': '9373008252107425446'}, 'enable': 'true', 'created': '2025-10-08T22:18:24', 'last-modified': '2025-10-08T22:18:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.245579'}
2025-10-08 22:18:26,308 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-08 22:18:26,309 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01301214 passed
2025-10-08 22:18:26,309 - DEBUG - ====Verifying policy data for ctest-vn-01301214 in API_Server ======
2025-10-08 22:18:26,309 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-10-08 22:18:26,313 - DEBUG - Requesting: http://10.0.0.23:8082/domain/8c5bfd11-78c7-425a-b27d-2ea89958427e
2025-10-08 22:18:26,321 - DEBUG - Requesting: http://10.0.0.23:8082/project/3a7e9d1e-f908-4c94-8960-52fc0fa3abe6
2025-10-08 22:18:26,384 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/26525536-4cf3-4a93-8213-9d584fab06a6
2025-10-08 22:18:26,396 - DEBUG - ==>Verifying data for policy with id: c5e80867-5abb-4b1b-8bd6-5a4f014e7c82, fqn: ['default-domain', 'ctest-TestBasicPolicy-82023768', 'ctest-policy-allow-all-68062328']
2025-10-08 22:18:26,396 - INFO - VN ctest-vn-01301214 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-08 22:18:26,396 - DEBUG - Verifying the vn in opserver
2025-10-08 22:18:26,396 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82023768:ctest-vn-01301214 virtual network link through opserver 10.0.0.23
2025-10-08 22:18:26,396 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-10-08 22:18:26,405 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82023768:ctest-vn-01301214', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82023768:ctest-vn-01301214?flat'}
2025-10-08 22:18:26,405 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82023768:ctest-vn-01301214 is found in opserver
2025-10-08 22:18:26,412 - DEBUG - Do not have enough data to verify VN in agent
2025-10-08 22:18:26,416 - DEBUG - VRF ids for VN ctest-vn-01301214: {}
2025-10-08 22:18:26,464 - DEBUG - Services list from nova: [