2026-07-12 13:15:18,723 - INFO - Domain Default found not creating
2026-07-12 13:15:19,541 - INFO - Project ctest-TestBasicPolicy-49230126 not found, creating it
2026-07-12 13:15:19,997 - INFO - Created Project:ctest-TestBasicPolicy-49230126, ID : 8823b195-2c76-4638-9127-11307a8a1e1d
2026-07-12 13:15:21,500 - INFO - ================================================================================
2026-07-12 13:15:21,500 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-07-12 13:15:21,500 - 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-07-12 13:15:21,778 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-07-12 13:15:21,778 - INFO - Initial checks done. Running the testcase now
2026-07-12 13:15:21,778 - INFO -
2026-07-12 13:15:22,359 - DEBUG - Response for create_network : {'network': {'id': '426681b4-b654-4232-8d20-1caf08dccc32', 'name': 'ctest-vn-67006836', 'tenant_id': '8823b1952c764638912711307a8a1e1d', 'project_id': '8823b1952c764638912711307a8a1e1d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49230126', 'ctest-vn-67006836'], 'port_security_enabled': True, 'description': ''}}
2026-07-12 13:15:22,573 - DEBUG - Response for create_subnet : {'subnet': {'id': '386a6446-4669-4859-a85f-1e10f4507dc3', 'name': '', 'tenant_id': '8823b1952c764638912711307a8a1e1d', 'network_id': '426681b4-b654-4232-8d20-1caf08dccc32', 'ip_version': 4, 'cidr': '130.254.169.128/26', 'allocation_pools': [{'start': '130.254.169.130', 'end': '130.254.169.190'}], 'gateway_ip': '130.254.169.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '130.254.169.130', 'tags': [], 'project_id': '8823b1952c764638912711307a8a1e1d'}}
2026-07-12 13:15:22,592 - INFO - Created VN ctest-vn-67006836
2026-07-12 13:15:22,646 - DEBUG - VN ctest-vn-67006836 UUID is 426681b4-b654-4232-8d20-1caf08dccc32
2026-07-12 13:15:22,925 - DEBUG - Response for create_network : {'network': {'id': '84bd78fb-c7fd-497e-b1f3-9cb9e61972a0', 'name': 'ctest-vn-70948824', 'tenant_id': '8823b1952c764638912711307a8a1e1d', 'project_id': '8823b1952c764638912711307a8a1e1d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49230126', 'ctest-vn-70948824'], 'port_security_enabled': True, 'description': ''}}
2026-07-12 13:15:23,105 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b192a7c2-e1cc-449f-9fa0-9afbc6a882db', 'name': '', 'tenant_id': '8823b1952c764638912711307a8a1e1d', 'network_id': '84bd78fb-c7fd-497e-b1f3-9cb9e61972a0', 'ip_version': 4, 'cidr': '17.104.178.192/26', 'allocation_pools': [{'start': '17.104.178.194', 'end': '17.104.178.254'}], 'gateway_ip': '17.104.178.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '17.104.178.194', 'tags': [], 'project_id': '8823b1952c764638912711307a8a1e1d'}}
2026-07-12 13:15:23,122 - INFO - Created VN ctest-vn-70948824
2026-07-12 13:15:23,174 - DEBUG - VN ctest-vn-70948824 UUID is 84bd78fb-c7fd-497e-b1f3-9cb9e61972a0
2026-07-12 13:15:23,288 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-49230126:ctest-vn-67006836, 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-49230126:ctest-vn-70948824, 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-07-12 13:15:23,606 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '426681b4-b654-4232-8d20-1caf08dccc32', 'name': 'ctest-vn-67006836', 'tenant_id': '8823b1952c764638912711307a8a1e1d', 'project_id': '8823b1952c764638912711307a8a1e1d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['386a6446-4669-4859-a85f-1e10f4507dc3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49230126', 'ctest-vn-67006836'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49230126', 'ctest-policy-allow-all-52390437']], 'subnet_ipam': [{'subnet_cidr': '130.254.169.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-07-12 13:15:23,834 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '84bd78fb-c7fd-497e-b1f3-9cb9e61972a0', 'name': 'ctest-vn-70948824', 'tenant_id': '8823b1952c764638912711307a8a1e1d', 'project_id': '8823b1952c764638912711307a8a1e1d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b192a7c2-e1cc-449f-9fa0-9afbc6a882db'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49230126', 'ctest-vn-70948824'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49230126', 'ctest-policy-allow-all-52390437']], 'subnet_ipam': [{'subnet_cidr': '17.104.178.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-07-12 13:15:23,994 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-07-12 13:15:24,319 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-07-12 13:15:24,346 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3f2d2d5c-b1d9-41b3-af2f-0f63be13b654
2026-07-12 13:15:24,357 - DEBUG - Requesting: http://10.0.0.50:8082/project/8823b195-2c76-4638-9127-11307a8a1e1d
2026-07-12 13:15:24,432 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/426681b4-b654-4232-8d20-1caf08dccc32
2026-07-12 13:15:24,444 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/426681b4-b654-4232-8d20-1caf08dccc32
2026-07-12 13:15:24,460 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/dc46cc9e-7fed-41ee-b3b1-90c0e55bcb81
2026-07-12 13:15:24,469 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/dc46cc9e-7fed-41ee-b3b1-90c0e55bcb81
2026-07-12 13:15:24,475 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/42a246f7-177e-497b-a126-6ac8b38c9ea1
2026-07-12 13:15:24,483 - DEBUG - Route Targets: ['target:64512:8000004']
2026-07-12 13:15:24,483 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/426681b4-b654-4232-8d20-1caf08dccc32
2026-07-12 13:15:24,493 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/dc46cc9e-7fed-41ee-b3b1-90c0e55bcb81
2026-07-12 13:15:24,512 - INFO - Verified VN network id 12 for VN 426681b4-b654-4232-8d20-1caf08dccc32
2026-07-12 13:15:24,512 - INFO - Verifications in API Server for VN ctest-vn-67006836 passed
2026-07-12 13:15:24,512 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/426681b4-b654-4232-8d20-1caf08dccc32
2026-07-12 13:15:24,523 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/dc46cc9e-7fed-41ee-b3b1-90c0e55bcb81
2026-07-12 13:15:24,531 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/dc46cc9e-7fed-41ee-b3b1-90c0e55bcb81
2026-07-12 13:15:24,538 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/42a246f7-177e-497b-a126-6ac8b38c9ea1
2026-07-12 13:15:24,550 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49230126:ctest-vn-67006836', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49230126', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4784654267280802354', 'uuid-lslong': '10169159496696122418'}, 'enable': 'true', 'created': '2026-07-12T13:15:22', 'last-modified': '2026-07-12T13:15:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.981915'}
2026-07-12 13:15:24,555 - DEBUG - Route Targets: ['target:64512:8000004']
2026-07-12 13:15:24,555 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67006836 passed
2026-07-12 13:15:24,555 - DEBUG - ====Verifying policy data for ctest-vn-67006836 in API_Server ======
2026-07-12 13:15:24,555 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-07-12 13:15:24,560 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3f2d2d5c-b1d9-41b3-af2f-0f63be13b654
2026-07-12 13:15:24,571 - DEBUG - Requesting: http://10.0.0.50:8082/project/8823b195-2c76-4638-9127-11307a8a1e1d
2026-07-12 13:15:24,643 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/426681b4-b654-4232-8d20-1caf08dccc32
2026-07-12 13:15:24,651 - DEBUG - ==>Verifying data for policy with id: 1e816b81-1d13-4533-a589-be4f57c7fcbc, fqn: ['default-domain', 'ctest-TestBasicPolicy-49230126', 'ctest-policy-allow-all-52390437']
2026-07-12 13:15:24,652 - INFO - VN ctest-vn-67006836 Policy verification: verify_vn_policy_in_api_server, status: True
2026-07-12 13:15:24,652 - DEBUG - Verifying the vn in opserver
2026-07-12 13:15:24,652 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49230126:ctest-vn-67006836 virtual network link through opserver 10.0.0.50
2026-07-12 13:15:24,652 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-07-12 13:15:24,967 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-07-12 13:15:25,009 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49230126:ctest-vn-67006836', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49230126:ctest-vn-67006836?flat'}
2026-07-12 13:15:25,009 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49230126:ctest-vn-67006836 is found in opserver
2026-07-12 13:15:25,021 - DEBUG - Do not have enough data to verify VN in agent
2026-07-12 13:15:25,025 - DEBUG - VRF ids for VN ctest-vn-67006836: {}
2026-07-12 13:15:25,025 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-07-12 13:15:25,030 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3f2d2d5c-b1d9-41b3-af2f-0f63be13b654
2026-07-12 13:15:25,039 - DEBUG - Requesting: http://10.0.0.50:8082/project/8823b195-2c76-4638-9127-11307a8a1e1d
2026-07-12 13:15:25,112 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/84bd78fb-c7fd-497e-b1f3-9cb9e61972a0
2026-07-12 13:15:25,123 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/84bd78fb-c7fd-497e-b1f3-9cb9e61972a0
2026-07-12 13:15:25,131 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ef6ad437-65cc-4493-a7fc-78780d5215bb
2026-07-12 13:15:25,138 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ef6ad437-65cc-4493-a7fc-78780d5215bb
2026-07-12 13:15:25,145 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/7014e1af-1d3e-4cdf-b0b1-f4f588f6280b
2026-07-12 13:15:25,152 - DEBUG - Route Targets: ['target:64512:8000005']
2026-07-12 13:15:25,152 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/84bd78fb-c7fd-497e-b1f3-9cb9e61972a0
2026-07-12 13:15:25,160 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ef6ad437-65cc-4493-a7fc-78780d5215bb
2026-07-12 13:15:25,175 - INFO - Verified VN network id 13 for VN 84bd78fb-c7fd-497e-b1f3-9cb9e61972a0
2026-07-12 13:15:25,175 - INFO - Verifications in API Server for VN ctest-vn-70948824 passed
2026-07-12 13:15:25,175 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/84bd78fb-c7fd-497e-b1f3-9cb9e61972a0
2026-07-12 13:15:25,183 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ef6ad437-65cc-4493-a7fc-78780d5215bb
2026-07-12 13:15:25,190 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ef6ad437-65cc-4493-a7fc-78780d5215bb
2026-07-12 13:15:25,196 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/7014e1af-1d3e-4cdf-b0b1-f4f588f6280b
2026-07-12 13:15:25,206 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49230126:ctest-vn-70948824', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49230126', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9564934206392191358', 'uuid-lslong': '12822764886297244320'}, 'enable': 'true', 'created': '2026-07-12T13:15:22', 'last-modified': '2026-07-12T13:15:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.392586'}
2026-07-12 13:15:25,212 - DEBUG - Route Targets: ['target:64512:8000005']
2026-07-12 13:15:25,212 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70948824 passed
2026-07-12 13:15:25,212 - DEBUG - ====Verifying policy data for ctest-vn-70948824 in API_Server ======
2026-07-12 13:15:25,212 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-07-12 13:15:25,217 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3f2d2d5c-b1d9-41b3-af2f-0f63be13b654
2026-07-12 13:15:25,226 - DEBUG - Requesting: http://10.0.0.50:8082/project/8823b195-2c76-4638-9127-11307a8a1e1d
2026-07-12 13:15:25,302 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/84bd78fb-c7fd-497e-b1f3-9cb9e61972a0
2026-07-12 13:15:25,311 - DEBUG - ==>Verifying data for policy with id: 1e816b81-1d13-4533-a589-be4f57c7fcbc, fqn: ['default-domain', 'ctest-TestBasicPolicy-49230126', 'ctest-policy-allow-all-52390437']
2026-07-12 13:15:25,311 - INFO - VN ctest-vn-70948824 Policy verification: verify_vn_policy_in_api_server, status: True
2026-07-12 13:15:25,311 - DEBUG - Verifying the vn in opserver
2026-07-12 13:15:25,311 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49230126:ctest-vn-70948824 virtual network link through opserver 10.0.0.50
2026-07-12 13:15:25,312 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-07-12 13:15:25,321 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49230126:ctest-vn-70948824', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49230126:ctest-vn-70948824?flat'}
2026-07-12 13:15:25,321 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49230126:ctest-vn-70948824 is found in opserver
2026-07-12 13:15:25,331 - DEBUG - Do not have enough data to verify VN in agent
2026-07-12 13:15:25,337 - DEBUG - VRF ids for VN ctest-vn-70948824: {}
2026-07-12 13:15:25,395 - DEBUG - Services list from nova: [