2026-10-07 19:59:08,723 - INFO - Domain Default found not creating
2026-10-07 19:59:08,891 - INFO - Project ctest-TestBasicPolicy-09662681 not found, creating it
2026-10-07 19:59:09,388 - INFO - Created Project:ctest-TestBasicPolicy-09662681, ID : efbd0e80-2121-461a-b705-dd76c82e2f6c
2026-10-07 19:59:11,110 - INFO - ================================================================================
2026-10-07 19:59:11,110 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-10-07 19:59:11,110 - 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-10-07 19:59:11,370 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-10-07 19:59:11,370 - INFO - Initial checks done. Running the testcase now
2026-10-07 19:59:11,370 - INFO -
2026-10-07 19:59:12,036 - DEBUG - Response for create_network : {'network': {'id': '27d18452-4b70-4f04-9bcd-6d0a8f54801b', 'name': 'ctest-vn-27905790', 'tenant_id': 'efbd0e802121461ab705dd76c82e2f6c', 'project_id': 'efbd0e802121461ab705dd76c82e2f6c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09662681', 'ctest-vn-27905790'], 'port_security_enabled': True, 'description': ''}}
2026-10-07 19:59:12,205 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c49ff189-8ac6-43f4-a88e-4960549a3f7c', 'name': '', 'tenant_id': 'efbd0e802121461ab705dd76c82e2f6c', 'network_id': '27d18452-4b70-4f04-9bcd-6d0a8f54801b', 'ip_version': 4, 'cidr': '1.9.238.64/26', 'allocation_pools': [{'start': '1.9.238.66', 'end': '1.9.238.126'}], 'gateway_ip': '1.9.238.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '1.9.238.66', 'tags': [], 'project_id': 'efbd0e802121461ab705dd76c82e2f6c'}}
2026-10-07 19:59:12,223 - INFO - Created VN ctest-vn-27905790
2026-10-07 19:59:12,276 - DEBUG - VN ctest-vn-27905790 UUID is 27d18452-4b70-4f04-9bcd-6d0a8f54801b
2026-10-07 19:59:12,587 - DEBUG - Response for create_network : {'network': {'id': 'd19d18eb-828a-4f69-8dcd-be79410e54ec', 'name': 'ctest-vn-38980848', 'tenant_id': 'efbd0e802121461ab705dd76c82e2f6c', 'project_id': 'efbd0e802121461ab705dd76c82e2f6c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09662681', 'ctest-vn-38980848'], 'port_security_enabled': True, 'description': ''}}
2026-10-07 19:59:12,771 - DEBUG - Response for create_subnet : {'subnet': {'id': 'de04b137-6415-4bd8-a9f7-575c0590a1b1', 'name': '', 'tenant_id': 'efbd0e802121461ab705dd76c82e2f6c', 'network_id': 'd19d18eb-828a-4f69-8dcd-be79410e54ec', 'ip_version': 4, 'cidr': '143.237.177.64/26', 'allocation_pools': [{'start': '143.237.177.66', 'end': '143.237.177.126'}], 'gateway_ip': '143.237.177.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '143.237.177.66', 'tags': [], 'project_id': 'efbd0e802121461ab705dd76c82e2f6c'}}
2026-10-07 19:59:12,787 - INFO - Created VN ctest-vn-38980848
2026-10-07 19:59:12,840 - DEBUG - VN ctest-vn-38980848 UUID is d19d18eb-828a-4f69-8dcd-be79410e54ec
2026-10-07 19:59:12,991 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-09662681:ctest-vn-27905790, 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-09662681:ctest-vn-38980848, 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-10-07 19:59:13,311 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '27d18452-4b70-4f04-9bcd-6d0a8f54801b', 'name': 'ctest-vn-27905790', 'tenant_id': 'efbd0e802121461ab705dd76c82e2f6c', 'project_id': 'efbd0e802121461ab705dd76c82e2f6c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['c49ff189-8ac6-43f4-a88e-4960549a3f7c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09662681', 'ctest-vn-27905790'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09662681', 'ctest-policy-allow-all-89175678']], 'subnet_ipam': [{'subnet_cidr': '1.9.238.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-10-07 19:59:13,564 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd19d18eb-828a-4f69-8dcd-be79410e54ec', 'name': 'ctest-vn-38980848', 'tenant_id': 'efbd0e802121461ab705dd76c82e2f6c', 'project_id': 'efbd0e802121461ab705dd76c82e2f6c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['de04b137-6415-4bd8-a9f7-575c0590a1b1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09662681', 'ctest-vn-38980848'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09662681', 'ctest-policy-allow-all-89175678']], 'subnet_ipam': [{'subnet_cidr': '143.237.177.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-10-07 19:59:13,788 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-10-07 19:59:14,160 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-10-07 19:59:14,190 - DEBUG - Requesting: http://10.0.0.38:8082/domain/98dcc6d9-02da-4306-b277-3f6efcba845a
2026-10-07 19:59:14,202 - DEBUG - Requesting: http://10.0.0.38:8082/project/efbd0e80-2121-461a-b705-dd76c82e2f6c
2026-10-07 19:59:14,278 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/27d18452-4b70-4f04-9bcd-6d0a8f54801b
2026-10-07 19:59:14,292 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/27d18452-4b70-4f04-9bcd-6d0a8f54801b
2026-10-07 19:59:14,302 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e66e64a0-68d4-4242-a1a7-b962265810c0
2026-10-07 19:59:14,312 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e66e64a0-68d4-4242-a1a7-b962265810c0
2026-10-07 19:59:14,320 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d65380d5-b84b-469c-8ac1-44e592618622
2026-10-07 19:59:14,327 - DEBUG - Route Targets: ['target:64512:8000005']
2026-10-07 19:59:14,327 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/27d18452-4b70-4f04-9bcd-6d0a8f54801b
2026-10-07 19:59:14,337 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e66e64a0-68d4-4242-a1a7-b962265810c0
2026-10-07 19:59:14,354 - INFO - Verified VN network id 12 for VN 27d18452-4b70-4f04-9bcd-6d0a8f54801b
2026-10-07 19:59:14,354 - INFO - Verifications in API Server for VN ctest-vn-27905790 passed
2026-10-07 19:59:14,354 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/27d18452-4b70-4f04-9bcd-6d0a8f54801b
2026-10-07 19:59:14,364 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e66e64a0-68d4-4242-a1a7-b962265810c0
2026-10-07 19:59:14,372 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e66e64a0-68d4-4242-a1a7-b962265810c0
2026-10-07 19:59:14,380 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d65380d5-b84b-469c-8ac1-44e592618622
2026-10-07 19:59:14,393 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09662681:ctest-vn-27905790', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09662681', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2869219926599552772', 'uuid-lslong': '11226749338226294811'}, 'enable': 'true', 'created': '2026-10-07T19:59:11', 'last-modified': '2026-10-07T19:59:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.104892'}
2026-10-07 19:59:14,401 - DEBUG - Route Targets: ['target:64512:8000005']
2026-10-07 19:59:14,401 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27905790 passed
2026-10-07 19:59:14,402 - DEBUG - ====Verifying policy data for ctest-vn-27905790 in API_Server ======
2026-10-07 19:59:14,402 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-10-07 19:59:14,408 - DEBUG - Requesting: http://10.0.0.38:8082/domain/98dcc6d9-02da-4306-b277-3f6efcba845a
2026-10-07 19:59:14,419 - DEBUG - Requesting: http://10.0.0.38:8082/project/efbd0e80-2121-461a-b705-dd76c82e2f6c
2026-10-07 19:59:14,500 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/27d18452-4b70-4f04-9bcd-6d0a8f54801b
2026-10-07 19:59:14,513 - DEBUG - ==>Verifying data for policy with id: e6962195-0e78-40cf-b7b7-589f17943586, fqn: ['default-domain', 'ctest-TestBasicPolicy-09662681', 'ctest-policy-allow-all-89175678']
2026-10-07 19:59:14,513 - INFO - VN ctest-vn-27905790 Policy verification: verify_vn_policy_in_api_server, status: True
2026-10-07 19:59:14,513 - DEBUG - Verifying the vn in opserver
2026-10-07 19:59:14,513 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09662681:ctest-vn-27905790 virtual network link through opserver 10.0.0.38
2026-10-07 19:59:14,513 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-10-07 19:59:14,883 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-10-07 19:59:14,942 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09662681:ctest-vn-27905790', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09662681:ctest-vn-27905790?flat'}
2026-10-07 19:59:14,942 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09662681:ctest-vn-27905790 is found in opserver
2026-10-07 19:59:14,954 - DEBUG - Do not have enough data to verify VN in agent
2026-10-07 19:59:14,960 - DEBUG - VRF ids for VN ctest-vn-27905790: {}
2026-10-07 19:59:14,960 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-10-07 19:59:14,966 - DEBUG - Requesting: http://10.0.0.38:8082/domain/98dcc6d9-02da-4306-b277-3f6efcba845a
2026-10-07 19:59:14,979 - DEBUG - Requesting: http://10.0.0.38:8082/project/efbd0e80-2121-461a-b705-dd76c82e2f6c
2026-10-07 19:59:15,070 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d19d18eb-828a-4f69-8dcd-be79410e54ec
2026-10-07 19:59:15,084 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d19d18eb-828a-4f69-8dcd-be79410e54ec
2026-10-07 19:59:15,094 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e1b48476-0c67-4380-9dd4-65436be9156f
2026-10-07 19:59:15,102 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e1b48476-0c67-4380-9dd4-65436be9156f
2026-10-07 19:59:15,110 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9ed6c34d-0fc6-4a8c-85b7-7256135af430
2026-10-07 19:59:15,117 - DEBUG - Route Targets: ['target:64512:8000006']
2026-10-07 19:59:15,117 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d19d18eb-828a-4f69-8dcd-be79410e54ec
2026-10-07 19:59:15,127 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e1b48476-0c67-4380-9dd4-65436be9156f
2026-10-07 19:59:15,143 - INFO - Verified VN network id 13 for VN d19d18eb-828a-4f69-8dcd-be79410e54ec
2026-10-07 19:59:15,143 - INFO - Verifications in API Server for VN ctest-vn-38980848 passed
2026-10-07 19:59:15,143 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d19d18eb-828a-4f69-8dcd-be79410e54ec
2026-10-07 19:59:15,153 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e1b48476-0c67-4380-9dd4-65436be9156f
2026-10-07 19:59:15,161 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e1b48476-0c67-4380-9dd4-65436be9156f
2026-10-07 19:59:15,169 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9ed6c34d-0fc6-4a8c-85b7-7256135af430
2026-10-07 19:59:15,183 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09662681:ctest-vn-38980848', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09662681', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15104256125056995177', 'uuid-lslong': '10218032557565301996'}, 'enable': 'true', 'created': '2026-10-07T19:59:12', 'last-modified': '2026-10-07T19:59:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.645225'}
2026-10-07 19:59:15,190 - DEBUG - Route Targets: ['target:64512:8000006']
2026-10-07 19:59:15,190 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38980848 passed
2026-10-07 19:59:15,190 - DEBUG - ====Verifying policy data for ctest-vn-38980848 in API_Server ======
2026-10-07 19:59:15,190 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-10-07 19:59:15,196 - DEBUG - Requesting: http://10.0.0.38:8082/domain/98dcc6d9-02da-4306-b277-3f6efcba845a
2026-10-07 19:59:15,208 - DEBUG - Requesting: http://10.0.0.38:8082/project/efbd0e80-2121-461a-b705-dd76c82e2f6c
2026-10-07 19:59:15,288 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d19d18eb-828a-4f69-8dcd-be79410e54ec
2026-10-07 19:59:15,298 - DEBUG - ==>Verifying data for policy with id: e6962195-0e78-40cf-b7b7-589f17943586, fqn: ['default-domain', 'ctest-TestBasicPolicy-09662681', 'ctest-policy-allow-all-89175678']
2026-10-07 19:59:15,298 - INFO - VN ctest-vn-38980848 Policy verification: verify_vn_policy_in_api_server, status: True
2026-10-07 19:59:15,298 - DEBUG - Verifying the vn in opserver
2026-10-07 19:59:15,298 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09662681:ctest-vn-38980848 virtual network link through opserver 10.0.0.38
2026-10-07 19:59:15,298 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-10-07 19:59:15,308 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09662681:ctest-vn-38980848', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09662681:ctest-vn-38980848?flat'}
2026-10-07 19:59:15,309 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09662681:ctest-vn-38980848 is found in opserver
2026-10-07 19:59:15,326 - DEBUG - Do not have enough data to verify VN in agent
2026-10-07 19:59:15,331 - DEBUG - VRF ids for VN ctest-vn-38980848: {}
2026-10-07 19:59:15,394 - DEBUG - Services list from nova: [