2025-09-19 06:29:48,054 - INFO - Domain Default found not creating
2025-09-19 06:29:48,207 - INFO - Project ctest-TestBasicPolicy-84043543 not found, creating it
2025-09-19 06:29:48,660 - INFO - Created Project:ctest-TestBasicPolicy-84043543, ID : 06c9974b-f691-4c3f-ab3c-2ed7e6b3d643
2025-09-19 06:29:50,058 - INFO - ================================================================================
2025-09-19 06:29:50,058 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-19 06:29:50,058 - 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-09-19 06:29:50,317 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with
2025-09-19 06:29:50,317 - INFO - Initial checks done. Running the testcase now
2025-09-19 06:29:50,318 - INFO -
2025-09-19 06:29:50,839 - DEBUG - Response for create_network : {'network': {'id': '8967a2fa-8d8c-4178-b171-582ceb04ef5d', 'name': 'ctest-vn-63231581', 'tenant_id': '06c9974bf6914c3fab3c2ed7e6b3d643', 'project_id': '06c9974bf6914c3fab3c2ed7e6b3d643', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84043543', 'ctest-vn-63231581'], 'port_security_enabled': True, 'description': ''}}
2025-09-19 06:29:50,990 - DEBUG - Response for create_subnet : {'subnet': {'id': '5f9a69b2-e0df-4560-b22d-0d43f807c4c7', 'name': '', 'tenant_id': '06c9974bf6914c3fab3c2ed7e6b3d643', 'network_id': '8967a2fa-8d8c-4178-b171-582ceb04ef5d', 'ip_version': 4, 'cidr': '115.125.104.0/26', 'allocation_pools': [{'start': '115.125.104.2', 'end': '115.125.104.62'}], 'gateway_ip': '115.125.104.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '115.125.104.2', 'tags': [], 'project_id': '06c9974bf6914c3fab3c2ed7e6b3d643'}}
2025-09-19 06:29:51,006 - INFO - Created VN ctest-vn-63231581
2025-09-19 06:29:51,057 - DEBUG - VN ctest-vn-63231581 UUID is 8967a2fa-8d8c-4178-b171-582ceb04ef5d
2025-09-19 06:29:51,373 - DEBUG - Response for create_network : {'network': {'id': '510291e6-e207-4fc6-96d2-0b4e089cb853', 'name': 'ctest-vn-50096393', 'tenant_id': '06c9974bf6914c3fab3c2ed7e6b3d643', 'project_id': '06c9974bf6914c3fab3c2ed7e6b3d643', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84043543', 'ctest-vn-50096393'], 'port_security_enabled': True, 'description': ''}}
2025-09-19 06:29:51,576 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b62820b2-9361-4bab-8f6f-7c924529a6f2', 'name': '', 'tenant_id': '06c9974bf6914c3fab3c2ed7e6b3d643', 'network_id': '510291e6-e207-4fc6-96d2-0b4e089cb853', 'ip_version': 4, 'cidr': '49.171.31.0/26', 'allocation_pools': [{'start': '49.171.31.2', 'end': '49.171.31.62'}], 'gateway_ip': '49.171.31.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.171.31.2', 'tags': [], 'project_id': '06c9974bf6914c3fab3c2ed7e6b3d643'}}
2025-09-19 06:29:51,595 - INFO - Created VN ctest-vn-50096393
2025-09-19 06:29:51,645 - DEBUG - VN ctest-vn-50096393 UUID is 510291e6-e207-4fc6-96d2-0b4e089cb853
2025-09-19 06:29:51,797 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-84043543:ctest-vn-63231581, 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-84043543:ctest-vn-50096393, 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-09-19 06:29:52,085 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8967a2fa-8d8c-4178-b171-582ceb04ef5d', 'name': 'ctest-vn-63231581', 'tenant_id': '06c9974bf6914c3fab3c2ed7e6b3d643', 'project_id': '06c9974bf6914c3fab3c2ed7e6b3d643', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5f9a69b2-e0df-4560-b22d-0d43f807c4c7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84043543', 'ctest-vn-63231581'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84043543', 'ctest-policy-allow-all-95843353']], 'subnet_ipam': [{'subnet_cidr': '115.125.104.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-19 06:29:52,300 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '510291e6-e207-4fc6-96d2-0b4e089cb853', 'name': 'ctest-vn-50096393', 'tenant_id': '06c9974bf6914c3fab3c2ed7e6b3d643', 'project_id': '06c9974bf6914c3fab3c2ed7e6b3d643', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b62820b2-9361-4bab-8f6f-7c924529a6f2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84043543', 'ctest-vn-50096393'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84043543', 'ctest-policy-allow-all-95843353']], 'subnet_ipam': [{'subnet_cidr': '49.171.31.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-19 06:29:52,461 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-09-19 06:29:52,750 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-09-19 06:29:52,779 - DEBUG - Requesting: http://10.0.0.65:8082/domain/cda59307-4118-49db-9871-4f16b76cf17c
2025-09-19 06:29:52,791 - DEBUG - Requesting: http://10.0.0.65:8082/project/06c9974b-f691-4c3f-ab3c-2ed7e6b3d643
2025-09-19 06:29:52,865 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8967a2fa-8d8c-4178-b171-582ceb04ef5d
2025-09-19 06:29:52,876 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8967a2fa-8d8c-4178-b171-582ceb04ef5d
2025-09-19 06:29:52,884 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/f576343d-f1da-434e-8aa7-37f7b073553c
2025-09-19 06:29:52,891 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/f576343d-f1da-434e-8aa7-37f7b073553c
2025-09-19 06:29:52,899 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/1fedcb7a-a498-444c-980c-895ed3ebc875
2025-09-19 06:29:52,905 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-19 06:29:52,905 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8967a2fa-8d8c-4178-b171-582ceb04ef5d
2025-09-19 06:29:52,914 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/f576343d-f1da-434e-8aa7-37f7b073553c
2025-09-19 06:29:52,926 - INFO - Verified VN network id 12 for VN 8967a2fa-8d8c-4178-b171-582ceb04ef5d
2025-09-19 06:29:52,926 - INFO - Verifications in API Server for VN ctest-vn-63231581 passed
2025-09-19 06:29:52,926 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8967a2fa-8d8c-4178-b171-582ceb04ef5d
2025-09-19 06:29:52,934 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/f576343d-f1da-434e-8aa7-37f7b073553c
2025-09-19 06:29:52,940 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/f576343d-f1da-434e-8aa7-37f7b073553c
2025-09-19 06:29:52,947 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/1fedcb7a-a498-444c-980c-895ed3ebc875
2025-09-19 06:29:52,958 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84043543:ctest-vn-63231581', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84043543', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9901061502797627768', 'uuid-lslong': '12786097767026323293'}, 'enable': 'true', 'created': '2025-09-19T06:29:50', 'last-modified': '2025-09-19T06:29:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.897039'}
2025-09-19 06:29:52,963 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-19 06:29:52,963 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63231581 passed
2025-09-19 06:29:52,964 - DEBUG - ====Verifying policy data for ctest-vn-63231581 in API_Server ======
2025-09-19 06:29:52,964 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-09-19 06:29:52,968 - DEBUG - Requesting: http://10.0.0.65:8082/domain/cda59307-4118-49db-9871-4f16b76cf17c
2025-09-19 06:29:52,979 - DEBUG - Requesting: http://10.0.0.65:8082/project/06c9974b-f691-4c3f-ab3c-2ed7e6b3d643
2025-09-19 06:29:53,044 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8967a2fa-8d8c-4178-b171-582ceb04ef5d
2025-09-19 06:29:53,052 - DEBUG - ==>Verifying data for policy with id: b8835bfe-bdc8-4e57-bad6-17a74a5a90c9, fqn: ['default-domain', 'ctest-TestBasicPolicy-84043543', 'ctest-policy-allow-all-95843353']
2025-09-19 06:29:53,053 - INFO - VN ctest-vn-63231581 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-19 06:29:53,053 - DEBUG - Verifying the vn in opserver
2025-09-19 06:29:53,053 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84043543:ctest-vn-63231581 virtual network link through opserver 10.0.0.65
2025-09-19 06:29:53,053 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-09-19 06:29:53,341 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-09-19 06:29:53,388 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84043543:ctest-vn-63231581', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84043543:ctest-vn-63231581?flat'}
2025-09-19 06:29:53,388 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84043543:ctest-vn-63231581 is found in opserver
2025-09-19 06:29:53,397 - DEBUG - Do not have enough data to verify VN in agent
2025-09-19 06:29:53,401 - DEBUG - VRF ids for VN ctest-vn-63231581: {}
2025-09-19 06:29:53,401 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-09-19 06:29:53,405 - DEBUG - Requesting: http://10.0.0.65:8082/domain/cda59307-4118-49db-9871-4f16b76cf17c
2025-09-19 06:29:53,416 - DEBUG - Requesting: http://10.0.0.65:8082/project/06c9974b-f691-4c3f-ab3c-2ed7e6b3d643
2025-09-19 06:29:53,480 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/510291e6-e207-4fc6-96d2-0b4e089cb853
2025-09-19 06:29:53,490 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/510291e6-e207-4fc6-96d2-0b4e089cb853
2025-09-19 06:29:53,498 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/09439825-0a35-409b-b547-deafc54d7da7
2025-09-19 06:29:53,504 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/09439825-0a35-409b-b547-deafc54d7da7
2025-09-19 06:29:53,509 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/6dfe641b-1b97-4e2e-a729-8019c54820a3
2025-09-19 06:29:53,515 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-19 06:29:53,515 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/510291e6-e207-4fc6-96d2-0b4e089cb853
2025-09-19 06:29:53,522 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/09439825-0a35-409b-b547-deafc54d7da7
2025-09-19 06:29:53,534 - INFO - Verified VN network id 13 for VN 510291e6-e207-4fc6-96d2-0b4e089cb853
2025-09-19 06:29:53,535 - INFO - Verifications in API Server for VN ctest-vn-50096393 passed
2025-09-19 06:29:53,535 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/510291e6-e207-4fc6-96d2-0b4e089cb853
2025-09-19 06:29:53,542 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/09439825-0a35-409b-b547-deafc54d7da7
2025-09-19 06:29:53,548 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/09439825-0a35-409b-b547-deafc54d7da7
2025-09-19 06:29:53,553 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/6dfe641b-1b97-4e2e-a729-8019c54820a3
2025-09-19 06:29:53,562 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84043543:ctest-vn-50096393', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84043543', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5837388487846219718', 'uuid-lslong': '10867761280578271315'}, 'enable': 'true', 'created': '2025-09-19T06:29:51', 'last-modified': '2025-09-19T06:29:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.280434'}
2025-09-19 06:29:53,567 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-19 06:29:53,567 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50096393 passed
2025-09-19 06:29:53,568 - DEBUG - ====Verifying policy data for ctest-vn-50096393 in API_Server ======
2025-09-19 06:29:53,568 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-09-19 06:29:53,573 - DEBUG - Requesting: http://10.0.0.65:8082/domain/cda59307-4118-49db-9871-4f16b76cf17c
2025-09-19 06:29:53,582 - DEBUG - Requesting: http://10.0.0.65:8082/project/06c9974b-f691-4c3f-ab3c-2ed7e6b3d643
2025-09-19 06:29:53,652 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/510291e6-e207-4fc6-96d2-0b4e089cb853
2025-09-19 06:29:53,671 - DEBUG - ==>Verifying data for policy with id: b8835bfe-bdc8-4e57-bad6-17a74a5a90c9, fqn: ['default-domain', 'ctest-TestBasicPolicy-84043543', 'ctest-policy-allow-all-95843353']
2025-09-19 06:29:53,671 - INFO - VN ctest-vn-50096393 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-19 06:29:53,671 - DEBUG - Verifying the vn in opserver
2025-09-19 06:29:53,671 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84043543:ctest-vn-50096393 virtual network link through opserver 10.0.0.65
2025-09-19 06:29:53,671 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-09-19 06:29:53,680 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84043543:ctest-vn-50096393', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84043543:ctest-vn-50096393?flat'}
2025-09-19 06:29:53,680 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84043543:ctest-vn-50096393 is found in opserver
2025-09-19 06:29:53,689 - DEBUG - Do not have enough data to verify VN in agent
2025-09-19 06:29:53,693 - DEBUG - VRF ids for VN ctest-vn-50096393: {}
2025-09-19 06:29:53,744 - DEBUG - Services list from nova: [