2026-06-04 12:52:51,929 - INFO - Domain Default found not creating
2026-06-04 12:52:52,104 - INFO - Project ctest-TestBasicPolicy-37954473 not found, creating it
2026-06-04 12:52:52,564 - INFO - Created Project:ctest-TestBasicPolicy-37954473, ID : 81bf7829-76d8-46d7-a4ee-5bc53ef7cef0
2026-06-04 12:52:54,030 - INFO - ================================================================================
2026-06-04 12:52:54,030 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-06-04 12:52:54,030 - 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-06-04 12:52:54,285 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-06-04 12:52:54,285 - INFO - Initial checks done. Running the testcase now
2026-06-04 12:52:54,285 - INFO -
2026-06-04 12:52:54,878 - DEBUG - Response for create_network : {'network': {'id': '11e6e1d6-3450-4005-982d-26f97d109272', 'name': 'ctest-vn-36183145', 'tenant_id': '81bf782976d846d7a4ee5bc53ef7cef0', 'project_id': '81bf782976d846d7a4ee5bc53ef7cef0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37954473', 'ctest-vn-36183145'], 'port_security_enabled': True, 'description': ''}}
2026-06-04 12:52:55,096 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c3e09857-14cc-4289-b478-e9dcba6b0dc2', 'name': '', 'tenant_id': '81bf782976d846d7a4ee5bc53ef7cef0', 'network_id': '11e6e1d6-3450-4005-982d-26f97d109272', 'ip_version': 4, 'cidr': '46.39.10.128/26', 'allocation_pools': [{'start': '46.39.10.130', 'end': '46.39.10.190'}], 'gateway_ip': '46.39.10.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '46.39.10.130', 'tags': [], 'project_id': '81bf782976d846d7a4ee5bc53ef7cef0'}}
2026-06-04 12:52:55,117 - INFO - Created VN ctest-vn-36183145
2026-06-04 12:52:55,168 - DEBUG - VN ctest-vn-36183145 UUID is 11e6e1d6-3450-4005-982d-26f97d109272
2026-06-04 12:52:55,499 - DEBUG - Response for create_network : {'network': {'id': 'f66fc690-87fc-41e0-9e61-45fb1165c0a5', 'name': 'ctest-vn-15584894', 'tenant_id': '81bf782976d846d7a4ee5bc53ef7cef0', 'project_id': '81bf782976d846d7a4ee5bc53ef7cef0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37954473', 'ctest-vn-15584894'], 'port_security_enabled': True, 'description': ''}}
2026-06-04 12:52:55,693 - DEBUG - Response for create_subnet : {'subnet': {'id': 'be902b93-0e24-4fff-9c38-1bf157254b80', 'name': '', 'tenant_id': '81bf782976d846d7a4ee5bc53ef7cef0', 'network_id': 'f66fc690-87fc-41e0-9e61-45fb1165c0a5', 'ip_version': 4, 'cidr': '181.17.37.0/26', 'allocation_pools': [{'start': '181.17.37.2', 'end': '181.17.37.62'}], 'gateway_ip': '181.17.37.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '181.17.37.2', 'tags': [], 'project_id': '81bf782976d846d7a4ee5bc53ef7cef0'}}
2026-06-04 12:52:55,711 - INFO - Created VN ctest-vn-15584894
2026-06-04 12:52:55,764 - DEBUG - VN ctest-vn-15584894 UUID is f66fc690-87fc-41e0-9e61-45fb1165c0a5
2026-06-04 12:52:55,915 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-37954473:ctest-vn-36183145, 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-37954473:ctest-vn-15584894, 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-06-04 12:52:56,210 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '11e6e1d6-3450-4005-982d-26f97d109272', 'name': 'ctest-vn-36183145', 'tenant_id': '81bf782976d846d7a4ee5bc53ef7cef0', 'project_id': '81bf782976d846d7a4ee5bc53ef7cef0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c3e09857-14cc-4289-b478-e9dcba6b0dc2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37954473', 'ctest-vn-36183145'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37954473', 'ctest-policy-allow-all-91685755']], 'subnet_ipam': [{'subnet_cidr': '46.39.10.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-04 12:52:56,435 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f66fc690-87fc-41e0-9e61-45fb1165c0a5', 'name': 'ctest-vn-15584894', 'tenant_id': '81bf782976d846d7a4ee5bc53ef7cef0', 'project_id': '81bf782976d846d7a4ee5bc53ef7cef0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['be902b93-0e24-4fff-9c38-1bf157254b80'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37954473', 'ctest-vn-15584894'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37954473', 'ctest-policy-allow-all-91685755']], 'subnet_ipam': [{'subnet_cidr': '181.17.37.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-04 12:52:56,604 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-04 12:52:56,901 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-04 12:52:56,932 - DEBUG - Requesting: http://10.0.0.50:8082/domain/00007a8b-9ba5-427a-9791-d7a47172f341
2026-06-04 12:52:56,950 - DEBUG - Requesting: http://10.0.0.50:8082/project/81bf7829-76d8-46d7-a4ee-5bc53ef7cef0
2026-06-04 12:52:57,027 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/11e6e1d6-3450-4005-982d-26f97d109272
2026-06-04 12:52:57,038 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/11e6e1d6-3450-4005-982d-26f97d109272
2026-06-04 12:52:57,048 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e3504b83-a2a1-4800-a91d-420c88888a30
2026-06-04 12:52:57,056 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e3504b83-a2a1-4800-a91d-420c88888a30
2026-06-04 12:52:57,062 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/94925d5c-fb07-49c9-b063-8501b4882fc1
2026-06-04 12:52:57,068 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-04 12:52:57,068 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/11e6e1d6-3450-4005-982d-26f97d109272
2026-06-04 12:52:57,077 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e3504b83-a2a1-4800-a91d-420c88888a30
2026-06-04 12:52:57,090 - INFO - Verified VN network id 11 for VN 11e6e1d6-3450-4005-982d-26f97d109272
2026-06-04 12:52:57,091 - INFO - Verifications in API Server for VN ctest-vn-36183145 passed
2026-06-04 12:52:57,091 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/11e6e1d6-3450-4005-982d-26f97d109272
2026-06-04 12:52:57,099 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e3504b83-a2a1-4800-a91d-420c88888a30
2026-06-04 12:52:57,106 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e3504b83-a2a1-4800-a91d-420c88888a30
2026-06-04 12:52:57,113 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/94925d5c-fb07-49c9-b063-8501b4882fc1
2026-06-04 12:52:57,125 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37954473:ctest-vn-36183145', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37954473', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1289966653405151237', 'uuid-lslong': '10965463520703976050'}, 'enable': 'true', 'created': '2026-06-04T12:52:54', 'last-modified': '2026-06-04T12:52:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.931355'}
2026-06-04 12:52:57,131 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-04 12:52:57,131 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36183145 passed
2026-06-04 12:52:57,131 - DEBUG - ====Verifying policy data for ctest-vn-36183145 in API_Server ======
2026-06-04 12:52:57,131 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-04 12:52:57,136 - DEBUG - Requesting: http://10.0.0.50:8082/domain/00007a8b-9ba5-427a-9791-d7a47172f341
2026-06-04 12:52:57,149 - DEBUG - Requesting: http://10.0.0.50:8082/project/81bf7829-76d8-46d7-a4ee-5bc53ef7cef0
2026-06-04 12:52:57,224 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/11e6e1d6-3450-4005-982d-26f97d109272
2026-06-04 12:52:57,233 - DEBUG - ==>Verifying data for policy with id: 4429decc-8e5e-4501-8fa7-6cbb760bc754, fqn: ['default-domain', 'ctest-TestBasicPolicy-37954473', 'ctest-policy-allow-all-91685755']
2026-06-04 12:52:57,233 - INFO - VN ctest-vn-36183145 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-04 12:52:57,233 - DEBUG - Verifying the vn in opserver
2026-06-04 12:52:57,233 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37954473:ctest-vn-36183145 virtual network link through opserver 10.0.0.50
2026-06-04 12:52:57,233 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-06-04 12:52:57,531 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-06-04 12:52:57,593 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37954473:ctest-vn-36183145', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37954473:ctest-vn-36183145?flat'}
2026-06-04 12:52:57,593 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37954473:ctest-vn-36183145 is found in opserver
2026-06-04 12:52:57,602 - DEBUG - Do not have enough data to verify VN in agent
2026-06-04 12:52:57,606 - DEBUG - VRF ids for VN ctest-vn-36183145: {}
2026-06-04 12:52:57,606 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-04 12:52:57,611 - DEBUG - Requesting: http://10.0.0.50:8082/domain/00007a8b-9ba5-427a-9791-d7a47172f341
2026-06-04 12:52:57,622 - DEBUG - Requesting: http://10.0.0.50:8082/project/81bf7829-76d8-46d7-a4ee-5bc53ef7cef0
2026-06-04 12:52:57,694 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f66fc690-87fc-41e0-9e61-45fb1165c0a5
2026-06-04 12:52:57,705 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f66fc690-87fc-41e0-9e61-45fb1165c0a5
2026-06-04 12:52:57,713 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7ff77d8c-5cc2-4beb-b445-508929c5be6e
2026-06-04 12:52:57,719 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7ff77d8c-5cc2-4beb-b445-508929c5be6e
2026-06-04 12:52:57,725 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/bc6a65d7-c4f8-4ffa-8ea2-fd3567e13deb
2026-06-04 12:52:57,732 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-04 12:52:57,732 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f66fc690-87fc-41e0-9e61-45fb1165c0a5
2026-06-04 12:52:57,740 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7ff77d8c-5cc2-4beb-b445-508929c5be6e
2026-06-04 12:52:57,753 - INFO - Verified VN network id 12 for VN f66fc690-87fc-41e0-9e61-45fb1165c0a5
2026-06-04 12:52:57,753 - INFO - Verifications in API Server for VN ctest-vn-15584894 passed
2026-06-04 12:52:57,754 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f66fc690-87fc-41e0-9e61-45fb1165c0a5
2026-06-04 12:52:57,761 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7ff77d8c-5cc2-4beb-b445-508929c5be6e
2026-06-04 12:52:57,767 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7ff77d8c-5cc2-4beb-b445-508929c5be6e
2026-06-04 12:52:57,772 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/bc6a65d7-c4f8-4ffa-8ea2-fd3567e13deb
2026-06-04 12:52:57,784 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37954473:ctest-vn-15584894', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37954473', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17757630179804201440', 'uuid-lslong': '11412479875364536485'}, 'enable': 'true', 'created': '2026-06-04T12:52:55', 'last-modified': '2026-06-04T12:52:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.368947'}
2026-06-04 12:52:57,789 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-04 12:52:57,789 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15584894 passed
2026-06-04 12:52:57,789 - DEBUG - ====Verifying policy data for ctest-vn-15584894 in API_Server ======
2026-06-04 12:52:57,789 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-04 12:52:57,796 - DEBUG - Requesting: http://10.0.0.50:8082/domain/00007a8b-9ba5-427a-9791-d7a47172f341
2026-06-04 12:52:57,808 - DEBUG - Requesting: http://10.0.0.50:8082/project/81bf7829-76d8-46d7-a4ee-5bc53ef7cef0
2026-06-04 12:52:57,876 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f66fc690-87fc-41e0-9e61-45fb1165c0a5
2026-06-04 12:52:57,886 - DEBUG - ==>Verifying data for policy with id: 4429decc-8e5e-4501-8fa7-6cbb760bc754, fqn: ['default-domain', 'ctest-TestBasicPolicy-37954473', 'ctest-policy-allow-all-91685755']
2026-06-04 12:52:57,886 - INFO - VN ctest-vn-15584894 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-04 12:52:57,886 - DEBUG - Verifying the vn in opserver
2026-06-04 12:52:57,886 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37954473:ctest-vn-15584894 virtual network link through opserver 10.0.0.50
2026-06-04 12:52:57,886 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-06-04 12:52:57,896 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37954473:ctest-vn-15584894', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37954473:ctest-vn-15584894?flat'}
2026-06-04 12:52:57,896 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37954473:ctest-vn-15584894 is found in opserver
2026-06-04 12:52:57,906 - DEBUG - Do not have enough data to verify VN in agent
2026-06-04 12:52:57,911 - DEBUG - VRF ids for VN ctest-vn-15584894: {}
2026-06-04 12:52:57,966 - DEBUG - Services list from nova: [