2025-09-17 14:22:20,171 - INFO - Domain Default found not creating
2025-09-17 14:22:20,335 - INFO - Project ctest-TestBasicPolicy-46451504 not found, creating it
2025-09-17 14:22:20,804 - INFO - Created Project:ctest-TestBasicPolicy-46451504, ID : 849eeb6c-77b8-4495-a37e-0fe2089593d7
2025-09-17 14:22:22,305 - INFO - ================================================================================
2025-09-17 14:22:22,306 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-17 14:22:22,306 - 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-09-17 14:22:22,591 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-09-17 14:22:22,591 - INFO - Initial checks done. Running the testcase now
2025-09-17 14:22:22,591 - INFO -
2025-09-17 14:22:23,216 - DEBUG - Response for create_network : {'network': {'id': '4f8eb6f5-ce51-4e49-881b-6cfd68cf6a5f', 'name': 'ctest-vn-91602961', 'tenant_id': '849eeb6c77b84495a37e0fe2089593d7', 'project_id': '849eeb6c77b84495a37e0fe2089593d7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46451504', 'ctest-vn-91602961'], 'port_security_enabled': True, 'description': ''}}
2025-09-17 14:22:23,437 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e1d28deb-f635-43bd-9b25-779cc573fb96', 'name': '', 'tenant_id': '849eeb6c77b84495a37e0fe2089593d7', 'network_id': '4f8eb6f5-ce51-4e49-881b-6cfd68cf6a5f', 'ip_version': 4, 'cidr': '135.1.22.64/26', 'allocation_pools': [{'start': '135.1.22.66', 'end': '135.1.22.126'}], 'gateway_ip': '135.1.22.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.1.22.66', 'tags': [], 'project_id': '849eeb6c77b84495a37e0fe2089593d7'}}
2025-09-17 14:22:23,457 - INFO - Created VN ctest-vn-91602961
2025-09-17 14:22:23,512 - DEBUG - VN ctest-vn-91602961 UUID is 4f8eb6f5-ce51-4e49-881b-6cfd68cf6a5f
2025-09-17 14:22:23,794 - DEBUG - Response for create_network : {'network': {'id': 'da0d2eb1-a639-45f5-91f9-8ac6645e142e', 'name': 'ctest-vn-37425202', 'tenant_id': '849eeb6c77b84495a37e0fe2089593d7', 'project_id': '849eeb6c77b84495a37e0fe2089593d7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46451504', 'ctest-vn-37425202'], 'port_security_enabled': True, 'description': ''}}
2025-09-17 14:22:23,987 - DEBUG - Response for create_subnet : {'subnet': {'id': '35a28284-941f-45d3-8131-00eab59ea586', 'name': '', 'tenant_id': '849eeb6c77b84495a37e0fe2089593d7', 'network_id': 'da0d2eb1-a639-45f5-91f9-8ac6645e142e', 'ip_version': 4, 'cidr': '187.170.109.192/26', 'allocation_pools': [{'start': '187.170.109.194', 'end': '187.170.109.254'}], 'gateway_ip': '187.170.109.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '187.170.109.194', 'tags': [], 'project_id': '849eeb6c77b84495a37e0fe2089593d7'}}
2025-09-17 14:22:24,014 - INFO - Created VN ctest-vn-37425202
2025-09-17 14:22:24,064 - DEBUG - VN ctest-vn-37425202 UUID is da0d2eb1-a639-45f5-91f9-8ac6645e142e
2025-09-17 14:22:24,189 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-46451504:ctest-vn-91602961, 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-46451504:ctest-vn-37425202, 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-09-17 14:22:24,490 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4f8eb6f5-ce51-4e49-881b-6cfd68cf6a5f', 'name': 'ctest-vn-91602961', 'tenant_id': '849eeb6c77b84495a37e0fe2089593d7', 'project_id': '849eeb6c77b84495a37e0fe2089593d7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e1d28deb-f635-43bd-9b25-779cc573fb96'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46451504', 'ctest-vn-91602961'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46451504', 'ctest-policy-allow-all-82174197']], 'subnet_ipam': [{'subnet_cidr': '135.1.22.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-17 14:22:24,725 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'da0d2eb1-a639-45f5-91f9-8ac6645e142e', 'name': 'ctest-vn-37425202', 'tenant_id': '849eeb6c77b84495a37e0fe2089593d7', 'project_id': '849eeb6c77b84495a37e0fe2089593d7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['35a28284-941f-45d3-8131-00eab59ea586'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46451504', 'ctest-vn-37425202'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46451504', 'ctest-policy-allow-all-82174197']], 'subnet_ipam': [{'subnet_cidr': '187.170.109.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-17 14:22:24,892 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-17 14:22:25,207 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-17 14:22:25,237 - DEBUG - Requesting: http://10.0.0.254:8082/domain/527a8172-c3f0-4440-8c4b-e91c2764378b
2025-09-17 14:22:25,250 - DEBUG - Requesting: http://10.0.0.254:8082/project/849eeb6c-77b8-4495-a37e-0fe2089593d7
2025-09-17 14:22:25,322 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4f8eb6f5-ce51-4e49-881b-6cfd68cf6a5f
2025-09-17 14:22:25,332 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4f8eb6f5-ce51-4e49-881b-6cfd68cf6a5f
2025-09-17 14:22:25,341 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/907a40a9-3641-4f4b-bb29-b602bbd8436c
2025-09-17 14:22:25,348 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/907a40a9-3641-4f4b-bb29-b602bbd8436c
2025-09-17 14:22:25,355 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/6a1167c9-960d-431e-a073-90b6f2b03cc7
2025-09-17 14:22:25,361 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-17 14:22:25,361 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4f8eb6f5-ce51-4e49-881b-6cfd68cf6a5f
2025-09-17 14:22:25,370 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/907a40a9-3641-4f4b-bb29-b602bbd8436c
2025-09-17 14:22:25,385 - INFO - Verified VN network id 11 for VN 4f8eb6f5-ce51-4e49-881b-6cfd68cf6a5f
2025-09-17 14:22:25,385 - INFO - Verifications in API Server for VN ctest-vn-91602961 passed
2025-09-17 14:22:25,385 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4f8eb6f5-ce51-4e49-881b-6cfd68cf6a5f
2025-09-17 14:22:25,394 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/907a40a9-3641-4f4b-bb29-b602bbd8436c
2025-09-17 14:22:25,401 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/907a40a9-3641-4f4b-bb29-b602bbd8436c
2025-09-17 14:22:25,408 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/6a1167c9-960d-431e-a073-90b6f2b03cc7
2025-09-17 14:22:25,421 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46451504:ctest-vn-91602961', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46451504', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5732720542533897801', 'uuid-lslong': '9807552449170336351'}, 'enable': 'true', 'created': '2025-09-17T14:22:23', 'last-modified': '2025-09-17T14:22:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.957181'}
2025-09-17 14:22:25,428 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-17 14:22:25,428 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91602961 passed
2025-09-17 14:22:25,429 - DEBUG - ====Verifying policy data for ctest-vn-91602961 in API_Server ======
2025-09-17 14:22:25,429 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-17 14:22:25,441 - DEBUG - Requesting: http://10.0.0.254:8082/domain/527a8172-c3f0-4440-8c4b-e91c2764378b
2025-09-17 14:22:25,456 - DEBUG - Requesting: http://10.0.0.254:8082/project/849eeb6c-77b8-4495-a37e-0fe2089593d7
2025-09-17 14:22:25,537 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4f8eb6f5-ce51-4e49-881b-6cfd68cf6a5f
2025-09-17 14:22:25,550 - DEBUG - ==>Verifying data for policy with id: 0d449abf-4fed-42c4-ac32-b293148bdb0e, fqn: ['default-domain', 'ctest-TestBasicPolicy-46451504', 'ctest-policy-allow-all-82174197']
2025-09-17 14:22:25,550 - INFO - VN ctest-vn-91602961 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-17 14:22:25,550 - DEBUG - Verifying the vn in opserver
2025-09-17 14:22:25,550 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46451504:ctest-vn-91602961 virtual network link through opserver 10.0.0.254
2025-09-17 14:22:25,551 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-17 14:22:25,856 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-17 14:22:25,915 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46451504:ctest-vn-91602961', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46451504:ctest-vn-91602961?flat'}
2025-09-17 14:22:25,915 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46451504:ctest-vn-91602961 is found in opserver
2025-09-17 14:22:25,925 - DEBUG - Do not have enough data to verify VN in agent
2025-09-17 14:22:25,930 - DEBUG - VRF ids for VN ctest-vn-91602961: {}
2025-09-17 14:22:25,930 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-17 14:22:25,935 - DEBUG - Requesting: http://10.0.0.254:8082/domain/527a8172-c3f0-4440-8c4b-e91c2764378b
2025-09-17 14:22:25,946 - DEBUG - Requesting: http://10.0.0.254:8082/project/849eeb6c-77b8-4495-a37e-0fe2089593d7
2025-09-17 14:22:26,024 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/da0d2eb1-a639-45f5-91f9-8ac6645e142e
2025-09-17 14:22:26,036 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/da0d2eb1-a639-45f5-91f9-8ac6645e142e
2025-09-17 14:22:26,046 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cc7a3a45-f434-48ac-9b50-ab1def317fe6
2025-09-17 14:22:26,052 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cc7a3a45-f434-48ac-9b50-ab1def317fe6
2025-09-17 14:22:26,059 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/73004ceb-ea5b-474d-b580-eb765861582a
2025-09-17 14:22:26,066 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-17 14:22:26,066 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/da0d2eb1-a639-45f5-91f9-8ac6645e142e
2025-09-17 14:22:26,075 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cc7a3a45-f434-48ac-9b50-ab1def317fe6
2025-09-17 14:22:26,088 - INFO - Verified VN network id 12 for VN da0d2eb1-a639-45f5-91f9-8ac6645e142e
2025-09-17 14:22:26,088 - INFO - Verifications in API Server for VN ctest-vn-37425202 passed
2025-09-17 14:22:26,088 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/da0d2eb1-a639-45f5-91f9-8ac6645e142e
2025-09-17 14:22:26,097 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cc7a3a45-f434-48ac-9b50-ab1def317fe6
2025-09-17 14:22:26,104 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cc7a3a45-f434-48ac-9b50-ab1def317fe6
2025-09-17 14:22:26,110 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/73004ceb-ea5b-474d-b580-eb765861582a
2025-09-17 14:22:26,121 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46451504:ctest-vn-37425202', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46451504', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15712266015498388981', 'uuid-lslong': '10518590989392548910'}, 'enable': 'true', 'created': '2025-09-17T14:22:23', 'last-modified': '2025-09-17T14:22:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.418106'}
2025-09-17 14:22:26,127 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-17 14:22:26,127 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37425202 passed
2025-09-17 14:22:26,127 - DEBUG - ====Verifying policy data for ctest-vn-37425202 in API_Server ======
2025-09-17 14:22:26,127 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-17 14:22:26,134 - DEBUG - Requesting: http://10.0.0.254:8082/domain/527a8172-c3f0-4440-8c4b-e91c2764378b
2025-09-17 14:22:26,144 - DEBUG - Requesting: http://10.0.0.254:8082/project/849eeb6c-77b8-4495-a37e-0fe2089593d7
2025-09-17 14:22:26,216 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/da0d2eb1-a639-45f5-91f9-8ac6645e142e
2025-09-17 14:22:26,226 - DEBUG - ==>Verifying data for policy with id: 0d449abf-4fed-42c4-ac32-b293148bdb0e, fqn: ['default-domain', 'ctest-TestBasicPolicy-46451504', 'ctest-policy-allow-all-82174197']
2025-09-17 14:22:26,226 - INFO - VN ctest-vn-37425202 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-17 14:22:26,227 - DEBUG - Verifying the vn in opserver
2025-09-17 14:22:26,227 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46451504:ctest-vn-37425202 virtual network link through opserver 10.0.0.254
2025-09-17 14:22:26,227 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-17 14:22:26,238 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46451504:ctest-vn-37425202', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46451504:ctest-vn-37425202?flat'}
2025-09-17 14:22:26,238 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46451504:ctest-vn-37425202 is found in opserver
2025-09-17 14:22:26,247 - DEBUG - Do not have enough data to verify VN in agent
2025-09-17 14:22:26,252 - DEBUG - VRF ids for VN ctest-vn-37425202: {}
2025-09-17 14:22:26,333 - DEBUG - Services list from nova: [