2026-03-02 13:59:45,816 - INFO - Domain Default found not creating
2026-03-02 13:59:45,951 - INFO - Project ctest-TestBasicPolicy-82486631 not found, creating it
2026-03-02 13:59:46,358 - INFO - Created Project:ctest-TestBasicPolicy-82486631, ID : ed95c62c-6258-4168-9037-c8951fdbf4c8
2026-03-02 13:59:47,827 - INFO - ================================================================================
2026-03-02 13:59:47,828 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-02 13:59:47,828 - 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-02 13:59:48,080 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with
2026-03-02 13:59:48,081 - INFO - Initial checks done. Running the testcase now
2026-03-02 13:59:48,081 - INFO -
2026-03-02 13:59:48,564 - DEBUG - Response for create_network : {'network': {'id': '17b0b0b8-51cb-4f94-8f23-26f50793eae8', 'name': 'ctest-vn-26237380', 'tenant_id': 'ed95c62c625841689037c8951fdbf4c8', 'project_id': 'ed95c62c625841689037c8951fdbf4c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82486631', 'ctest-vn-26237380'], 'port_security_enabled': True, 'description': ''}}
2026-03-02 13:59:48,737 - DEBUG - Response for create_subnet : {'subnet': {'id': 'afed4e53-2922-4ccc-84bb-a4a2637157bc', 'name': '', 'tenant_id': 'ed95c62c625841689037c8951fdbf4c8', 'network_id': '17b0b0b8-51cb-4f94-8f23-26f50793eae8', 'ip_version': 4, 'cidr': '155.207.93.128/26', 'allocation_pools': [{'start': '155.207.93.130', 'end': '155.207.93.190'}], 'gateway_ip': '155.207.93.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '155.207.93.130', 'tags': [], 'project_id': 'ed95c62c625841689037c8951fdbf4c8'}}
2026-03-02 13:59:48,753 - INFO - Created VN ctest-vn-26237380
2026-03-02 13:59:48,804 - DEBUG - VN ctest-vn-26237380 UUID is 17b0b0b8-51cb-4f94-8f23-26f50793eae8
2026-03-02 13:59:49,097 - DEBUG - Response for create_network : {'network': {'id': '3f531af8-f4c9-4bbb-ba2b-407f91ac4372', 'name': 'ctest-vn-66785245', 'tenant_id': 'ed95c62c625841689037c8951fdbf4c8', 'project_id': 'ed95c62c625841689037c8951fdbf4c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82486631', 'ctest-vn-66785245'], 'port_security_enabled': True, 'description': ''}}
2026-03-02 13:59:49,321 - DEBUG - Response for create_subnet : {'subnet': {'id': '1e31721b-8351-4fd5-926a-7c34316cbc54', 'name': '', 'tenant_id': 'ed95c62c625841689037c8951fdbf4c8', 'network_id': '3f531af8-f4c9-4bbb-ba2b-407f91ac4372', 'ip_version': 4, 'cidr': '153.166.43.64/26', 'allocation_pools': [{'start': '153.166.43.66', 'end': '153.166.43.126'}], 'gateway_ip': '153.166.43.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '153.166.43.66', 'tags': [], 'project_id': 'ed95c62c625841689037c8951fdbf4c8'}}
2026-03-02 13:59:49,337 - INFO - Created VN ctest-vn-66785245
2026-03-02 13:59:49,388 - DEBUG - VN ctest-vn-66785245 UUID is 3f531af8-f4c9-4bbb-ba2b-407f91ac4372
2026-03-02 13:59:49,540 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-82486631:ctest-vn-26237380, 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-82486631:ctest-vn-66785245, 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-02 13:59:49,809 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '17b0b0b8-51cb-4f94-8f23-26f50793eae8', 'name': 'ctest-vn-26237380', 'tenant_id': 'ed95c62c625841689037c8951fdbf4c8', 'project_id': 'ed95c62c625841689037c8951fdbf4c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['afed4e53-2922-4ccc-84bb-a4a2637157bc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82486631', 'ctest-vn-26237380'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82486631', 'ctest-policy-allow-all-13179937']], 'subnet_ipam': [{'subnet_cidr': '155.207.93.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-02 13:59:50,083 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3f531af8-f4c9-4bbb-ba2b-407f91ac4372', 'name': 'ctest-vn-66785245', 'tenant_id': 'ed95c62c625841689037c8951fdbf4c8', 'project_id': 'ed95c62c625841689037c8951fdbf4c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1e31721b-8351-4fd5-926a-7c34316cbc54'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82486631', 'ctest-vn-66785245'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82486631', 'ctest-policy-allow-all-13179937']], 'subnet_ipam': [{'subnet_cidr': '153.166.43.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-02 13:59:50,220 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-03-02 13:59:50,512 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-03-02 13:59:50,537 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d72e50e9-ba75-491c-b622-95ee864bd57a
2026-03-02 13:59:50,547 - DEBUG - Requesting: http://10.0.0.22:8082/project/ed95c62c-6258-4168-9037-c8951fdbf4c8
2026-03-02 13:59:50,613 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/17b0b0b8-51cb-4f94-8f23-26f50793eae8
2026-03-02 13:59:50,622 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/17b0b0b8-51cb-4f94-8f23-26f50793eae8
2026-03-02 13:59:50,629 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8998b35b-0fd3-4f44-8152-685e68f77a5f
2026-03-02 13:59:50,634 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8998b35b-0fd3-4f44-8152-685e68f77a5f
2026-03-02 13:59:50,638 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/fd1a3c93-94e9-406c-894a-ebbf70cc6a90
2026-03-02 13:59:50,643 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-02 13:59:50,643 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/17b0b0b8-51cb-4f94-8f23-26f50793eae8
2026-03-02 13:59:50,649 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8998b35b-0fd3-4f44-8152-685e68f77a5f
2026-03-02 13:59:50,659 - INFO - Verified VN network id 11 for VN 17b0b0b8-51cb-4f94-8f23-26f50793eae8
2026-03-02 13:59:50,659 - INFO - Verifications in API Server for VN ctest-vn-26237380 passed
2026-03-02 13:59:50,659 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/17b0b0b8-51cb-4f94-8f23-26f50793eae8
2026-03-02 13:59:50,665 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8998b35b-0fd3-4f44-8152-685e68f77a5f
2026-03-02 13:59:50,670 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8998b35b-0fd3-4f44-8152-685e68f77a5f
2026-03-02 13:59:50,674 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/fd1a3c93-94e9-406c-894a-ebbf70cc6a90
2026-03-02 13:59:50,683 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82486631:ctest-vn-26237380', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82486631', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1707058564466167700', 'uuid-lslong': '10314130405444545256'}, 'enable': 'true', 'created': '2026-03-02T13:59:48', 'last-modified': '2026-03-02T13:59:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.891524'}
2026-03-02 13:59:50,687 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-02 13:59:50,687 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26237380 passed
2026-03-02 13:59:50,687 - DEBUG - ====Verifying policy data for ctest-vn-26237380 in API_Server ======
2026-03-02 13:59:50,688 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-03-02 13:59:50,691 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d72e50e9-ba75-491c-b622-95ee864bd57a
2026-03-02 13:59:50,699 - DEBUG - Requesting: http://10.0.0.22:8082/project/ed95c62c-6258-4168-9037-c8951fdbf4c8
2026-03-02 13:59:50,766 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/17b0b0b8-51cb-4f94-8f23-26f50793eae8
2026-03-02 13:59:50,773 - DEBUG - ==>Verifying data for policy with id: 17a64676-38c7-4bd7-80fd-00ff0b449d21, fqn: ['default-domain', 'ctest-TestBasicPolicy-82486631', 'ctest-policy-allow-all-13179937']
2026-03-02 13:59:50,773 - INFO - VN ctest-vn-26237380 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-02 13:59:50,773 - DEBUG - Verifying the vn in opserver
2026-03-02 13:59:50,773 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82486631:ctest-vn-26237380 virtual network link through opserver 10.0.0.22
2026-03-02 13:59:50,773 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-03-02 13:59:51,061 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-03-02 13:59:51,113 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82486631:ctest-vn-26237380', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82486631:ctest-vn-26237380?flat'}
2026-03-02 13:59:51,113 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82486631:ctest-vn-26237380 is found in opserver
2026-03-02 13:59:51,121 - DEBUG - Do not have enough data to verify VN in agent
2026-03-02 13:59:51,125 - DEBUG - VRF ids for VN ctest-vn-26237380: {}
2026-03-02 13:59:51,125 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-03-02 13:59:51,129 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d72e50e9-ba75-491c-b622-95ee864bd57a
2026-03-02 13:59:51,137 - DEBUG - Requesting: http://10.0.0.22:8082/project/ed95c62c-6258-4168-9037-c8951fdbf4c8
2026-03-02 13:59:51,208 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3f531af8-f4c9-4bbb-ba2b-407f91ac4372
2026-03-02 13:59:51,217 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3f531af8-f4c9-4bbb-ba2b-407f91ac4372
2026-03-02 13:59:51,224 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/75579f71-3118-4ca8-b753-fd17239a3d04
2026-03-02 13:59:51,229 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/75579f71-3118-4ca8-b753-fd17239a3d04
2026-03-02 13:59:51,234 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c21847e9-7f71-4244-9390-fbf7c3745c62
2026-03-02 13:59:51,240 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-02 13:59:51,240 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3f531af8-f4c9-4bbb-ba2b-407f91ac4372
2026-03-02 13:59:51,248 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/75579f71-3118-4ca8-b753-fd17239a3d04
2026-03-02 13:59:51,258 - INFO - Verified VN network id 12 for VN 3f531af8-f4c9-4bbb-ba2b-407f91ac4372
2026-03-02 13:59:51,258 - INFO - Verifications in API Server for VN ctest-vn-66785245 passed
2026-03-02 13:59:51,258 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3f531af8-f4c9-4bbb-ba2b-407f91ac4372
2026-03-02 13:59:51,265 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/75579f71-3118-4ca8-b753-fd17239a3d04
2026-03-02 13:59:51,270 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/75579f71-3118-4ca8-b753-fd17239a3d04
2026-03-02 13:59:51,274 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c21847e9-7f71-4244-9390-fbf7c3745c62
2026-03-02 13:59:51,283 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82486631:ctest-vn-66785245', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82486631', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4563020504017488827', 'uuid-lslong': '13414886831702164338'}, 'enable': 'true', 'created': '2026-03-02T13:59:49', 'last-modified': '2026-03-02T13:59:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.264971'}
2026-03-02 13:59:51,288 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-02 13:59:51,288 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66785245 passed
2026-03-02 13:59:51,288 - DEBUG - ====Verifying policy data for ctest-vn-66785245 in API_Server ======
2026-03-02 13:59:51,288 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-03-02 13:59:51,292 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d72e50e9-ba75-491c-b622-95ee864bd57a
2026-03-02 13:59:51,300 - DEBUG - Requesting: http://10.0.0.22:8082/project/ed95c62c-6258-4168-9037-c8951fdbf4c8
2026-03-02 13:59:51,371 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3f531af8-f4c9-4bbb-ba2b-407f91ac4372
2026-03-02 13:59:51,379 - DEBUG - ==>Verifying data for policy with id: 17a64676-38c7-4bd7-80fd-00ff0b449d21, fqn: ['default-domain', 'ctest-TestBasicPolicy-82486631', 'ctest-policy-allow-all-13179937']
2026-03-02 13:59:51,379 - INFO - VN ctest-vn-66785245 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-02 13:59:51,379 - DEBUG - Verifying the vn in opserver
2026-03-02 13:59:51,379 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82486631:ctest-vn-66785245 virtual network link through opserver 10.0.0.22
2026-03-02 13:59:51,379 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-03-02 13:59:51,388 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82486631:ctest-vn-66785245', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82486631:ctest-vn-66785245?flat'}
2026-03-02 13:59:51,388 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82486631:ctest-vn-66785245 is found in opserver
2026-03-02 13:59:51,395 - DEBUG - Do not have enough data to verify VN in agent
2026-03-02 13:59:51,399 - DEBUG - VRF ids for VN ctest-vn-66785245: {}
2026-03-02 13:59:51,449 - DEBUG - Services list from nova: [