2026-03-12 13:42:41,468 - INFO - Domain Default found not creating
2026-03-12 13:42:41,652 - INFO - Project ctest-TestBasicPolicy-49714591 not found, creating it
2026-03-12 13:42:42,102 - INFO - Created Project:ctest-TestBasicPolicy-49714591, ID : 6d7d10f5-d22e-4419-8974-ad646cb8e6ff
2026-03-12 13:42:43,623 - INFO - ================================================================================
2026-03-12 13:42:43,623 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-12 13:42:43,623 - 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-03-12 13:42:43,880 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2026-03-12 13:42:43,880 - INFO - Initial checks done. Running the testcase now
2026-03-12 13:42:43,880 - INFO -
2026-03-12 13:42:44,456 - DEBUG - Response for create_network : {'network': {'id': 'eeb292f8-c640-4a09-9a1a-03534184965b', 'name': 'ctest-vn-31160231', 'tenant_id': '6d7d10f5d22e44198974ad646cb8e6ff', 'project_id': '6d7d10f5d22e44198974ad646cb8e6ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49714591', 'ctest-vn-31160231'], 'port_security_enabled': True, 'description': ''}}
2026-03-12 13:42:44,668 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e28c3468-24e9-48e8-a60d-4aef11ebbf1d', 'name': '', 'tenant_id': '6d7d10f5d22e44198974ad646cb8e6ff', 'network_id': 'eeb292f8-c640-4a09-9a1a-03534184965b', 'ip_version': 4, 'cidr': '175.254.181.64/26', 'allocation_pools': [{'start': '175.254.181.66', 'end': '175.254.181.126'}], 'gateway_ip': '175.254.181.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '175.254.181.66', 'tags': [], 'project_id': '6d7d10f5d22e44198974ad646cb8e6ff'}}
2026-03-12 13:42:44,691 - INFO - Created VN ctest-vn-31160231
2026-03-12 13:42:44,743 - DEBUG - VN ctest-vn-31160231 UUID is eeb292f8-c640-4a09-9a1a-03534184965b
2026-03-12 13:42:45,053 - DEBUG - Response for create_network : {'network': {'id': '1f7554c2-7f32-4852-98b3-ab01022a0c27', 'name': 'ctest-vn-41160589', 'tenant_id': '6d7d10f5d22e44198974ad646cb8e6ff', 'project_id': '6d7d10f5d22e44198974ad646cb8e6ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49714591', 'ctest-vn-41160589'], 'port_security_enabled': True, 'description': ''}}
2026-03-12 13:42:45,223 - DEBUG - Response for create_subnet : {'subnet': {'id': '57369bc7-cf90-4a70-9600-9592de526cf4', 'name': '', 'tenant_id': '6d7d10f5d22e44198974ad646cb8e6ff', 'network_id': '1f7554c2-7f32-4852-98b3-ab01022a0c27', 'ip_version': 4, 'cidr': '202.166.29.192/26', 'allocation_pools': [{'start': '202.166.29.194', 'end': '202.166.29.254'}], 'gateway_ip': '202.166.29.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '202.166.29.194', 'tags': [], 'project_id': '6d7d10f5d22e44198974ad646cb8e6ff'}}
2026-03-12 13:42:45,241 - INFO - Created VN ctest-vn-41160589
2026-03-12 13:42:45,295 - DEBUG - VN ctest-vn-41160589 UUID is 1f7554c2-7f32-4852-98b3-ab01022a0c27
2026-03-12 13:42:45,416 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-49714591:ctest-vn-31160231, 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-49714591:ctest-vn-41160589, 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-03-12 13:42:45,716 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eeb292f8-c640-4a09-9a1a-03534184965b', 'name': 'ctest-vn-31160231', 'tenant_id': '6d7d10f5d22e44198974ad646cb8e6ff', 'project_id': '6d7d10f5d22e44198974ad646cb8e6ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e28c3468-24e9-48e8-a60d-4aef11ebbf1d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49714591', 'ctest-vn-31160231'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49714591', 'ctest-policy-allow-all-57328497']], 'subnet_ipam': [{'subnet_cidr': '175.254.181.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-12 13:42:45,950 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1f7554c2-7f32-4852-98b3-ab01022a0c27', 'name': 'ctest-vn-41160589', 'tenant_id': '6d7d10f5d22e44198974ad646cb8e6ff', 'project_id': '6d7d10f5d22e44198974ad646cb8e6ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['57369bc7-cf90-4a70-9600-9592de526cf4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49714591', 'ctest-vn-41160589'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49714591', 'ctest-policy-allow-all-57328497']], 'subnet_ipam': [{'subnet_cidr': '202.166.29.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-12 13:42:46,115 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-03-12 13:42:46,413 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-03-12 13:42:46,445 - DEBUG - Requesting: http://10.0.0.22:8082/domain/df5b526c-d4f8-40c5-91e4-6687bafd1fdd
2026-03-12 13:42:46,457 - DEBUG - Requesting: http://10.0.0.22:8082/project/6d7d10f5-d22e-4419-8974-ad646cb8e6ff
2026-03-12 13:42:46,529 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/eeb292f8-c640-4a09-9a1a-03534184965b
2026-03-12 13:42:46,541 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/eeb292f8-c640-4a09-9a1a-03534184965b
2026-03-12 13:42:46,549 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/573ddca5-c6c4-40f4-8a47-4ab0b317971b
2026-03-12 13:42:46,557 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/573ddca5-c6c4-40f4-8a47-4ab0b317971b
2026-03-12 13:42:46,564 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/bce35ee2-835f-47eb-8d0f-d5b9a4a79e6e
2026-03-12 13:42:46,571 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-12 13:42:46,572 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/eeb292f8-c640-4a09-9a1a-03534184965b
2026-03-12 13:42:46,581 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/573ddca5-c6c4-40f4-8a47-4ab0b317971b
2026-03-12 13:42:46,596 - INFO - Verified VN network id 11 for VN eeb292f8-c640-4a09-9a1a-03534184965b
2026-03-12 13:42:46,596 - INFO - Verifications in API Server for VN ctest-vn-31160231 passed
2026-03-12 13:42:46,596 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/eeb292f8-c640-4a09-9a1a-03534184965b
2026-03-12 13:42:46,606 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/573ddca5-c6c4-40f4-8a47-4ab0b317971b
2026-03-12 13:42:46,613 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/573ddca5-c6c4-40f4-8a47-4ab0b317971b
2026-03-12 13:42:46,619 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/bce35ee2-835f-47eb-8d0f-d5b9a4a79e6e
2026-03-12 13:42:46,632 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49714591:ctest-vn-31160231', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49714591', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17199971524056992265', 'uuid-lslong': '11104191487351756379'}, 'enable': 'true', 'created': '2026-03-12T13:42:44', 'last-modified': '2026-03-12T13:42:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.944250'}
2026-03-12 13:42:46,639 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-12 13:42:46,639 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31160231 passed
2026-03-12 13:42:46,639 - DEBUG - ====Verifying policy data for ctest-vn-31160231 in API_Server ======
2026-03-12 13:42:46,640 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-03-12 13:42:46,645 - DEBUG - Requesting: http://10.0.0.22:8082/domain/df5b526c-d4f8-40c5-91e4-6687bafd1fdd
2026-03-12 13:42:46,656 - DEBUG - Requesting: http://10.0.0.22:8082/project/6d7d10f5-d22e-4419-8974-ad646cb8e6ff
2026-03-12 13:42:46,725 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/eeb292f8-c640-4a09-9a1a-03534184965b
2026-03-12 13:42:46,736 - DEBUG - ==>Verifying data for policy with id: c9a964b9-c6aa-458f-a549-d40862c8d448, fqn: ['default-domain', 'ctest-TestBasicPolicy-49714591', 'ctest-policy-allow-all-57328497']
2026-03-12 13:42:46,736 - INFO - VN ctest-vn-31160231 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-12 13:42:46,736 - DEBUG - Verifying the vn in opserver
2026-03-12 13:42:46,736 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49714591:ctest-vn-31160231 virtual network link through opserver 10.0.0.22
2026-03-12 13:42:46,737 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-03-12 13:42:47,038 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-03-12 13:42:47,109 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49714591:ctest-vn-31160231', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49714591:ctest-vn-31160231?flat'}
2026-03-12 13:42:47,109 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49714591:ctest-vn-31160231 is found in opserver
2026-03-12 13:42:47,118 - DEBUG - Do not have enough data to verify VN in agent
2026-03-12 13:42:47,123 - DEBUG - VRF ids for VN ctest-vn-31160231: {}
2026-03-12 13:42:47,123 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-03-12 13:42:47,128 - DEBUG - Requesting: http://10.0.0.22:8082/domain/df5b526c-d4f8-40c5-91e4-6687bafd1fdd
2026-03-12 13:42:47,140 - DEBUG - Requesting: http://10.0.0.22:8082/project/6d7d10f5-d22e-4419-8974-ad646cb8e6ff
2026-03-12 13:42:47,206 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1f7554c2-7f32-4852-98b3-ab01022a0c27
2026-03-12 13:42:47,217 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1f7554c2-7f32-4852-98b3-ab01022a0c27
2026-03-12 13:42:47,226 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/71345850-9ee2-41b3-8e33-a038ddb40d74
2026-03-12 13:42:47,233 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/71345850-9ee2-41b3-8e33-a038ddb40d74
2026-03-12 13:42:47,240 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/751542e2-dbcc-4e19-902d-198f3a474708
2026-03-12 13:42:47,246 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-12 13:42:47,246 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1f7554c2-7f32-4852-98b3-ab01022a0c27
2026-03-12 13:42:47,255 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/71345850-9ee2-41b3-8e33-a038ddb40d74
2026-03-12 13:42:47,270 - INFO - Verified VN network id 12 for VN 1f7554c2-7f32-4852-98b3-ab01022a0c27
2026-03-12 13:42:47,270 - INFO - Verifications in API Server for VN ctest-vn-41160589 passed
2026-03-12 13:42:47,271 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1f7554c2-7f32-4852-98b3-ab01022a0c27
2026-03-12 13:42:47,279 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/71345850-9ee2-41b3-8e33-a038ddb40d74
2026-03-12 13:42:47,285 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/71345850-9ee2-41b3-8e33-a038ddb40d74
2026-03-12 13:42:47,291 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/751542e2-dbcc-4e19-902d-198f3a474708
2026-03-12 13:42:47,302 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49714591:ctest-vn-41160589', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49714591', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2266811181785303122', 'uuid-lslong': '11003326335415880743'}, 'enable': 'true', 'created': '2026-03-12T13:42:45', 'last-modified': '2026-03-12T13:42:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.374026'}
2026-03-12 13:42:47,307 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-12 13:42:47,307 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41160589 passed
2026-03-12 13:42:47,307 - DEBUG - ====Verifying policy data for ctest-vn-41160589 in API_Server ======
2026-03-12 13:42:47,307 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-03-12 13:42:47,312 - DEBUG - Requesting: http://10.0.0.22:8082/domain/df5b526c-d4f8-40c5-91e4-6687bafd1fdd
2026-03-12 13:42:47,322 - DEBUG - Requesting: http://10.0.0.22:8082/project/6d7d10f5-d22e-4419-8974-ad646cb8e6ff
2026-03-12 13:42:47,393 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1f7554c2-7f32-4852-98b3-ab01022a0c27
2026-03-12 13:42:47,404 - DEBUG - ==>Verifying data for policy with id: c9a964b9-c6aa-458f-a549-d40862c8d448, fqn: ['default-domain', 'ctest-TestBasicPolicy-49714591', 'ctest-policy-allow-all-57328497']
2026-03-12 13:42:47,404 - INFO - VN ctest-vn-41160589 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-12 13:42:47,405 - DEBUG - Verifying the vn in opserver
2026-03-12 13:42:47,405 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49714591:ctest-vn-41160589 virtual network link through opserver 10.0.0.22
2026-03-12 13:42:47,405 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-03-12 13:42:47,414 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49714591:ctest-vn-41160589', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49714591:ctest-vn-41160589?flat'}
2026-03-12 13:42:47,414 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49714591:ctest-vn-41160589 is found in opserver
2026-03-12 13:42:47,425 - DEBUG - Do not have enough data to verify VN in agent
2026-03-12 13:42:47,429 - DEBUG - VRF ids for VN ctest-vn-41160589: {}
2026-03-12 13:42:47,506 - DEBUG - Services list from nova: [