2026-02-16 13:08:13,794 - INFO - Domain Default found not creating
2026-02-16 13:08:13,957 - INFO - Project ctest-TestBasicPolicy-74479688 not found, creating it
2026-02-16 13:08:14,440 - INFO - Created Project:ctest-TestBasicPolicy-74479688, ID : b90226f6-c207-495f-ac6b-2b2ffc62a854
2026-02-16 13:08:15,861 - INFO - ================================================================================
2026-02-16 13:08:15,862 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-16 13:08:15,862 - 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-02-16 13:08:16,119 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.254': '0'}} with
2026-02-16 13:08:16,119 - INFO - Initial checks done. Running the testcase now
2026-02-16 13:08:16,119 - INFO -
2026-02-16 13:08:16,645 - DEBUG - Response for create_network : {'network': {'id': '90f22a6a-c3a1-414a-bfd9-8959a866fb27', 'name': 'ctest-vn-78831346', 'tenant_id': 'b90226f6c207495fac6b2b2ffc62a854', 'project_id': 'b90226f6c207495fac6b2b2ffc62a854', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74479688', 'ctest-vn-78831346'], 'port_security_enabled': True, 'description': ''}}
2026-02-16 13:08:16,803 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd3bbd647-b32d-4f86-81ab-1fac0eb1b62e', 'name': '', 'tenant_id': 'b90226f6c207495fac6b2b2ffc62a854', 'network_id': '90f22a6a-c3a1-414a-bfd9-8959a866fb27', 'ip_version': 4, 'cidr': '98.86.207.192/26', 'allocation_pools': [{'start': '98.86.207.194', 'end': '98.86.207.254'}], 'gateway_ip': '98.86.207.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '98.86.207.194', 'tags': [], 'project_id': 'b90226f6c207495fac6b2b2ffc62a854'}}
2026-02-16 13:08:16,818 - INFO - Created VN ctest-vn-78831346
2026-02-16 13:08:16,869 - DEBUG - VN ctest-vn-78831346 UUID is 90f22a6a-c3a1-414a-bfd9-8959a866fb27
2026-02-16 13:08:17,182 - DEBUG - Response for create_network : {'network': {'id': '9ece0e3f-79e6-4f0a-ac2c-19c15fc198f5', 'name': 'ctest-vn-82326759', 'tenant_id': 'b90226f6c207495fac6b2b2ffc62a854', 'project_id': 'b90226f6c207495fac6b2b2ffc62a854', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74479688', 'ctest-vn-82326759'], 'port_security_enabled': True, 'description': ''}}
2026-02-16 13:08:17,379 - DEBUG - Response for create_subnet : {'subnet': {'id': '1a382fd4-969c-4657-8ffa-8792ba3781c6', 'name': '', 'tenant_id': 'b90226f6c207495fac6b2b2ffc62a854', 'network_id': '9ece0e3f-79e6-4f0a-ac2c-19c15fc198f5', 'ip_version': 4, 'cidr': '35.231.254.128/26', 'allocation_pools': [{'start': '35.231.254.130', 'end': '35.231.254.190'}], 'gateway_ip': '35.231.254.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35.231.254.130', 'tags': [], 'project_id': 'b90226f6c207495fac6b2b2ffc62a854'}}
2026-02-16 13:08:17,399 - INFO - Created VN ctest-vn-82326759
2026-02-16 13:08:17,453 - DEBUG - VN ctest-vn-82326759 UUID is 9ece0e3f-79e6-4f0a-ac2c-19c15fc198f5
2026-02-16 13:08:17,601 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-74479688:ctest-vn-78831346, 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-74479688:ctest-vn-82326759, 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-02-16 13:08:17,886 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '90f22a6a-c3a1-414a-bfd9-8959a866fb27', 'name': 'ctest-vn-78831346', 'tenant_id': 'b90226f6c207495fac6b2b2ffc62a854', 'project_id': 'b90226f6c207495fac6b2b2ffc62a854', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d3bbd647-b32d-4f86-81ab-1fac0eb1b62e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74479688', 'ctest-vn-78831346'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74479688', 'ctest-policy-allow-all-65509847']], 'subnet_ipam': [{'subnet_cidr': '98.86.207.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-16 13:08:18,141 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9ece0e3f-79e6-4f0a-ac2c-19c15fc198f5', 'name': 'ctest-vn-82326759', 'tenant_id': 'b90226f6c207495fac6b2b2ffc62a854', 'project_id': 'b90226f6c207495fac6b2b2ffc62a854', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1a382fd4-969c-4657-8ffa-8792ba3781c6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74479688', 'ctest-vn-82326759'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74479688', 'ctest-policy-allow-all-65509847']], 'subnet_ipam': [{'subnet_cidr': '35.231.254.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-16 13:08:18,289 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-02-16 13:08:18,583 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-02-16 13:08:18,611 - DEBUG - Requesting: http://10.0.0.41:8082/domain/303d7f9c-f75d-4e2d-8d07-c7b98ee4f401
2026-02-16 13:08:18,622 - DEBUG - Requesting: http://10.0.0.41:8082/project/b90226f6-c207-495f-ac6b-2b2ffc62a854
2026-02-16 13:08:18,688 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/90f22a6a-c3a1-414a-bfd9-8959a866fb27
2026-02-16 13:08:18,697 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/90f22a6a-c3a1-414a-bfd9-8959a866fb27
2026-02-16 13:08:18,705 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/bc8cb758-d927-474d-89a0-ef8c92b51e67
2026-02-16 13:08:18,712 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/bc8cb758-d927-474d-89a0-ef8c92b51e67
2026-02-16 13:08:18,718 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/87fc0224-a5b4-443b-b238-858800471fec
2026-02-16 13:08:18,724 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-16 13:08:18,724 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/90f22a6a-c3a1-414a-bfd9-8959a866fb27
2026-02-16 13:08:18,733 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/bc8cb758-d927-474d-89a0-ef8c92b51e67
2026-02-16 13:08:18,745 - INFO - Verified VN network id 12 for VN 90f22a6a-c3a1-414a-bfd9-8959a866fb27
2026-02-16 13:08:18,745 - INFO - Verifications in API Server for VN ctest-vn-78831346 passed
2026-02-16 13:08:18,745 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/90f22a6a-c3a1-414a-bfd9-8959a866fb27
2026-02-16 13:08:18,756 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/bc8cb758-d927-474d-89a0-ef8c92b51e67
2026-02-16 13:08:18,765 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/bc8cb758-d927-474d-89a0-ef8c92b51e67
2026-02-16 13:08:18,773 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/87fc0224-a5b4-443b-b238-858800471fec
2026-02-16 13:08:18,785 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74479688:ctest-vn-78831346', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74479688', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10444457123862626634', 'uuid-lslong': '13824231549360864039'}, 'enable': 'true', 'created': '2026-02-16T13:08:16', 'last-modified': '2026-02-16T13:08:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.923546'}
2026-02-16 13:08:18,793 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-16 13:08:18,793 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78831346 passed
2026-02-16 13:08:18,793 - DEBUG - ====Verifying policy data for ctest-vn-78831346 in API_Server ======
2026-02-16 13:08:18,793 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-02-16 13:08:18,799 - DEBUG - Requesting: http://10.0.0.41:8082/domain/303d7f9c-f75d-4e2d-8d07-c7b98ee4f401
2026-02-16 13:08:18,812 - DEBUG - Requesting: http://10.0.0.41:8082/project/b90226f6-c207-495f-ac6b-2b2ffc62a854
2026-02-16 13:08:18,883 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/90f22a6a-c3a1-414a-bfd9-8959a866fb27
2026-02-16 13:08:18,892 - DEBUG - ==>Verifying data for policy with id: 8cf66fd4-cd29-46eb-97b5-8db8aec0f4a5, fqn: ['default-domain', 'ctest-TestBasicPolicy-74479688', 'ctest-policy-allow-all-65509847']
2026-02-16 13:08:18,892 - INFO - VN ctest-vn-78831346 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-16 13:08:18,892 - DEBUG - Verifying the vn in opserver
2026-02-16 13:08:18,892 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74479688:ctest-vn-78831346 virtual network link through opserver 10.0.0.41
2026-02-16 13:08:18,892 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2026-02-16 13:08:19,182 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2026-02-16 13:08:19,241 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74479688:ctest-vn-78831346', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74479688:ctest-vn-78831346?flat'}
2026-02-16 13:08:19,241 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74479688:ctest-vn-78831346 is found in opserver
2026-02-16 13:08:19,250 - DEBUG - Do not have enough data to verify VN in agent
2026-02-16 13:08:19,254 - DEBUG - VRF ids for VN ctest-vn-78831346: {}
2026-02-16 13:08:19,254 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-02-16 13:08:19,259 - DEBUG - Requesting: http://10.0.0.41:8082/domain/303d7f9c-f75d-4e2d-8d07-c7b98ee4f401
2026-02-16 13:08:19,269 - DEBUG - Requesting: http://10.0.0.41:8082/project/b90226f6-c207-495f-ac6b-2b2ffc62a854
2026-02-16 13:08:19,335 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/9ece0e3f-79e6-4f0a-ac2c-19c15fc198f5
2026-02-16 13:08:19,345 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/9ece0e3f-79e6-4f0a-ac2c-19c15fc198f5
2026-02-16 13:08:19,353 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/7f6bb349-7c24-4135-878d-c6f48f574cc8
2026-02-16 13:08:19,360 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/7f6bb349-7c24-4135-878d-c6f48f574cc8
2026-02-16 13:08:19,366 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/683f6dbf-d5db-4efa-9017-4db14b3add43
2026-02-16 13:08:19,371 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-16 13:08:19,371 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/9ece0e3f-79e6-4f0a-ac2c-19c15fc198f5
2026-02-16 13:08:19,379 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/7f6bb349-7c24-4135-878d-c6f48f574cc8
2026-02-16 13:08:19,391 - INFO - Verified VN network id 13 for VN 9ece0e3f-79e6-4f0a-ac2c-19c15fc198f5
2026-02-16 13:08:19,391 - INFO - Verifications in API Server for VN ctest-vn-82326759 passed
2026-02-16 13:08:19,391 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/9ece0e3f-79e6-4f0a-ac2c-19c15fc198f5
2026-02-16 13:08:19,399 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/7f6bb349-7c24-4135-878d-c6f48f574cc8
2026-02-16 13:08:19,405 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/7f6bb349-7c24-4135-878d-c6f48f574cc8
2026-02-16 13:08:19,411 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/683f6dbf-d5db-4efa-9017-4db14b3add43
2026-02-16 13:08:19,422 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74479688:ctest-vn-82326759', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74479688', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11443099368985874186', 'uuid-lslong': '12406319391824779509'}, 'enable': 'true', 'created': '2026-02-16T13:08:17', 'last-modified': '2026-02-16T13:08:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.337934'}
2026-02-16 13:08:19,427 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-16 13:08:19,427 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82326759 passed
2026-02-16 13:08:19,427 - DEBUG - ====Verifying policy data for ctest-vn-82326759 in API_Server ======
2026-02-16 13:08:19,427 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-02-16 13:08:19,433 - DEBUG - Requesting: http://10.0.0.41:8082/domain/303d7f9c-f75d-4e2d-8d07-c7b98ee4f401
2026-02-16 13:08:19,444 - DEBUG - Requesting: http://10.0.0.41:8082/project/b90226f6-c207-495f-ac6b-2b2ffc62a854
2026-02-16 13:08:19,510 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/9ece0e3f-79e6-4f0a-ac2c-19c15fc198f5
2026-02-16 13:08:19,519 - DEBUG - ==>Verifying data for policy with id: 8cf66fd4-cd29-46eb-97b5-8db8aec0f4a5, fqn: ['default-domain', 'ctest-TestBasicPolicy-74479688', 'ctest-policy-allow-all-65509847']
2026-02-16 13:08:19,519 - INFO - VN ctest-vn-82326759 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-16 13:08:19,519 - DEBUG - Verifying the vn in opserver
2026-02-16 13:08:19,519 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74479688:ctest-vn-82326759 virtual network link through opserver 10.0.0.41
2026-02-16 13:08:19,519 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2026-02-16 13:08:19,528 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74479688:ctest-vn-82326759', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74479688:ctest-vn-82326759?flat'}
2026-02-16 13:08:19,528 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74479688:ctest-vn-82326759 is found in opserver
2026-02-16 13:08:19,537 - DEBUG - Do not have enough data to verify VN in agent
2026-02-16 13:08:19,540 - DEBUG - VRF ids for VN ctest-vn-82326759: {}
2026-02-16 13:08:19,593 - DEBUG - Services list from nova: [