2025-10-23 11:51:55,829 - INFO - Domain Default found not creating
2025-10-23 11:51:55,976 - INFO - Project ctest-TestBasicPolicy-32873198 not found, creating it
2025-10-23 11:51:56,418 - INFO - Created Project:ctest-TestBasicPolicy-32873198, ID : b6556185-54ec-451a-92d5-f92a92451460
2025-10-23 11:51:57,804 - INFO - ================================================================================
2025-10-23 11:51:57,804 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-23 11:51:57,804 - 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
2025-10-23 11:51:58,061 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.14': '0'}} with
2025-10-23 11:51:58,061 - INFO - Initial checks done. Running the testcase now
2025-10-23 11:51:58,061 - INFO -
2025-10-23 11:51:58,587 - DEBUG - Response for create_network : {'network': {'id': '4dc0195d-8a57-4587-b191-f26e7dcd1167', 'name': 'ctest-vn-10262165', 'tenant_id': 'b655618554ec451a92d5f92a92451460', 'project_id': 'b655618554ec451a92d5f92a92451460', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32873198', 'ctest-vn-10262165'], 'port_security_enabled': True, 'description': ''}}
2025-10-23 11:51:58,799 - DEBUG - Response for create_subnet : {'subnet': {'id': '578bdb04-fab8-45e8-aa85-dab74cd7b863', 'name': '', 'tenant_id': 'b655618554ec451a92d5f92a92451460', 'network_id': '4dc0195d-8a57-4587-b191-f26e7dcd1167', 'ip_version': 4, 'cidr': '211.159.25.0/26', 'allocation_pools': [{'start': '211.159.25.2', 'end': '211.159.25.62'}], 'gateway_ip': '211.159.25.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.159.25.2', 'tags': [], 'project_id': 'b655618554ec451a92d5f92a92451460'}}
2025-10-23 11:51:58,815 - INFO - Created VN ctest-vn-10262165
2025-10-23 11:51:58,864 - DEBUG - VN ctest-vn-10262165 UUID is 4dc0195d-8a57-4587-b191-f26e7dcd1167
2025-10-23 11:51:59,129 - DEBUG - Response for create_network : {'network': {'id': '1be041d6-e671-4975-a3a8-37ef9f8953d8', 'name': 'ctest-vn-91881753', 'tenant_id': 'b655618554ec451a92d5f92a92451460', 'project_id': 'b655618554ec451a92d5f92a92451460', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32873198', 'ctest-vn-91881753'], 'port_security_enabled': True, 'description': ''}}
2025-10-23 11:51:59,324 - DEBUG - Response for create_subnet : {'subnet': {'id': '5e8ad603-1023-444a-8709-f9673107a17a', 'name': '', 'tenant_id': 'b655618554ec451a92d5f92a92451460', 'network_id': '1be041d6-e671-4975-a3a8-37ef9f8953d8', 'ip_version': 4, 'cidr': '23.90.23.64/26', 'allocation_pools': [{'start': '23.90.23.66', 'end': '23.90.23.126'}], 'gateway_ip': '23.90.23.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23.90.23.66', 'tags': [], 'project_id': 'b655618554ec451a92d5f92a92451460'}}
2025-10-23 11:51:59,340 - INFO - Created VN ctest-vn-91881753
2025-10-23 11:51:59,392 - DEBUG - VN ctest-vn-91881753 UUID is 1be041d6-e671-4975-a3a8-37ef9f8953d8
2025-10-23 11:51:59,540 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-32873198:ctest-vn-10262165, 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-32873198:ctest-vn-91881753, 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]
2025-10-23 11:51:59,824 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4dc0195d-8a57-4587-b191-f26e7dcd1167', 'name': 'ctest-vn-10262165', 'tenant_id': 'b655618554ec451a92d5f92a92451460', 'project_id': 'b655618554ec451a92d5f92a92451460', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['578bdb04-fab8-45e8-aa85-dab74cd7b863'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32873198', 'ctest-vn-10262165'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32873198', 'ctest-policy-allow-all-15526702']], 'subnet_ipam': [{'subnet_cidr': '211.159.25.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-23 11:52:00,093 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1be041d6-e671-4975-a3a8-37ef9f8953d8', 'name': 'ctest-vn-91881753', 'tenant_id': 'b655618554ec451a92d5f92a92451460', 'project_id': 'b655618554ec451a92d5f92a92451460', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5e8ad603-1023-444a-8709-f9673107a17a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32873198', 'ctest-vn-91881753'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32873198', 'ctest-policy-allow-all-15526702']], 'subnet_ipam': [{'subnet_cidr': '23.90.23.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-23 11:52:00,240 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-23 11:52:00,544 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-23 11:52:00,571 - DEBUG - Requesting: http://10.0.0.242:8082/domain/ffc5279c-1e1b-4ca8-80d5-4cbbf68edcae
2025-10-23 11:52:00,583 - DEBUG - Requesting: http://10.0.0.242:8082/project/b6556185-54ec-451a-92d5-f92a92451460
2025-10-23 11:52:00,656 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/4dc0195d-8a57-4587-b191-f26e7dcd1167
2025-10-23 11:52:00,666 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/4dc0195d-8a57-4587-b191-f26e7dcd1167
2025-10-23 11:52:00,675 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/07a72abb-738c-4871-82bd-41fc7e738d2f
2025-10-23 11:52:00,682 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/07a72abb-738c-4871-82bd-41fc7e738d2f
2025-10-23 11:52:00,688 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/7a33d76d-57f4-4e03-ae08-5364903eb1c0
2025-10-23 11:52:00,694 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-23 11:52:00,694 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/4dc0195d-8a57-4587-b191-f26e7dcd1167
2025-10-23 11:52:00,703 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/07a72abb-738c-4871-82bd-41fc7e738d2f
2025-10-23 11:52:00,717 - INFO - Verified VN network id 11 for VN 4dc0195d-8a57-4587-b191-f26e7dcd1167
2025-10-23 11:52:00,718 - INFO - Verifications in API Server for VN ctest-vn-10262165 passed
2025-10-23 11:52:00,718 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/4dc0195d-8a57-4587-b191-f26e7dcd1167
2025-10-23 11:52:00,726 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/07a72abb-738c-4871-82bd-41fc7e738d2f
2025-10-23 11:52:00,732 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/07a72abb-738c-4871-82bd-41fc7e738d2f
2025-10-23 11:52:00,740 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/7a33d76d-57f4-4e03-ae08-5364903eb1c0
2025-10-23 11:52:00,752 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32873198:ctest-vn-10262165', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32873198', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5602505825992525191', 'uuid-lslong': '12795274572707205479'}, 'enable': 'true', 'created': '2025-10-23T11:51:58', 'last-modified': '2025-10-23T11:51:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.945569'}
2025-10-23 11:52:00,759 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-23 11:52:00,759 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10262165 passed
2025-10-23 11:52:00,759 - DEBUG - ====Verifying policy data for ctest-vn-10262165 in API_Server ======
2025-10-23 11:52:00,759 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-23 11:52:00,765 - DEBUG - Requesting: http://10.0.0.242:8082/domain/ffc5279c-1e1b-4ca8-80d5-4cbbf68edcae
2025-10-23 11:52:00,779 - DEBUG - Requesting: http://10.0.0.242:8082/project/b6556185-54ec-451a-92d5-f92a92451460
2025-10-23 11:52:00,858 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/4dc0195d-8a57-4587-b191-f26e7dcd1167
2025-10-23 11:52:00,869 - DEBUG - ==>Verifying data for policy with id: 945bfd86-b8ff-43d7-9353-f021d751c8e2, fqn: ['default-domain', 'ctest-TestBasicPolicy-32873198', 'ctest-policy-allow-all-15526702']
2025-10-23 11:52:00,869 - INFO - VN ctest-vn-10262165 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-23 11:52:00,869 - DEBUG - Verifying the vn in opserver
2025-10-23 11:52:00,869 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32873198:ctest-vn-10262165 virtual network link through opserver 10.0.0.242
2025-10-23 11:52:00,870 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-23 11:52:01,162 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-23 11:52:01,218 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32873198:ctest-vn-10262165', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32873198:ctest-vn-10262165?flat'}
2025-10-23 11:52:01,218 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32873198:ctest-vn-10262165 is found in opserver
2025-10-23 11:52:01,229 - DEBUG - Do not have enough data to verify VN in agent
2025-10-23 11:52:01,234 - DEBUG - VRF ids for VN ctest-vn-10262165: {}
2025-10-23 11:52:01,235 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-23 11:52:01,241 - DEBUG - Requesting: http://10.0.0.242:8082/domain/ffc5279c-1e1b-4ca8-80d5-4cbbf68edcae
2025-10-23 11:52:01,254 - DEBUG - Requesting: http://10.0.0.242:8082/project/b6556185-54ec-451a-92d5-f92a92451460
2025-10-23 11:52:01,331 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/1be041d6-e671-4975-a3a8-37ef9f8953d8
2025-10-23 11:52:01,343 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/1be041d6-e671-4975-a3a8-37ef9f8953d8
2025-10-23 11:52:01,354 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/2834c5d8-10c0-4fa1-b4e0-7a4e984ca7b8
2025-10-23 11:52:01,361 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/2834c5d8-10c0-4fa1-b4e0-7a4e984ca7b8
2025-10-23 11:52:01,368 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/ba43a1f9-993f-4980-9303-28b28f0b580a
2025-10-23 11:52:01,375 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-23 11:52:01,375 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/1be041d6-e671-4975-a3a8-37ef9f8953d8
2025-10-23 11:52:01,386 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/2834c5d8-10c0-4fa1-b4e0-7a4e984ca7b8
2025-10-23 11:52:01,400 - INFO - Verified VN network id 12 for VN 1be041d6-e671-4975-a3a8-37ef9f8953d8
2025-10-23 11:52:01,401 - INFO - Verifications in API Server for VN ctest-vn-91881753 passed
2025-10-23 11:52:01,401 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/1be041d6-e671-4975-a3a8-37ef9f8953d8
2025-10-23 11:52:01,409 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/2834c5d8-10c0-4fa1-b4e0-7a4e984ca7b8
2025-10-23 11:52:01,417 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/2834c5d8-10c0-4fa1-b4e0-7a4e984ca7b8
2025-10-23 11:52:01,423 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/ba43a1f9-993f-4980-9303-28b28f0b580a
2025-10-23 11:52:01,436 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32873198:ctest-vn-91881753', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32873198', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2008677825052232053', 'uuid-lslong': '11792737126582932440'}, 'enable': 'true', 'created': '2025-10-23T11:51:59', 'last-modified': '2025-10-23T11:52:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.404392'}
2025-10-23 11:52:01,443 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-23 11:52:01,443 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91881753 passed
2025-10-23 11:52:01,443 - DEBUG - ====Verifying policy data for ctest-vn-91881753 in API_Server ======
2025-10-23 11:52:01,443 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-23 11:52:01,450 - DEBUG - Requesting: http://10.0.0.242:8082/domain/ffc5279c-1e1b-4ca8-80d5-4cbbf68edcae
2025-10-23 11:52:01,461 - DEBUG - Requesting: http://10.0.0.242:8082/project/b6556185-54ec-451a-92d5-f92a92451460
2025-10-23 11:52:01,532 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/1be041d6-e671-4975-a3a8-37ef9f8953d8
2025-10-23 11:52:01,541 - DEBUG - ==>Verifying data for policy with id: 945bfd86-b8ff-43d7-9353-f021d751c8e2, fqn: ['default-domain', 'ctest-TestBasicPolicy-32873198', 'ctest-policy-allow-all-15526702']
2025-10-23 11:52:01,541 - INFO - VN ctest-vn-91881753 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-23 11:52:01,541 - DEBUG - Verifying the vn in opserver
2025-10-23 11:52:01,541 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32873198:ctest-vn-91881753 virtual network link through opserver 10.0.0.242
2025-10-23 11:52:01,541 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-23 11:52:01,551 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32873198:ctest-vn-91881753', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32873198:ctest-vn-91881753?flat'}
2025-10-23 11:52:01,551 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32873198:ctest-vn-91881753 is found in opserver
2025-10-23 11:52:01,561 - DEBUG - Do not have enough data to verify VN in agent
2025-10-23 11:52:01,565 - DEBUG - VRF ids for VN ctest-vn-91881753: {}
2025-10-23 11:52:01,621 - DEBUG - Services list from nova: [