2026-04-18 05:18:48,434 - INFO - Domain Default found not creating
2026-04-18 05:18:48,634 - INFO - Project ctest-TestBasicPolicy-87725378 not found, creating it
2026-04-18 05:18:49,145 - INFO - Created Project:ctest-TestBasicPolicy-87725378, ID : 7aed70f6-070b-440d-a96f-a8f99e66941e
2026-04-18 05:18:50,719 - INFO - ================================================================================
2026-04-18 05:18:50,719 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-18 05:18:50,719 - 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-18 05:18:50,980 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-04-18 05:18:50,980 - INFO - Initial checks done. Running the testcase now
2026-04-18 05:18:50,980 - INFO -
2026-04-18 05:18:51,599 - DEBUG - Response for create_network : {'network': {'id': 'fc403291-a82f-4dca-b054-adb42000971f', 'name': 'ctest-vn-46959156', 'tenant_id': '7aed70f6070b440da96fa8f99e66941e', 'project_id': '7aed70f6070b440da96fa8f99e66941e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87725378', 'ctest-vn-46959156'], 'port_security_enabled': True, 'description': ''}}
2026-04-18 05:18:51,839 - DEBUG - Response for create_subnet : {'subnet': {'id': '2acb72f1-efb4-483e-9b6b-d6ea4e05efea', 'name': '', 'tenant_id': '7aed70f6070b440da96fa8f99e66941e', 'network_id': 'fc403291-a82f-4dca-b054-adb42000971f', 'ip_version': 4, 'cidr': '91.241.196.128/26', 'allocation_pools': [{'start': '91.241.196.130', 'end': '91.241.196.190'}], 'gateway_ip': '91.241.196.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '91.241.196.130', 'tags': [], 'project_id': '7aed70f6070b440da96fa8f99e66941e'}}
2026-04-18 05:18:51,863 - INFO - Created VN ctest-vn-46959156
2026-04-18 05:18:51,919 - DEBUG - VN ctest-vn-46959156 UUID is fc403291-a82f-4dca-b054-adb42000971f
2026-04-18 05:18:52,243 - DEBUG - Response for create_network : {'network': {'id': 'aa39db72-b887-48b7-bad5-e239fd567e60', 'name': 'ctest-vn-87345581', 'tenant_id': '7aed70f6070b440da96fa8f99e66941e', 'project_id': '7aed70f6070b440da96fa8f99e66941e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87725378', 'ctest-vn-87345581'], 'port_security_enabled': True, 'description': ''}}
2026-04-18 05:18:52,416 - DEBUG - Response for create_subnet : {'subnet': {'id': '78f3488f-cfd6-4e17-8d2c-6ec7b3e223bf', 'name': '', 'tenant_id': '7aed70f6070b440da96fa8f99e66941e', 'network_id': 'aa39db72-b887-48b7-bad5-e239fd567e60', 'ip_version': 4, 'cidr': '5.136.176.0/26', 'allocation_pools': [{'start': '5.136.176.2', 'end': '5.136.176.62'}], 'gateway_ip': '5.136.176.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.136.176.2', 'tags': [], 'project_id': '7aed70f6070b440da96fa8f99e66941e'}}
2026-04-18 05:18:52,439 - INFO - Created VN ctest-vn-87345581
2026-04-18 05:18:52,494 - DEBUG - VN ctest-vn-87345581 UUID is aa39db72-b887-48b7-bad5-e239fd567e60
2026-04-18 05:18:52,617 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-87725378:ctest-vn-46959156, 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-87725378:ctest-vn-87345581, 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-18 05:18:52,932 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fc403291-a82f-4dca-b054-adb42000971f', 'name': 'ctest-vn-46959156', 'tenant_id': '7aed70f6070b440da96fa8f99e66941e', 'project_id': '7aed70f6070b440da96fa8f99e66941e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2acb72f1-efb4-483e-9b6b-d6ea4e05efea'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87725378', 'ctest-vn-46959156'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87725378', 'ctest-policy-allow-all-73374417']], 'subnet_ipam': [{'subnet_cidr': '91.241.196.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-18 05:18:53,173 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aa39db72-b887-48b7-bad5-e239fd567e60', 'name': 'ctest-vn-87345581', 'tenant_id': '7aed70f6070b440da96fa8f99e66941e', 'project_id': '7aed70f6070b440da96fa8f99e66941e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['78f3488f-cfd6-4e17-8d2c-6ec7b3e223bf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87725378', 'ctest-vn-87345581'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87725378', 'ctest-policy-allow-all-73374417']], 'subnet_ipam': [{'subnet_cidr': '5.136.176.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-18 05:18:53,346 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-18 05:18:53,648 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-18 05:18:53,685 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e2384996-7fce-463e-a572-4cec72ba830b
2026-04-18 05:18:53,698 - DEBUG - Requesting: http://10.0.0.50:8082/project/7aed70f6-070b-440d-a96f-a8f99e66941e
2026-04-18 05:18:53,773 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fc403291-a82f-4dca-b054-adb42000971f
2026-04-18 05:18:53,784 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fc403291-a82f-4dca-b054-adb42000971f
2026-04-18 05:18:53,793 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/567bd8ed-4ba4-4747-854f-8916972ccea7
2026-04-18 05:18:53,801 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/567bd8ed-4ba4-4747-854f-8916972ccea7
2026-04-18 05:18:53,809 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/67833718-1ebf-4d21-bfdd-5baf6a605caf
2026-04-18 05:18:53,816 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-18 05:18:53,816 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fc403291-a82f-4dca-b054-adb42000971f
2026-04-18 05:18:53,825 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/567bd8ed-4ba4-4747-854f-8916972ccea7
2026-04-18 05:18:53,841 - INFO - Verified VN network id 11 for VN fc403291-a82f-4dca-b054-adb42000971f
2026-04-18 05:18:53,841 - INFO - Verifications in API Server for VN ctest-vn-46959156 passed
2026-04-18 05:18:53,841 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fc403291-a82f-4dca-b054-adb42000971f
2026-04-18 05:18:53,851 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/567bd8ed-4ba4-4747-854f-8916972ccea7
2026-04-18 05:18:53,858 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/567bd8ed-4ba4-4747-854f-8916972ccea7
2026-04-18 05:18:53,867 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/67833718-1ebf-4d21-bfdd-5baf6a605caf
2026-04-18 05:18:53,881 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87725378:ctest-vn-46959156', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87725378', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18176583697240640970', 'uuid-lslong': '12705971437861639967'}, 'enable': 'true', 'created': '2026-04-18T05:18:51', 'last-modified': '2026-04-18T05:18:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.973549'}
2026-04-18 05:18:53,887 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-18 05:18:53,887 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46959156 passed
2026-04-18 05:18:53,887 - DEBUG - ====Verifying policy data for ctest-vn-46959156 in API_Server ======
2026-04-18 05:18:53,887 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-18 05:18:53,893 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e2384996-7fce-463e-a572-4cec72ba830b
2026-04-18 05:18:53,906 - DEBUG - Requesting: http://10.0.0.50:8082/project/7aed70f6-070b-440d-a96f-a8f99e66941e
2026-04-18 05:18:53,982 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fc403291-a82f-4dca-b054-adb42000971f
2026-04-18 05:18:53,991 - DEBUG - ==>Verifying data for policy with id: b849269b-edcb-4622-b1aa-ef6edfa8890a, fqn: ['default-domain', 'ctest-TestBasicPolicy-87725378', 'ctest-policy-allow-all-73374417']
2026-04-18 05:18:53,991 - INFO - VN ctest-vn-46959156 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-18 05:18:53,991 - DEBUG - Verifying the vn in opserver
2026-04-18 05:18:53,991 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87725378:ctest-vn-46959156 virtual network link through opserver 10.0.0.50
2026-04-18 05:18:53,991 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-18 05:18:54,302 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-18 05:18:54,376 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87725378:ctest-vn-46959156', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87725378:ctest-vn-46959156?flat'}
2026-04-18 05:18:54,376 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87725378:ctest-vn-46959156 is found in opserver
2026-04-18 05:18:54,385 - DEBUG - Do not have enough data to verify VN in agent
2026-04-18 05:18:54,389 - DEBUG - VRF ids for VN ctest-vn-46959156: {}
2026-04-18 05:18:54,389 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-18 05:18:54,396 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e2384996-7fce-463e-a572-4cec72ba830b
2026-04-18 05:18:54,409 - DEBUG - Requesting: http://10.0.0.50:8082/project/7aed70f6-070b-440d-a96f-a8f99e66941e
2026-04-18 05:18:54,485 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/aa39db72-b887-48b7-bad5-e239fd567e60
2026-04-18 05:18:54,498 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/aa39db72-b887-48b7-bad5-e239fd567e60
2026-04-18 05:18:54,512 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6ac36398-ccbc-46d1-9d9f-d7bdf4a9e7c3
2026-04-18 05:18:54,524 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6ac36398-ccbc-46d1-9d9f-d7bdf4a9e7c3
2026-04-18 05:18:54,532 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d4ad2743-0708-45e5-a8d5-c0330a62e328
2026-04-18 05:18:54,540 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-18 05:18:54,540 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/aa39db72-b887-48b7-bad5-e239fd567e60
2026-04-18 05:18:54,549 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6ac36398-ccbc-46d1-9d9f-d7bdf4a9e7c3
2026-04-18 05:18:54,565 - INFO - Verified VN network id 12 for VN aa39db72-b887-48b7-bad5-e239fd567e60
2026-04-18 05:18:54,566 - INFO - Verifications in API Server for VN ctest-vn-87345581 passed
2026-04-18 05:18:54,566 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/aa39db72-b887-48b7-bad5-e239fd567e60
2026-04-18 05:18:54,575 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6ac36398-ccbc-46d1-9d9f-d7bdf4a9e7c3
2026-04-18 05:18:54,582 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6ac36398-ccbc-46d1-9d9f-d7bdf4a9e7c3
2026-04-18 05:18:54,590 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d4ad2743-0708-45e5-a8d5-c0330a62e328
2026-04-18 05:18:54,604 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87725378:ctest-vn-87345581', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87725378', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12266076345888884919', 'uuid-lslong': '13462915399785283168'}, 'enable': 'true', 'created': '2026-04-18T05:18:52', 'last-modified': '2026-04-18T05:18:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.453034'}
2026-04-18 05:18:54,612 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-18 05:18:54,612 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87345581 passed
2026-04-18 05:18:54,612 - DEBUG - ====Verifying policy data for ctest-vn-87345581 in API_Server ======
2026-04-18 05:18:54,612 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-18 05:18:54,619 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e2384996-7fce-463e-a572-4cec72ba830b
2026-04-18 05:18:54,632 - DEBUG - Requesting: http://10.0.0.50:8082/project/7aed70f6-070b-440d-a96f-a8f99e66941e
2026-04-18 05:18:54,702 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/aa39db72-b887-48b7-bad5-e239fd567e60
2026-04-18 05:18:54,715 - DEBUG - ==>Verifying data for policy with id: b849269b-edcb-4622-b1aa-ef6edfa8890a, fqn: ['default-domain', 'ctest-TestBasicPolicy-87725378', 'ctest-policy-allow-all-73374417']
2026-04-18 05:18:54,715 - INFO - VN ctest-vn-87345581 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-18 05:18:54,715 - DEBUG - Verifying the vn in opserver
2026-04-18 05:18:54,715 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87725378:ctest-vn-87345581 virtual network link through opserver 10.0.0.50
2026-04-18 05:18:54,716 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-18 05:18:54,726 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87725378:ctest-vn-87345581', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87725378:ctest-vn-87345581?flat'}
2026-04-18 05:18:54,726 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87725378:ctest-vn-87345581 is found in opserver
2026-04-18 05:18:54,738 - DEBUG - Do not have enough data to verify VN in agent
2026-04-18 05:18:54,744 - DEBUG - VRF ids for VN ctest-vn-87345581: {}
2026-04-18 05:18:54,816 - DEBUG - Services list from nova: [