2025-10-21 17:07:15,566 - INFO - Domain Default found not creating
2025-10-21 17:07:15,742 - INFO - Project ctest-TestBasicPolicy-16058551 not found, creating it
2025-10-21 17:07:16,219 - INFO - Created Project:ctest-TestBasicPolicy-16058551, ID : f09573e0-f3fa-482b-83e0-4424d5337bfe
2025-10-21 17:07:17,752 - INFO - ================================================================================
2025-10-21 17:07:17,752 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-21 17:07:17,752 - 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-21 17:07:18,013 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0'}} with
2025-10-21 17:07:18,013 - INFO - Initial checks done. Running the testcase now
2025-10-21 17:07:18,013 - INFO -
2025-10-21 17:07:18,576 - DEBUG - Response for create_network : {'network': {'id': 'e38d9f3b-cf65-47a3-902f-964bafc16ac7', 'name': 'ctest-vn-37824253', 'tenant_id': 'f09573e0f3fa482b83e04424d5337bfe', 'project_id': 'f09573e0f3fa482b83e04424d5337bfe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16058551', 'ctest-vn-37824253'], 'port_security_enabled': True, 'description': ''}}
2025-10-21 17:07:18,788 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bcd5eac2-8e42-4f1c-a835-bfce656e94a4', 'name': '', 'tenant_id': 'f09573e0f3fa482b83e04424d5337bfe', 'network_id': 'e38d9f3b-cf65-47a3-902f-964bafc16ac7', 'ip_version': 4, 'cidr': '116.103.182.64/26', 'allocation_pools': [{'start': '116.103.182.66', 'end': '116.103.182.126'}], 'gateway_ip': '116.103.182.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '116.103.182.66', 'tags': [], 'project_id': 'f09573e0f3fa482b83e04424d5337bfe'}}
2025-10-21 17:07:18,807 - INFO - Created VN ctest-vn-37824253
2025-10-21 17:07:18,861 - DEBUG - VN ctest-vn-37824253 UUID is e38d9f3b-cf65-47a3-902f-964bafc16ac7
2025-10-21 17:07:19,165 - DEBUG - Response for create_network : {'network': {'id': '5ca166a0-a925-43dc-b906-d96f3a02946c', 'name': 'ctest-vn-78986988', 'tenant_id': 'f09573e0f3fa482b83e04424d5337bfe', 'project_id': 'f09573e0f3fa482b83e04424d5337bfe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16058551', 'ctest-vn-78986988'], 'port_security_enabled': True, 'description': ''}}
2025-10-21 17:07:19,386 - DEBUG - Response for create_subnet : {'subnet': {'id': '68c429cc-f9af-4465-8af8-7df0d6dd5a33', 'name': '', 'tenant_id': 'f09573e0f3fa482b83e04424d5337bfe', 'network_id': '5ca166a0-a925-43dc-b906-d96f3a02946c', 'ip_version': 4, 'cidr': '122.130.170.192/26', 'allocation_pools': [{'start': '122.130.170.194', 'end': '122.130.170.254'}], 'gateway_ip': '122.130.170.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '122.130.170.194', 'tags': [], 'project_id': 'f09573e0f3fa482b83e04424d5337bfe'}}
2025-10-21 17:07:19,405 - INFO - Created VN ctest-vn-78986988
2025-10-21 17:07:19,457 - DEBUG - VN ctest-vn-78986988 UUID is 5ca166a0-a925-43dc-b906-d96f3a02946c
2025-10-21 17:07:19,580 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-16058551:ctest-vn-37824253, 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-16058551:ctest-vn-78986988, 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-21 17:07:19,886 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e38d9f3b-cf65-47a3-902f-964bafc16ac7', 'name': 'ctest-vn-37824253', 'tenant_id': 'f09573e0f3fa482b83e04424d5337bfe', 'project_id': 'f09573e0f3fa482b83e04424d5337bfe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bcd5eac2-8e42-4f1c-a835-bfce656e94a4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16058551', 'ctest-vn-37824253'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16058551', 'ctest-policy-allow-all-89104866']], 'subnet_ipam': [{'subnet_cidr': '116.103.182.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-21 17:07:20,124 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5ca166a0-a925-43dc-b906-d96f3a02946c', 'name': 'ctest-vn-78986988', 'tenant_id': 'f09573e0f3fa482b83e04424d5337bfe', 'project_id': 'f09573e0f3fa482b83e04424d5337bfe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['68c429cc-f9af-4465-8af8-7df0d6dd5a33'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16058551', 'ctest-vn-78986988'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16058551', 'ctest-policy-allow-all-89104866']], 'subnet_ipam': [{'subnet_cidr': '122.130.170.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-21 17:07:20,277 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-10-21 17:07:20,603 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-10-21 17:07:20,641 - DEBUG - Requesting: http://10.0.0.249:8082/domain/7388b4b3-522f-409b-bd70-e6694f88da8a
2025-10-21 17:07:20,656 - DEBUG - Requesting: http://10.0.0.249:8082/project/f09573e0-f3fa-482b-83e0-4424d5337bfe
2025-10-21 17:07:20,766 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/e38d9f3b-cf65-47a3-902f-964bafc16ac7
2025-10-21 17:07:20,788 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/e38d9f3b-cf65-47a3-902f-964bafc16ac7
2025-10-21 17:07:20,806 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/6549bbfa-2e40-466a-bcef-aaf4ab7ceb24
2025-10-21 17:07:20,822 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/6549bbfa-2e40-466a-bcef-aaf4ab7ceb24
2025-10-21 17:07:20,839 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/2ad004df-b5ae-4a3e-9632-8119af65e18e
2025-10-21 17:07:20,851 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-21 17:07:20,851 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/e38d9f3b-cf65-47a3-902f-964bafc16ac7
2025-10-21 17:07:20,866 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/6549bbfa-2e40-466a-bcef-aaf4ab7ceb24
2025-10-21 17:07:20,885 - INFO - Verified VN network id 12 for VN e38d9f3b-cf65-47a3-902f-964bafc16ac7
2025-10-21 17:07:20,885 - INFO - Verifications in API Server for VN ctest-vn-37824253 passed
2025-10-21 17:07:20,885 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/e38d9f3b-cf65-47a3-902f-964bafc16ac7
2025-10-21 17:07:20,896 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/6549bbfa-2e40-466a-bcef-aaf4ab7ceb24
2025-10-21 17:07:20,908 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/6549bbfa-2e40-466a-bcef-aaf4ab7ceb24
2025-10-21 17:07:20,918 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/2ad004df-b5ae-4a3e-9632-8119af65e18e
2025-10-21 17:07:20,936 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16058551:ctest-vn-37824253', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16058551', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16396936897557252003', 'uuid-lslong': '10389688117182425799'}, 'enable': 'true', 'created': '2025-10-21T17:07:18', 'last-modified': '2025-10-21T17:07:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.070025'}
2025-10-21 17:07:20,948 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-21 17:07:20,948 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37824253 passed
2025-10-21 17:07:20,948 - DEBUG - ====Verifying policy data for ctest-vn-37824253 in API_Server ======
2025-10-21 17:07:20,948 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-10-21 17:07:20,959 - DEBUG - Requesting: http://10.0.0.249:8082/domain/7388b4b3-522f-409b-bd70-e6694f88da8a
2025-10-21 17:07:20,975 - DEBUG - Requesting: http://10.0.0.249:8082/project/f09573e0-f3fa-482b-83e0-4424d5337bfe
2025-10-21 17:07:21,067 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/e38d9f3b-cf65-47a3-902f-964bafc16ac7
2025-10-21 17:07:21,077 - DEBUG - ==>Verifying data for policy with id: 9b6061d8-faf2-4a96-8c73-c37c593fdaba, fqn: ['default-domain', 'ctest-TestBasicPolicy-16058551', 'ctest-policy-allow-all-89104866']
2025-10-21 17:07:21,077 - INFO - VN ctest-vn-37824253 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-21 17:07:21,077 - DEBUG - Verifying the vn in opserver
2025-10-21 17:07:21,077 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16058551:ctest-vn-37824253 virtual network link through opserver 10.0.0.249
2025-10-21 17:07:21,078 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-10-21 17:07:21,395 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-10-21 17:07:21,460 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16058551:ctest-vn-37824253', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16058551:ctest-vn-37824253?flat'}
2025-10-21 17:07:21,460 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16058551:ctest-vn-37824253 is found in opserver
2025-10-21 17:07:21,471 - DEBUG - Do not have enough data to verify VN in agent
2025-10-21 17:07:21,475 - DEBUG - VRF ids for VN ctest-vn-37824253: {}
2025-10-21 17:07:21,475 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-10-21 17:07:21,481 - DEBUG - Requesting: http://10.0.0.249:8082/domain/7388b4b3-522f-409b-bd70-e6694f88da8a
2025-10-21 17:07:21,492 - DEBUG - Requesting: http://10.0.0.249:8082/project/f09573e0-f3fa-482b-83e0-4424d5337bfe
2025-10-21 17:07:21,567 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5ca166a0-a925-43dc-b906-d96f3a02946c
2025-10-21 17:07:21,579 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5ca166a0-a925-43dc-b906-d96f3a02946c
2025-10-21 17:07:21,588 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/533e6691-b12f-49ce-9f5c-37e9f1078574
2025-10-21 17:07:21,596 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/533e6691-b12f-49ce-9f5c-37e9f1078574
2025-10-21 17:07:21,604 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/40a3049b-0214-4d16-a954-79631b16f983
2025-10-21 17:07:21,611 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-21 17:07:21,611 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5ca166a0-a925-43dc-b906-d96f3a02946c
2025-10-21 17:07:21,619 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/533e6691-b12f-49ce-9f5c-37e9f1078574
2025-10-21 17:07:21,633 - INFO - Verified VN network id 13 for VN 5ca166a0-a925-43dc-b906-d96f3a02946c
2025-10-21 17:07:21,633 - INFO - Verifications in API Server for VN ctest-vn-78986988 passed
2025-10-21 17:07:21,633 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5ca166a0-a925-43dc-b906-d96f3a02946c
2025-10-21 17:07:21,643 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/533e6691-b12f-49ce-9f5c-37e9f1078574
2025-10-21 17:07:21,650 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/533e6691-b12f-49ce-9f5c-37e9f1078574
2025-10-21 17:07:21,657 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/40a3049b-0214-4d16-a954-79631b16f983
2025-10-21 17:07:21,670 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16058551:ctest-vn-78986988', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16058551', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6674728962958377948', 'uuid-lslong': '13332582818614776940'}, 'enable': 'true', 'created': '2025-10-21T17:07:19', 'last-modified': '2025-10-21T17:07:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.568625'}
2025-10-21 17:07:21,677 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-21 17:07:21,677 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78986988 passed
2025-10-21 17:07:21,677 - DEBUG - ====Verifying policy data for ctest-vn-78986988 in API_Server ======
2025-10-21 17:07:21,678 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-10-21 17:07:21,683 - DEBUG - Requesting: http://10.0.0.249:8082/domain/7388b4b3-522f-409b-bd70-e6694f88da8a
2025-10-21 17:07:21,694 - DEBUG - Requesting: http://10.0.0.249:8082/project/f09573e0-f3fa-482b-83e0-4424d5337bfe
2025-10-21 17:07:21,764 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5ca166a0-a925-43dc-b906-d96f3a02946c
2025-10-21 17:07:21,775 - DEBUG - ==>Verifying data for policy with id: 9b6061d8-faf2-4a96-8c73-c37c593fdaba, fqn: ['default-domain', 'ctest-TestBasicPolicy-16058551', 'ctest-policy-allow-all-89104866']
2025-10-21 17:07:21,775 - INFO - VN ctest-vn-78986988 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-21 17:07:21,775 - DEBUG - Verifying the vn in opserver
2025-10-21 17:07:21,775 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16058551:ctest-vn-78986988 virtual network link through opserver 10.0.0.249
2025-10-21 17:07:21,775 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-10-21 17:07:21,786 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16058551:ctest-vn-78986988', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16058551:ctest-vn-78986988?flat'}
2025-10-21 17:07:21,787 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16058551:ctest-vn-78986988 is found in opserver
2025-10-21 17:07:21,798 - DEBUG - Do not have enough data to verify VN in agent
2025-10-21 17:07:21,803 - DEBUG - VRF ids for VN ctest-vn-78986988: {}
2025-10-21 17:07:21,866 - DEBUG - Services list from nova: [