2025-10-22 06:22:44,516 - INFO - Domain Default found not creating
2025-10-22 06:22:44,687 - INFO - Project ctest-TestBasicPolicy-84347877 not found, creating it
2025-10-22 06:22:45,171 - INFO - Created Project:ctest-TestBasicPolicy-84347877, ID : 023af9eb-7e37-4b6e-9b20-522148b81e20
2025-10-22 06:22:46,715 - INFO - ================================================================================
2025-10-22 06:22:46,715 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-22 06:22:46,715 - 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-22 06:22:46,969 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-10-22 06:22:46,969 - INFO - Initial checks done. Running the testcase now
2025-10-22 06:22:46,969 - INFO -
2025-10-22 06:22:47,540 - DEBUG - Response for create_network : {'network': {'id': '130829ad-0dfc-4e9d-a614-099b5e0980de', 'name': 'ctest-vn-83948595', 'tenant_id': '023af9eb7e374b6e9b20522148b81e20', 'project_id': '023af9eb7e374b6e9b20522148b81e20', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84347877', 'ctest-vn-83948595'], 'port_security_enabled': True, 'description': ''}}
2025-10-22 06:22:47,761 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f7c6ece2-fa32-4346-a935-e746298ca532', 'name': '', 'tenant_id': '023af9eb7e374b6e9b20522148b81e20', 'network_id': '130829ad-0dfc-4e9d-a614-099b5e0980de', 'ip_version': 4, 'cidr': '143.39.184.192/26', 'allocation_pools': [{'start': '143.39.184.194', 'end': '143.39.184.254'}], 'gateway_ip': '143.39.184.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '143.39.184.194', 'tags': [], 'project_id': '023af9eb7e374b6e9b20522148b81e20'}}
2025-10-22 06:22:47,780 - INFO - Created VN ctest-vn-83948595
2025-10-22 06:22:47,832 - DEBUG - VN ctest-vn-83948595 UUID is 130829ad-0dfc-4e9d-a614-099b5e0980de
2025-10-22 06:22:48,132 - DEBUG - Response for create_network : {'network': {'id': '2a9e1d41-cf33-419d-9d17-98255cf03d07', 'name': 'ctest-vn-27763114', 'tenant_id': '023af9eb7e374b6e9b20522148b81e20', 'project_id': '023af9eb7e374b6e9b20522148b81e20', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84347877', 'ctest-vn-27763114'], 'port_security_enabled': True, 'description': ''}}
2025-10-22 06:22:48,300 - DEBUG - Response for create_subnet : {'subnet': {'id': '294c6f15-c3bd-426c-899c-0393dca3be9e', 'name': '', 'tenant_id': '023af9eb7e374b6e9b20522148b81e20', 'network_id': '2a9e1d41-cf33-419d-9d17-98255cf03d07', 'ip_version': 4, 'cidr': '18.90.149.64/26', 'allocation_pools': [{'start': '18.90.149.66', 'end': '18.90.149.126'}], 'gateway_ip': '18.90.149.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '18.90.149.66', 'tags': [], 'project_id': '023af9eb7e374b6e9b20522148b81e20'}}
2025-10-22 06:22:48,322 - INFO - Created VN ctest-vn-27763114
2025-10-22 06:22:48,375 - DEBUG - VN ctest-vn-27763114 UUID is 2a9e1d41-cf33-419d-9d17-98255cf03d07
2025-10-22 06:22:48,490 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-84347877:ctest-vn-83948595, 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-84347877:ctest-vn-27763114, 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-22 06:22:48,793 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '130829ad-0dfc-4e9d-a614-099b5e0980de', 'name': 'ctest-vn-83948595', 'tenant_id': '023af9eb7e374b6e9b20522148b81e20', 'project_id': '023af9eb7e374b6e9b20522148b81e20', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f7c6ece2-fa32-4346-a935-e746298ca532'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84347877', 'ctest-vn-83948595'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84347877', 'ctest-policy-allow-all-81453306']], 'subnet_ipam': [{'subnet_cidr': '143.39.184.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-22 06:22:49,028 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2a9e1d41-cf33-419d-9d17-98255cf03d07', 'name': 'ctest-vn-27763114', 'tenant_id': '023af9eb7e374b6e9b20522148b81e20', 'project_id': '023af9eb7e374b6e9b20522148b81e20', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['294c6f15-c3bd-426c-899c-0393dca3be9e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84347877', 'ctest-vn-27763114'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84347877', 'ctest-policy-allow-all-81453306']], 'subnet_ipam': [{'subnet_cidr': '18.90.149.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-22 06:22:49,187 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-22 06:22:49,488 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-22 06:22:49,526 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d1b7ce6f-4b84-4801-940d-30d8754f79ef
2025-10-22 06:22:49,538 - DEBUG - Requesting: http://10.0.0.38:8082/project/023af9eb-7e37-4b6e-9b20-522148b81e20
2025-10-22 06:22:49,613 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/130829ad-0dfc-4e9d-a614-099b5e0980de
2025-10-22 06:22:49,625 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/130829ad-0dfc-4e9d-a614-099b5e0980de
2025-10-22 06:22:49,635 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/eeb5d55c-a1cf-4ab6-8a0f-e5c4ee03ea2a
2025-10-22 06:22:49,642 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/eeb5d55c-a1cf-4ab6-8a0f-e5c4ee03ea2a
2025-10-22 06:22:49,649 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/817d4a3b-a4c2-4907-9796-cbde96ca1fa0
2025-10-22 06:22:49,656 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 06:22:49,656 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/130829ad-0dfc-4e9d-a614-099b5e0980de
2025-10-22 06:22:49,665 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/eeb5d55c-a1cf-4ab6-8a0f-e5c4ee03ea2a
2025-10-22 06:22:49,680 - INFO - Verified VN network id 11 for VN 130829ad-0dfc-4e9d-a614-099b5e0980de
2025-10-22 06:22:49,680 - INFO - Verifications in API Server for VN ctest-vn-83948595 passed
2025-10-22 06:22:49,681 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/130829ad-0dfc-4e9d-a614-099b5e0980de
2025-10-22 06:22:49,690 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/eeb5d55c-a1cf-4ab6-8a0f-e5c4ee03ea2a
2025-10-22 06:22:49,697 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/eeb5d55c-a1cf-4ab6-8a0f-e5c4ee03ea2a
2025-10-22 06:22:49,704 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/817d4a3b-a4c2-4907-9796-cbde96ca1fa0
2025-10-22 06:22:49,717 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84347877:ctest-vn-83948595', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84347877', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1371391909775036061', 'uuid-lslong': '11967200672732512478'}, 'enable': 'true', 'created': '2025-10-22T06:22:47', 'last-modified': '2025-10-22T06:22:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.945233'}
2025-10-22 06:22:49,724 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 06:22:49,725 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83948595 passed
2025-10-22 06:22:49,725 - DEBUG - ====Verifying policy data for ctest-vn-83948595 in API_Server ======
2025-10-22 06:22:49,725 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-22 06:22:49,731 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d1b7ce6f-4b84-4801-940d-30d8754f79ef
2025-10-22 06:22:49,743 - DEBUG - Requesting: http://10.0.0.38:8082/project/023af9eb-7e37-4b6e-9b20-522148b81e20
2025-10-22 06:22:49,817 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/130829ad-0dfc-4e9d-a614-099b5e0980de
2025-10-22 06:22:49,826 - DEBUG - ==>Verifying data for policy with id: cb1b156f-24e1-4593-895a-3ba10323aeb8, fqn: ['default-domain', 'ctest-TestBasicPolicy-84347877', 'ctest-policy-allow-all-81453306']
2025-10-22 06:22:49,827 - INFO - VN ctest-vn-83948595 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 06:22:49,827 - DEBUG - Verifying the vn in opserver
2025-10-22 06:22:49,827 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84347877:ctest-vn-83948595 virtual network link through opserver 10.0.0.38
2025-10-22 06:22:49,827 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-22 06:22:50,128 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-22 06:22:50,190 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84347877:ctest-vn-83948595', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84347877:ctest-vn-83948595?flat'}
2025-10-22 06:22:50,190 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84347877:ctest-vn-83948595 is found in opserver
2025-10-22 06:22:50,201 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 06:22:50,208 - DEBUG - VRF ids for VN ctest-vn-83948595: {}
2025-10-22 06:22:50,208 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-22 06:22:50,215 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d1b7ce6f-4b84-4801-940d-30d8754f79ef
2025-10-22 06:22:50,228 - DEBUG - Requesting: http://10.0.0.38:8082/project/023af9eb-7e37-4b6e-9b20-522148b81e20
2025-10-22 06:22:50,296 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2a9e1d41-cf33-419d-9d17-98255cf03d07
2025-10-22 06:22:50,307 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2a9e1d41-cf33-419d-9d17-98255cf03d07
2025-10-22 06:22:50,318 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fceed915-794a-4f9a-971d-1399db8b4018
2025-10-22 06:22:50,327 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fceed915-794a-4f9a-971d-1399db8b4018
2025-10-22 06:22:50,335 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b9ec7263-6e8e-4af5-a1cb-b1c5fe08d8da
2025-10-22 06:22:50,343 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 06:22:50,344 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2a9e1d41-cf33-419d-9d17-98255cf03d07
2025-10-22 06:22:50,352 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fceed915-794a-4f9a-971d-1399db8b4018
2025-10-22 06:22:50,368 - INFO - Verified VN network id 12 for VN 2a9e1d41-cf33-419d-9d17-98255cf03d07
2025-10-22 06:22:50,369 - INFO - Verifications in API Server for VN ctest-vn-27763114 passed
2025-10-22 06:22:50,369 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2a9e1d41-cf33-419d-9d17-98255cf03d07
2025-10-22 06:22:50,378 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fceed915-794a-4f9a-971d-1399db8b4018
2025-10-22 06:22:50,386 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fceed915-794a-4f9a-971d-1399db8b4018
2025-10-22 06:22:50,393 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b9ec7263-6e8e-4af5-a1cb-b1c5fe08d8da
2025-10-22 06:22:50,407 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84347877:ctest-vn-27763114', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84347877', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3070924164399579549', 'uuid-lslong': '11319683474659491079'}, 'enable': 'true', 'created': '2025-10-22T06:22:48', 'last-modified': '2025-10-22T06:22:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.401645'}
2025-10-22 06:22:50,413 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 06:22:50,413 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27763114 passed
2025-10-22 06:22:50,413 - DEBUG - ====Verifying policy data for ctest-vn-27763114 in API_Server ======
2025-10-22 06:22:50,413 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-22 06:22:50,420 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d1b7ce6f-4b84-4801-940d-30d8754f79ef
2025-10-22 06:22:50,432 - DEBUG - Requesting: http://10.0.0.38:8082/project/023af9eb-7e37-4b6e-9b20-522148b81e20
2025-10-22 06:22:50,504 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2a9e1d41-cf33-419d-9d17-98255cf03d07
2025-10-22 06:22:50,514 - DEBUG - ==>Verifying data for policy with id: cb1b156f-24e1-4593-895a-3ba10323aeb8, fqn: ['default-domain', 'ctest-TestBasicPolicy-84347877', 'ctest-policy-allow-all-81453306']
2025-10-22 06:22:50,514 - INFO - VN ctest-vn-27763114 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 06:22:50,514 - DEBUG - Verifying the vn in opserver
2025-10-22 06:22:50,514 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84347877:ctest-vn-27763114 virtual network link through opserver 10.0.0.38
2025-10-22 06:22:50,514 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-22 06:22:50,525 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84347877:ctest-vn-27763114', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84347877:ctest-vn-27763114?flat'}
2025-10-22 06:22:50,525 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84347877:ctest-vn-27763114 is found in opserver
2025-10-22 06:22:50,535 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 06:22:50,541 - DEBUG - VRF ids for VN ctest-vn-27763114: {}
2025-10-22 06:22:50,604 - DEBUG - Services list from nova: [