2025-08-11 02:04:10,245 - INFO - Domain Default found not creating
2025-08-11 02:04:10,389 - INFO - Project ctest-TestBasicPolicy-39427906 not found, creating it
2025-08-11 02:04:10,826 - INFO - Created Project:ctest-TestBasicPolicy-39427906, ID : 8b01ea9e-880c-4a67-9026-87546ea27acd
2025-08-11 02:04:12,214 - INFO - ================================================================================
2025-08-11 02:04:12,214 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-11 02:04:12,215 - 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-11 02:04:12,466 - DEBUG - Nothing to compare xmpp stats {'10.0.0.137': {'10.20.0.193': '0'}} with
2025-08-11 02:04:12,466 - INFO - Initial checks done. Running the testcase now
2025-08-11 02:04:12,466 - INFO -
2025-08-11 02:04:12,997 - DEBUG - Response for create_network : {'network': {'id': '767ea6ec-5aa3-429b-9507-fed54c1857f8', 'name': 'ctest-vn-99987671', 'tenant_id': '8b01ea9e880c4a67902687546ea27acd', 'project_id': '8b01ea9e880c4a67902687546ea27acd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39427906', 'ctest-vn-99987671'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 02:04:13,163 - DEBUG - Response for create_subnet : {'subnet': {'id': '712e4cc9-14df-4e5e-959c-72927d429299', 'name': '', 'tenant_id': '8b01ea9e880c4a67902687546ea27acd', 'network_id': '767ea6ec-5aa3-429b-9507-fed54c1857f8', 'ip_version': 4, 'cidr': '38.129.21.64/26', 'allocation_pools': [{'start': '38.129.21.66', 'end': '38.129.21.126'}], 'gateway_ip': '38.129.21.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.129.21.66', 'tags': [], 'project_id': '8b01ea9e880c4a67902687546ea27acd'}}
2025-08-11 02:04:13,180 - INFO - Created VN ctest-vn-99987671
2025-08-11 02:04:13,233 - DEBUG - VN ctest-vn-99987671 UUID is 767ea6ec-5aa3-429b-9507-fed54c1857f8
2025-08-11 02:04:13,546 - DEBUG - Response for create_network : {'network': {'id': 'ec61b0ee-8203-403e-9851-f875a38f6f5a', 'name': 'ctest-vn-08787838', 'tenant_id': '8b01ea9e880c4a67902687546ea27acd', 'project_id': '8b01ea9e880c4a67902687546ea27acd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39427906', 'ctest-vn-08787838'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 02:04:13,723 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c5573f38-97e6-4696-8e5e-d2e4ae3422d7', 'name': '', 'tenant_id': '8b01ea9e880c4a67902687546ea27acd', 'network_id': 'ec61b0ee-8203-403e-9851-f875a38f6f5a', 'ip_version': 4, 'cidr': '185.255.147.64/26', 'allocation_pools': [{'start': '185.255.147.66', 'end': '185.255.147.126'}], 'gateway_ip': '185.255.147.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '185.255.147.66', 'tags': [], 'project_id': '8b01ea9e880c4a67902687546ea27acd'}}
2025-08-11 02:04:13,741 - INFO - Created VN ctest-vn-08787838
2025-08-11 02:04:13,793 - DEBUG - VN ctest-vn-08787838 UUID is ec61b0ee-8203-403e-9851-f875a38f6f5a
2025-08-11 02:04:13,908 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-39427906:ctest-vn-99987671, 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-39427906:ctest-vn-08787838, 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-11 02:04:14,224 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '767ea6ec-5aa3-429b-9507-fed54c1857f8', 'name': 'ctest-vn-99987671', 'tenant_id': '8b01ea9e880c4a67902687546ea27acd', 'project_id': '8b01ea9e880c4a67902687546ea27acd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['712e4cc9-14df-4e5e-959c-72927d429299'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39427906', 'ctest-vn-99987671'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39427906', 'ctest-policy-allow-all-38705132']], 'subnet_ipam': [{'subnet_cidr': '38.129.21.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 02:04:14,460 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ec61b0ee-8203-403e-9851-f875a38f6f5a', 'name': 'ctest-vn-08787838', 'tenant_id': '8b01ea9e880c4a67902687546ea27acd', 'project_id': '8b01ea9e880c4a67902687546ea27acd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c5573f38-97e6-4696-8e5e-d2e4ae3422d7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39427906', 'ctest-vn-08787838'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39427906', 'ctest-policy-allow-all-38705132']], 'subnet_ipam': [{'subnet_cidr': '185.255.147.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 02:04:14,637 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-08-11 02:04:14,929 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-08-11 02:04:14,954 - DEBUG - Requesting: http://10.0.0.137:8082/domain/4f50ffac-df1c-40e0-836b-06b55563f63d
2025-08-11 02:04:14,967 - DEBUG - Requesting: http://10.0.0.137:8082/project/8b01ea9e-880c-4a67-9026-87546ea27acd
2025-08-11 02:04:15,043 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/767ea6ec-5aa3-429b-9507-fed54c1857f8
2025-08-11 02:04:15,053 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/767ea6ec-5aa3-429b-9507-fed54c1857f8
2025-08-11 02:04:15,062 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/43421076-18e2-4358-b7fc-b8080f33c2bf
2025-08-11 02:04:15,069 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/43421076-18e2-4358-b7fc-b8080f33c2bf
2025-08-11 02:04:15,076 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/2b63782e-553f-41b8-af9d-2b2d3c7a1cd1
2025-08-11 02:04:15,082 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 02:04:15,082 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/767ea6ec-5aa3-429b-9507-fed54c1857f8
2025-08-11 02:04:15,090 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/43421076-18e2-4358-b7fc-b8080f33c2bf
2025-08-11 02:04:15,103 - INFO - Verified VN network id 11 for VN 767ea6ec-5aa3-429b-9507-fed54c1857f8
2025-08-11 02:04:15,103 - INFO - Verifications in API Server for VN ctest-vn-99987671 passed
2025-08-11 02:04:15,103 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/767ea6ec-5aa3-429b-9507-fed54c1857f8
2025-08-11 02:04:15,112 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/43421076-18e2-4358-b7fc-b8080f33c2bf
2025-08-11 02:04:15,120 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/43421076-18e2-4358-b7fc-b8080f33c2bf
2025-08-11 02:04:15,127 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/2b63782e-553f-41b8-af9d-2b2d3c7a1cd1
2025-08-11 02:04:15,139 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39427906:ctest-vn-99987671', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39427906', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8538445477604180635', 'uuid-lslong': '10738832028546390008'}, 'enable': 'true', 'created': '2025-08-11T02:04:12', 'last-modified': '2025-08-11T02:04:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.941009'}
2025-08-11 02:04:15,147 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 02:04:15,147 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99987671 passed
2025-08-11 02:04:15,147 - DEBUG - ====Verifying policy data for ctest-vn-99987671 in API_Server ======
2025-08-11 02:04:15,147 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-08-11 02:04:15,153 - DEBUG - Requesting: http://10.0.0.137:8082/domain/4f50ffac-df1c-40e0-836b-06b55563f63d
2025-08-11 02:04:15,163 - DEBUG - Requesting: http://10.0.0.137:8082/project/8b01ea9e-880c-4a67-9026-87546ea27acd
2025-08-11 02:04:15,240 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/767ea6ec-5aa3-429b-9507-fed54c1857f8
2025-08-11 02:04:15,249 - DEBUG - ==>Verifying data for policy with id: 620ebe38-dc93-4e17-9549-a604647e651c, fqn: ['default-domain', 'ctest-TestBasicPolicy-39427906', 'ctest-policy-allow-all-38705132']
2025-08-11 02:04:15,249 - INFO - VN ctest-vn-99987671 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 02:04:15,249 - DEBUG - Verifying the vn in opserver
2025-08-11 02:04:15,249 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39427906:ctest-vn-99987671 virtual network link through opserver 10.0.0.137
2025-08-11 02:04:15,249 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks
2025-08-11 02:04:15,537 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks
2025-08-11 02:04:15,587 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39427906:ctest-vn-99987671', 'href': 'http://10.0.0.137:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39427906:ctest-vn-99987671?flat'}
2025-08-11 02:04:15,587 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39427906:ctest-vn-99987671 is found in opserver
2025-08-11 02:04:15,597 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 02:04:15,602 - DEBUG - VRF ids for VN ctest-vn-99987671: {}
2025-08-11 02:04:15,602 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-08-11 02:04:15,607 - DEBUG - Requesting: http://10.0.0.137:8082/domain/4f50ffac-df1c-40e0-836b-06b55563f63d
2025-08-11 02:04:15,618 - DEBUG - Requesting: http://10.0.0.137:8082/project/8b01ea9e-880c-4a67-9026-87546ea27acd
2025-08-11 02:04:15,687 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/ec61b0ee-8203-403e-9851-f875a38f6f5a
2025-08-11 02:04:15,698 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/ec61b0ee-8203-403e-9851-f875a38f6f5a
2025-08-11 02:04:15,707 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/5d838f3f-3bc2-4de3-8359-508e8df244f1
2025-08-11 02:04:15,713 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/5d838f3f-3bc2-4de3-8359-508e8df244f1
2025-08-11 02:04:15,720 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/e01e089d-bdb9-4682-8e94-2788112dd9cd
2025-08-11 02:04:15,726 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 02:04:15,726 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/ec61b0ee-8203-403e-9851-f875a38f6f5a
2025-08-11 02:04:15,735 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/5d838f3f-3bc2-4de3-8359-508e8df244f1
2025-08-11 02:04:15,748 - INFO - Verified VN network id 12 for VN ec61b0ee-8203-403e-9851-f875a38f6f5a
2025-08-11 02:04:15,748 - INFO - Verifications in API Server for VN ctest-vn-08787838 passed
2025-08-11 02:04:15,749 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/ec61b0ee-8203-403e-9851-f875a38f6f5a
2025-08-11 02:04:15,758 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/5d838f3f-3bc2-4de3-8359-508e8df244f1
2025-08-11 02:04:15,765 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/5d838f3f-3bc2-4de3-8359-508e8df244f1
2025-08-11 02:04:15,771 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/e01e089d-bdb9-4682-8e94-2788112dd9cd
2025-08-11 02:04:15,783 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39427906:ctest-vn-08787838', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39427906', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17033089804121882686', 'uuid-lslong': '10975826951017557850'}, 'enable': 'true', 'created': '2025-08-11T02:04:13', 'last-modified': '2025-08-11T02:04:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.352545'}
2025-08-11 02:04:15,789 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 02:04:15,789 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08787838 passed
2025-08-11 02:04:15,789 - DEBUG - ====Verifying policy data for ctest-vn-08787838 in API_Server ======
2025-08-11 02:04:15,789 - DEBUG - Requesting: http://10.0.0.137:8082/domains
2025-08-11 02:04:15,794 - DEBUG - Requesting: http://10.0.0.137:8082/domain/4f50ffac-df1c-40e0-836b-06b55563f63d
2025-08-11 02:04:15,805 - DEBUG - Requesting: http://10.0.0.137:8082/project/8b01ea9e-880c-4a67-9026-87546ea27acd
2025-08-11 02:04:15,875 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/ec61b0ee-8203-403e-9851-f875a38f6f5a
2025-08-11 02:04:15,885 - DEBUG - ==>Verifying data for policy with id: 620ebe38-dc93-4e17-9549-a604647e651c, fqn: ['default-domain', 'ctest-TestBasicPolicy-39427906', 'ctest-policy-allow-all-38705132']
2025-08-11 02:04:15,885 - INFO - VN ctest-vn-08787838 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 02:04:15,885 - DEBUG - Verifying the vn in opserver
2025-08-11 02:04:15,885 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39427906:ctest-vn-08787838 virtual network link through opserver 10.0.0.137
2025-08-11 02:04:15,885 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks
2025-08-11 02:04:15,895 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39427906:ctest-vn-08787838', 'href': 'http://10.0.0.137:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39427906:ctest-vn-08787838?flat'}
2025-08-11 02:04:15,895 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39427906:ctest-vn-08787838 is found in opserver
2025-08-11 02:04:15,905 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 02:04:15,910 - DEBUG - VRF ids for VN ctest-vn-08787838: {}
2025-08-11 02:04:15,962 - DEBUG - Services list from nova: [