2025-08-18 09:44:30,896 - INFO - Domain Default found not creating
2025-08-18 09:44:31,009 - INFO - Project ctest-TestBasicPolicy-76752267 not found, creating it
2025-08-18 09:44:31,471 - INFO - Created Project:ctest-TestBasicPolicy-76752267, ID : 7e704a80-bfb6-4d5f-937a-681fc36c4220
2025-08-18 09:44:32,750 - INFO - ================================================================================
2025-08-18 09:44:32,750 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-18 09:44:32,750 - 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-08-18 09:44:33,004 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.0.0.48': '0'}} with
2025-08-18 09:44:33,004 - INFO - Initial checks done. Running the testcase now
2025-08-18 09:44:33,004 - INFO -
2025-08-18 09:44:33,509 - DEBUG - Response for create_network : {'network': {'id': '6c7a8ae2-0347-4778-b86f-74fc6da27110', 'name': 'ctest-vn-71721664', 'tenant_id': '7e704a80bfb64d5f937a681fc36c4220', 'project_id': '7e704a80bfb64d5f937a681fc36c4220', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76752267', 'ctest-vn-71721664'], 'port_security_enabled': True, 'description': ''}}
2025-08-18 09:44:33,674 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f7a80d42-9508-4806-927e-f1323a0ad1b8', 'name': '', 'tenant_id': '7e704a80bfb64d5f937a681fc36c4220', 'network_id': '6c7a8ae2-0347-4778-b86f-74fc6da27110', 'ip_version': 4, 'cidr': '83.120.125.128/26', 'allocation_pools': [{'start': '83.120.125.130', 'end': '83.120.125.190'}], 'gateway_ip': '83.120.125.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '83.120.125.130', 'tags': [], 'project_id': '7e704a80bfb64d5f937a681fc36c4220'}}
2025-08-18 09:44:33,691 - INFO - Created VN ctest-vn-71721664
2025-08-18 09:44:33,743 - DEBUG - VN ctest-vn-71721664 UUID is 6c7a8ae2-0347-4778-b86f-74fc6da27110
2025-08-18 09:44:34,043 - DEBUG - Response for create_network : {'network': {'id': '9da1db79-d2e8-4d5d-ac37-ebcc8db7b0ef', 'name': 'ctest-vn-43964257', 'tenant_id': '7e704a80bfb64d5f937a681fc36c4220', 'project_id': '7e704a80bfb64d5f937a681fc36c4220', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76752267', 'ctest-vn-43964257'], 'port_security_enabled': True, 'description': ''}}
2025-08-18 09:44:34,180 - DEBUG - Response for create_subnet : {'subnet': {'id': '1c64d257-953f-4609-b8cb-504f8007d24b', 'name': '', 'tenant_id': '7e704a80bfb64d5f937a681fc36c4220', 'network_id': '9da1db79-d2e8-4d5d-ac37-ebcc8db7b0ef', 'ip_version': 4, 'cidr': '125.64.126.0/26', 'allocation_pools': [{'start': '125.64.126.2', 'end': '125.64.126.62'}], 'gateway_ip': '125.64.126.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.64.126.2', 'tags': [], 'project_id': '7e704a80bfb64d5f937a681fc36c4220'}}
2025-08-18 09:44:34,195 - INFO - Created VN ctest-vn-43964257
2025-08-18 09:44:34,247 - DEBUG - VN ctest-vn-43964257 UUID is 9da1db79-d2e8-4d5d-ac37-ebcc8db7b0ef
2025-08-18 09:44:34,387 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-76752267:ctest-vn-71721664, 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-76752267:ctest-vn-43964257, 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-08-18 09:44:34,673 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6c7a8ae2-0347-4778-b86f-74fc6da27110', 'name': 'ctest-vn-71721664', 'tenant_id': '7e704a80bfb64d5f937a681fc36c4220', 'project_id': '7e704a80bfb64d5f937a681fc36c4220', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f7a80d42-9508-4806-927e-f1323a0ad1b8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76752267', 'ctest-vn-71721664'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76752267', 'ctest-policy-allow-all-32831447']], 'subnet_ipam': [{'subnet_cidr': '83.120.125.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-18 09:44:34,886 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9da1db79-d2e8-4d5d-ac37-ebcc8db7b0ef', 'name': 'ctest-vn-43964257', 'tenant_id': '7e704a80bfb64d5f937a681fc36c4220', 'project_id': '7e704a80bfb64d5f937a681fc36c4220', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1c64d257-953f-4609-b8cb-504f8007d24b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76752267', 'ctest-vn-43964257'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76752267', 'ctest-policy-allow-all-32831447']], 'subnet_ipam': [{'subnet_cidr': '125.64.126.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-18 09:44:35,039 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-08-18 09:44:35,336 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-08-18 09:44:35,362 - DEBUG - Requesting: http://10.0.0.48:8082/domain/827661c3-927d-424a-a690-5dd23ede00b3
2025-08-18 09:44:35,373 - DEBUG - Requesting: http://10.0.0.48:8082/project/7e704a80-bfb6-4d5f-937a-681fc36c4220
2025-08-18 09:44:35,441 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/6c7a8ae2-0347-4778-b86f-74fc6da27110
2025-08-18 09:44:35,452 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/6c7a8ae2-0347-4778-b86f-74fc6da27110
2025-08-18 09:44:35,460 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/e058620e-7e50-4a29-99cf-c07bfeb0b28e
2025-08-18 09:44:35,465 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/e058620e-7e50-4a29-99cf-c07bfeb0b28e
2025-08-18 09:44:35,471 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/5181410f-67cf-463a-8c35-ed25d5d687cf
2025-08-18 09:44:35,475 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-18 09:44:35,475 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/6c7a8ae2-0347-4778-b86f-74fc6da27110
2025-08-18 09:44:35,482 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/e058620e-7e50-4a29-99cf-c07bfeb0b28e
2025-08-18 09:44:35,492 - INFO - Verified VN network id 12 for VN 6c7a8ae2-0347-4778-b86f-74fc6da27110
2025-08-18 09:44:35,493 - INFO - Verifications in API Server for VN ctest-vn-71721664 passed
2025-08-18 09:44:35,493 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/6c7a8ae2-0347-4778-b86f-74fc6da27110
2025-08-18 09:44:35,500 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/e058620e-7e50-4a29-99cf-c07bfeb0b28e
2025-08-18 09:44:35,505 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/e058620e-7e50-4a29-99cf-c07bfeb0b28e
2025-08-18 09:44:35,509 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/5181410f-67cf-463a-8c35-ed25d5d687cf
2025-08-18 09:44:35,518 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76752267:ctest-vn-71721664', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76752267', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7816712806577162104', 'uuid-lslong': '13289969652913565968'}, 'enable': 'true', 'created': '2025-08-18T09:44:33', 'last-modified': '2025-08-18T09:44:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.864937'}
2025-08-18 09:44:35,523 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-18 09:44:35,524 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71721664 passed
2025-08-18 09:44:35,524 - DEBUG - ====Verifying policy data for ctest-vn-71721664 in API_Server ======
2025-08-18 09:44:35,524 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-08-18 09:44:35,527 - DEBUG - Requesting: http://10.0.0.48:8082/domain/827661c3-927d-424a-a690-5dd23ede00b3
2025-08-18 09:44:35,536 - DEBUG - Requesting: http://10.0.0.48:8082/project/7e704a80-bfb6-4d5f-937a-681fc36c4220
2025-08-18 09:44:35,601 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/6c7a8ae2-0347-4778-b86f-74fc6da27110
2025-08-18 09:44:35,609 - DEBUG - ==>Verifying data for policy with id: 030a0320-4236-497a-94ef-2a5ac5a54824, fqn: ['default-domain', 'ctest-TestBasicPolicy-76752267', 'ctest-policy-allow-all-32831447']
2025-08-18 09:44:35,609 - INFO - VN ctest-vn-71721664 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-18 09:44:35,609 - DEBUG - Verifying the vn in opserver
2025-08-18 09:44:35,609 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76752267:ctest-vn-71721664 virtual network link through opserver 10.0.0.48
2025-08-18 09:44:35,609 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-08-18 09:44:35,896 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-08-18 09:44:35,942 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76752267:ctest-vn-71721664', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76752267:ctest-vn-71721664?flat'}
2025-08-18 09:44:35,942 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76752267:ctest-vn-71721664 is found in opserver
2025-08-18 09:44:35,951 - DEBUG - Do not have enough data to verify VN in agent
2025-08-18 09:44:35,954 - DEBUG - VRF ids for VN ctest-vn-71721664: {}
2025-08-18 09:44:35,955 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-08-18 09:44:35,959 - DEBUG - Requesting: http://10.0.0.48:8082/domain/827661c3-927d-424a-a690-5dd23ede00b3
2025-08-18 09:44:35,967 - DEBUG - Requesting: http://10.0.0.48:8082/project/7e704a80-bfb6-4d5f-937a-681fc36c4220
2025-08-18 09:44:36,034 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/9da1db79-d2e8-4d5d-ac37-ebcc8db7b0ef
2025-08-18 09:44:36,043 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/9da1db79-d2e8-4d5d-ac37-ebcc8db7b0ef
2025-08-18 09:44:36,051 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/a4e97516-57a2-40f6-8291-99ffcb03869a
2025-08-18 09:44:36,056 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/a4e97516-57a2-40f6-8291-99ffcb03869a
2025-08-18 09:44:36,060 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/7cf32af5-b423-4dbf-ab63-70f83d1c652e
2025-08-18 09:44:36,065 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-18 09:44:36,065 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/9da1db79-d2e8-4d5d-ac37-ebcc8db7b0ef
2025-08-18 09:44:36,072 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/a4e97516-57a2-40f6-8291-99ffcb03869a
2025-08-18 09:44:36,082 - INFO - Verified VN network id 13 for VN 9da1db79-d2e8-4d5d-ac37-ebcc8db7b0ef
2025-08-18 09:44:36,082 - INFO - Verifications in API Server for VN ctest-vn-43964257 passed
2025-08-18 09:44:36,082 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/9da1db79-d2e8-4d5d-ac37-ebcc8db7b0ef
2025-08-18 09:44:36,090 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/a4e97516-57a2-40f6-8291-99ffcb03869a
2025-08-18 09:44:36,094 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/a4e97516-57a2-40f6-8291-99ffcb03869a
2025-08-18 09:44:36,099 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/7cf32af5-b423-4dbf-ab63-70f83d1c652e
2025-08-18 09:44:36,109 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76752267:ctest-vn-43964257', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76752267', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11358601051481066845', 'uuid-lslong': '12409646562026172655'}, 'enable': 'true', 'created': '2025-08-18T09:44:34', 'last-modified': '2025-08-18T09:44:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.246885'}
2025-08-18 09:44:36,114 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-18 09:44:36,114 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43964257 passed
2025-08-18 09:44:36,114 - DEBUG - ====Verifying policy data for ctest-vn-43964257 in API_Server ======
2025-08-18 09:44:36,114 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-08-18 09:44:36,118 - DEBUG - Requesting: http://10.0.0.48:8082/domain/827661c3-927d-424a-a690-5dd23ede00b3
2025-08-18 09:44:36,126 - DEBUG - Requesting: http://10.0.0.48:8082/project/7e704a80-bfb6-4d5f-937a-681fc36c4220
2025-08-18 09:44:36,199 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/9da1db79-d2e8-4d5d-ac37-ebcc8db7b0ef
2025-08-18 09:44:36,207 - DEBUG - ==>Verifying data for policy with id: 030a0320-4236-497a-94ef-2a5ac5a54824, fqn: ['default-domain', 'ctest-TestBasicPolicy-76752267', 'ctest-policy-allow-all-32831447']
2025-08-18 09:44:36,207 - INFO - VN ctest-vn-43964257 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-18 09:44:36,207 - DEBUG - Verifying the vn in opserver
2025-08-18 09:44:36,207 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76752267:ctest-vn-43964257 virtual network link through opserver 10.0.0.48
2025-08-18 09:44:36,207 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-08-18 09:44:36,216 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76752267:ctest-vn-43964257', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76752267:ctest-vn-43964257?flat'}
2025-08-18 09:44:36,216 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76752267:ctest-vn-43964257 is found in opserver
2025-08-18 09:44:36,225 - DEBUG - Do not have enough data to verify VN in agent
2025-08-18 09:44:36,228 - DEBUG - VRF ids for VN ctest-vn-43964257: {}
2025-08-18 09:44:36,276 - DEBUG - Services list from nova: [