2026-04-20 16:30:07,622 - INFO - Domain Default found not creating
2026-04-20 16:30:07,781 - INFO - Project ctest-TestBasicPolicy-66019334 not found, creating it
2026-04-20 16:30:08,216 - INFO - Created Project:ctest-TestBasicPolicy-66019334, ID : 003eac04-8c78-465b-ae1b-112a17c11f90
2026-04-20 16:30:09,698 - INFO - ================================================================================
2026-04-20 16:30:09,698 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-20 16:30:09,698 - 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-04-20 16:30:09,951 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.254': '0'}} with
2026-04-20 16:30:09,951 - INFO - Initial checks done. Running the testcase now
2026-04-20 16:30:09,951 - INFO -
2026-04-20 16:30:10,502 - DEBUG - Response for create_network : {'network': {'id': 'c0603b4e-d05f-4d23-b11a-fb1dd829ea65', 'name': 'ctest-vn-80474438', 'tenant_id': '003eac048c78465bae1b112a17c11f90', 'project_id': '003eac048c78465bae1b112a17c11f90', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66019334', 'ctest-vn-80474438'], 'port_security_enabled': True, 'description': ''}}
2026-04-20 16:30:10,650 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fc6a164b-8f05-40e3-98b6-889628ea89b6', 'name': '', 'tenant_id': '003eac048c78465bae1b112a17c11f90', 'network_id': 'c0603b4e-d05f-4d23-b11a-fb1dd829ea65', 'ip_version': 4, 'cidr': '72.69.34.0/26', 'allocation_pools': [{'start': '72.69.34.2', 'end': '72.69.34.62'}], 'gateway_ip': '72.69.34.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '72.69.34.2', 'tags': [], 'project_id': '003eac048c78465bae1b112a17c11f90'}}
2026-04-20 16:30:10,665 - INFO - Created VN ctest-vn-80474438
2026-04-20 16:30:10,718 - DEBUG - VN ctest-vn-80474438 UUID is c0603b4e-d05f-4d23-b11a-fb1dd829ea65
2026-04-20 16:30:11,024 - DEBUG - Response for create_network : {'network': {'id': 'd157d7b7-7de6-47d0-b0e8-9ca109411aa7', 'name': 'ctest-vn-42079491', 'tenant_id': '003eac048c78465bae1b112a17c11f90', 'project_id': '003eac048c78465bae1b112a17c11f90', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66019334', 'ctest-vn-42079491'], 'port_security_enabled': True, 'description': ''}}
2026-04-20 16:30:11,205 - DEBUG - Response for create_subnet : {'subnet': {'id': '48a26e2e-d7ef-485c-8dfd-a4d960cc77d3', 'name': '', 'tenant_id': '003eac048c78465bae1b112a17c11f90', 'network_id': 'd157d7b7-7de6-47d0-b0e8-9ca109411aa7', 'ip_version': 4, 'cidr': '128.114.250.64/26', 'allocation_pools': [{'start': '128.114.250.66', 'end': '128.114.250.126'}], 'gateway_ip': '128.114.250.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '128.114.250.66', 'tags': [], 'project_id': '003eac048c78465bae1b112a17c11f90'}}
2026-04-20 16:30:11,222 - INFO - Created VN ctest-vn-42079491
2026-04-20 16:30:11,274 - DEBUG - VN ctest-vn-42079491 UUID is d157d7b7-7de6-47d0-b0e8-9ca109411aa7
2026-04-20 16:30:11,422 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-66019334:ctest-vn-80474438, 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-66019334:ctest-vn-42079491, 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-04-20 16:30:11,721 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c0603b4e-d05f-4d23-b11a-fb1dd829ea65', 'name': 'ctest-vn-80474438', 'tenant_id': '003eac048c78465bae1b112a17c11f90', 'project_id': '003eac048c78465bae1b112a17c11f90', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fc6a164b-8f05-40e3-98b6-889628ea89b6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66019334', 'ctest-vn-80474438'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66019334', 'ctest-policy-allow-all-97057439']], 'subnet_ipam': [{'subnet_cidr': '72.69.34.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-20 16:30:11,935 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd157d7b7-7de6-47d0-b0e8-9ca109411aa7', 'name': 'ctest-vn-42079491', 'tenant_id': '003eac048c78465bae1b112a17c11f90', 'project_id': '003eac048c78465bae1b112a17c11f90', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['48a26e2e-d7ef-485c-8dfd-a4d960cc77d3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66019334', 'ctest-vn-42079491'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66019334', 'ctest-policy-allow-all-97057439']], 'subnet_ipam': [{'subnet_cidr': '128.114.250.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-20 16:30:12,094 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2026-04-20 16:30:12,393 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2026-04-20 16:30:12,421 - DEBUG - Requesting: http://10.0.0.19:8082/domain/705a8a99-d10b-4854-847a-53154751ccd6
2026-04-20 16:30:12,432 - DEBUG - Requesting: http://10.0.0.19:8082/project/003eac04-8c78-465b-ae1b-112a17c11f90
2026-04-20 16:30:12,498 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/c0603b4e-d05f-4d23-b11a-fb1dd829ea65
2026-04-20 16:30:12,508 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/c0603b4e-d05f-4d23-b11a-fb1dd829ea65
2026-04-20 16:30:12,516 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/cd0ff3f0-3ed5-44a9-82c0-68fe016a6351
2026-04-20 16:30:12,523 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/cd0ff3f0-3ed5-44a9-82c0-68fe016a6351
2026-04-20 16:30:12,529 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/0a47ca4f-63c3-475b-b258-b01e86c62449
2026-04-20 16:30:12,535 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-20 16:30:12,535 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/c0603b4e-d05f-4d23-b11a-fb1dd829ea65
2026-04-20 16:30:12,543 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/cd0ff3f0-3ed5-44a9-82c0-68fe016a6351
2026-04-20 16:30:12,556 - INFO - Verified VN network id 11 for VN c0603b4e-d05f-4d23-b11a-fb1dd829ea65
2026-04-20 16:30:12,556 - INFO - Verifications in API Server for VN ctest-vn-80474438 passed
2026-04-20 16:30:12,556 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/c0603b4e-d05f-4d23-b11a-fb1dd829ea65
2026-04-20 16:30:12,564 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/cd0ff3f0-3ed5-44a9-82c0-68fe016a6351
2026-04-20 16:30:12,571 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/cd0ff3f0-3ed5-44a9-82c0-68fe016a6351
2026-04-20 16:30:12,577 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/0a47ca4f-63c3-475b-b258-b01e86c62449
2026-04-20 16:30:12,588 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66019334:ctest-vn-80474438', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66019334', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13862144862735781155', 'uuid-lslong': '12761788599706970725'}, 'enable': 'true', 'created': '2026-04-20T16:30:10', 'last-modified': '2026-04-20T16:30:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.893414'}
2026-04-20 16:30:12,593 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-20 16:30:12,593 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80474438 passed
2026-04-20 16:30:12,593 - DEBUG - ====Verifying policy data for ctest-vn-80474438 in API_Server ======
2026-04-20 16:30:12,593 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2026-04-20 16:30:12,599 - DEBUG - Requesting: http://10.0.0.19:8082/domain/705a8a99-d10b-4854-847a-53154751ccd6
2026-04-20 16:30:12,610 - DEBUG - Requesting: http://10.0.0.19:8082/project/003eac04-8c78-465b-ae1b-112a17c11f90
2026-04-20 16:30:12,676 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/c0603b4e-d05f-4d23-b11a-fb1dd829ea65
2026-04-20 16:30:12,685 - DEBUG - ==>Verifying data for policy with id: 785db9f8-8ad4-46b9-a7fb-69c0b19ea2be, fqn: ['default-domain', 'ctest-TestBasicPolicy-66019334', 'ctest-policy-allow-all-97057439']
2026-04-20 16:30:12,685 - INFO - VN ctest-vn-80474438 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-20 16:30:12,685 - DEBUG - Verifying the vn in opserver
2026-04-20 16:30:12,685 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66019334:ctest-vn-80474438 virtual network link through opserver 10.0.0.19
2026-04-20 16:30:12,685 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2026-04-20 16:30:12,975 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2026-04-20 16:30:13,033 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66019334:ctest-vn-80474438', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66019334:ctest-vn-80474438?flat'}
2026-04-20 16:30:13,033 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66019334:ctest-vn-80474438 is found in opserver
2026-04-20 16:30:13,042 - DEBUG - Do not have enough data to verify VN in agent
2026-04-20 16:30:13,046 - DEBUG - VRF ids for VN ctest-vn-80474438: {}
2026-04-20 16:30:13,046 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2026-04-20 16:30:13,051 - DEBUG - Requesting: http://10.0.0.19:8082/domain/705a8a99-d10b-4854-847a-53154751ccd6
2026-04-20 16:30:13,060 - DEBUG - Requesting: http://10.0.0.19:8082/project/003eac04-8c78-465b-ae1b-112a17c11f90
2026-04-20 16:30:13,126 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/d157d7b7-7de6-47d0-b0e8-9ca109411aa7
2026-04-20 16:30:13,136 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/d157d7b7-7de6-47d0-b0e8-9ca109411aa7
2026-04-20 16:30:13,143 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/7c84dae9-0a73-4376-9c0b-109cf86fb218
2026-04-20 16:30:13,149 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/7c84dae9-0a73-4376-9c0b-109cf86fb218
2026-04-20 16:30:13,155 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/16ff2af4-4a8d-4793-8d91-8a57f0efe624
2026-04-20 16:30:13,160 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-20 16:30:13,160 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/d157d7b7-7de6-47d0-b0e8-9ca109411aa7
2026-04-20 16:30:13,168 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/7c84dae9-0a73-4376-9c0b-109cf86fb218
2026-04-20 16:30:13,180 - INFO - Verified VN network id 12 for VN d157d7b7-7de6-47d0-b0e8-9ca109411aa7
2026-04-20 16:30:13,180 - INFO - Verifications in API Server for VN ctest-vn-42079491 passed
2026-04-20 16:30:13,180 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/d157d7b7-7de6-47d0-b0e8-9ca109411aa7
2026-04-20 16:30:13,187 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/7c84dae9-0a73-4376-9c0b-109cf86fb218
2026-04-20 16:30:13,193 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/7c84dae9-0a73-4376-9c0b-109cf86fb218
2026-04-20 16:30:13,199 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/16ff2af4-4a8d-4793-8d91-8a57f0efe624
2026-04-20 16:30:13,208 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66019334:ctest-vn-42079491', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66019334', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15084762659991996368', 'uuid-lslong': '12747610960731118247'}, 'enable': 'true', 'created': '2026-04-20T16:30:10', 'last-modified': '2026-04-20T16:30:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.297471'}
2026-04-20 16:30:13,215 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-20 16:30:13,215 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42079491 passed
2026-04-20 16:30:13,215 - DEBUG - ====Verifying policy data for ctest-vn-42079491 in API_Server ======
2026-04-20 16:30:13,215 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2026-04-20 16:30:13,220 - DEBUG - Requesting: http://10.0.0.19:8082/domain/705a8a99-d10b-4854-847a-53154751ccd6
2026-04-20 16:30:13,230 - DEBUG - Requesting: http://10.0.0.19:8082/project/003eac04-8c78-465b-ae1b-112a17c11f90
2026-04-20 16:30:13,297 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/d157d7b7-7de6-47d0-b0e8-9ca109411aa7
2026-04-20 16:30:13,305 - DEBUG - ==>Verifying data for policy with id: 785db9f8-8ad4-46b9-a7fb-69c0b19ea2be, fqn: ['default-domain', 'ctest-TestBasicPolicy-66019334', 'ctest-policy-allow-all-97057439']
2026-04-20 16:30:13,305 - INFO - VN ctest-vn-42079491 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-20 16:30:13,305 - DEBUG - Verifying the vn in opserver
2026-04-20 16:30:13,305 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66019334:ctest-vn-42079491 virtual network link through opserver 10.0.0.19
2026-04-20 16:30:13,305 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2026-04-20 16:30:13,314 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66019334:ctest-vn-42079491', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66019334:ctest-vn-42079491?flat'}
2026-04-20 16:30:13,314 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66019334:ctest-vn-42079491 is found in opserver
2026-04-20 16:30:13,323 - DEBUG - Do not have enough data to verify VN in agent
2026-04-20 16:30:13,327 - DEBUG - VRF ids for VN ctest-vn-42079491: {}
2026-04-20 16:30:13,378 - DEBUG - Services list from nova: [