2025-09-08 15:33:15,604 - INFO - Domain Default found not creating
2025-09-08 15:33:15,727 - INFO - Project ctest-TestBasicPolicy-60599780 not found, creating it
2025-09-08 15:33:16,138 - INFO - Created Project:ctest-TestBasicPolicy-60599780, ID : 9d6ce1da-6a1d-4333-a5c7-d49189be3b8d
2025-09-08 15:33:17,446 - INFO - ================================================================================
2025-09-08 15:33:17,446 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-08 15:33:17,446 - 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-08 15:33:17,705 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0'}} with
2025-09-08 15:33:17,705 - INFO - Initial checks done. Running the testcase now
2025-09-08 15:33:17,705 - INFO -
2025-09-08 15:33:18,209 - DEBUG - Response for create_network : {'network': {'id': '1ef30686-9970-47a6-883d-1d6d4c09024e', 'name': 'ctest-vn-08122681', 'tenant_id': '9d6ce1da6a1d4333a5c7d49189be3b8d', 'project_id': '9d6ce1da6a1d4333a5c7d49189be3b8d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60599780', 'ctest-vn-08122681'], 'port_security_enabled': True, 'description': ''}}
2025-09-08 15:33:18,380 - DEBUG - Response for create_subnet : {'subnet': {'id': '273fb756-580a-47a8-89ee-eacc4447a50a', 'name': '', 'tenant_id': '9d6ce1da6a1d4333a5c7d49189be3b8d', 'network_id': '1ef30686-9970-47a6-883d-1d6d4c09024e', 'ip_version': 4, 'cidr': '132.200.234.0/26', 'allocation_pools': [{'start': '132.200.234.2', 'end': '132.200.234.62'}], 'gateway_ip': '132.200.234.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '132.200.234.2', 'tags': [], 'project_id': '9d6ce1da6a1d4333a5c7d49189be3b8d'}}
2025-09-08 15:33:18,395 - INFO - Created VN ctest-vn-08122681
2025-09-08 15:33:18,447 - DEBUG - VN ctest-vn-08122681 UUID is 1ef30686-9970-47a6-883d-1d6d4c09024e
2025-09-08 15:33:18,749 - DEBUG - Response for create_network : {'network': {'id': 'ddfba3c0-9814-47fc-83b6-9ef448cbc9e9', 'name': 'ctest-vn-05972400', 'tenant_id': '9d6ce1da6a1d4333a5c7d49189be3b8d', 'project_id': '9d6ce1da6a1d4333a5c7d49189be3b8d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60599780', 'ctest-vn-05972400'], 'port_security_enabled': True, 'description': ''}}
2025-09-08 15:33:18,910 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c2a96a9e-591f-4861-8ed6-f1aae3107e22', 'name': '', 'tenant_id': '9d6ce1da6a1d4333a5c7d49189be3b8d', 'network_id': 'ddfba3c0-9814-47fc-83b6-9ef448cbc9e9', 'ip_version': 4, 'cidr': '45.233.3.128/26', 'allocation_pools': [{'start': '45.233.3.130', 'end': '45.233.3.190'}], 'gateway_ip': '45.233.3.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '45.233.3.130', 'tags': [], 'project_id': '9d6ce1da6a1d4333a5c7d49189be3b8d'}}
2025-09-08 15:33:18,925 - INFO - Created VN ctest-vn-05972400
2025-09-08 15:33:18,975 - DEBUG - VN ctest-vn-05972400 UUID is ddfba3c0-9814-47fc-83b6-9ef448cbc9e9
2025-09-08 15:33:19,119 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-60599780:ctest-vn-08122681, 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-60599780:ctest-vn-05972400, 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-08 15:33:19,392 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1ef30686-9970-47a6-883d-1d6d4c09024e', 'name': 'ctest-vn-08122681', 'tenant_id': '9d6ce1da6a1d4333a5c7d49189be3b8d', 'project_id': '9d6ce1da6a1d4333a5c7d49189be3b8d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['273fb756-580a-47a8-89ee-eacc4447a50a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60599780', 'ctest-vn-08122681'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60599780', 'ctest-policy-allow-all-75633087']], 'subnet_ipam': [{'subnet_cidr': '132.200.234.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-08 15:33:19,561 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ddfba3c0-9814-47fc-83b6-9ef448cbc9e9', 'name': 'ctest-vn-05972400', 'tenant_id': '9d6ce1da6a1d4333a5c7d49189be3b8d', 'project_id': '9d6ce1da6a1d4333a5c7d49189be3b8d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c2a96a9e-591f-4861-8ed6-f1aae3107e22'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60599780', 'ctest-vn-05972400'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60599780', 'ctest-policy-allow-all-75633087']], 'subnet_ipam': [{'subnet_cidr': '45.233.3.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-08 15:33:19,679 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-09-08 15:33:19,970 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-09-08 15:33:20,000 - DEBUG - Requesting: http://10.0.0.249:8082/domain/41c80929-152b-48d6-a0c4-9d4b1d560514
2025-09-08 15:33:20,018 - DEBUG - Requesting: http://10.0.0.249:8082/project/9d6ce1da-6a1d-4333-a5c7-d49189be3b8d
2025-09-08 15:33:20,124 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1ef30686-9970-47a6-883d-1d6d4c09024e
2025-09-08 15:33:20,138 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1ef30686-9970-47a6-883d-1d6d4c09024e
2025-09-08 15:33:20,152 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/0dd0b157-3c67-473d-ad36-0e4c2ba5f26b
2025-09-08 15:33:20,158 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/0dd0b157-3c67-473d-ad36-0e4c2ba5f26b
2025-09-08 15:33:20,163 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/8ff55e76-bb28-4a8e-bebf-d6233b531b4d
2025-09-08 15:33:20,168 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-08 15:33:20,168 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1ef30686-9970-47a6-883d-1d6d4c09024e
2025-09-08 15:33:20,175 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/0dd0b157-3c67-473d-ad36-0e4c2ba5f26b
2025-09-08 15:33:20,185 - INFO - Verified VN network id 12 for VN 1ef30686-9970-47a6-883d-1d6d4c09024e
2025-09-08 15:33:20,185 - INFO - Verifications in API Server for VN ctest-vn-08122681 passed
2025-09-08 15:33:20,185 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1ef30686-9970-47a6-883d-1d6d4c09024e
2025-09-08 15:33:20,193 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/0dd0b157-3c67-473d-ad36-0e4c2ba5f26b
2025-09-08 15:33:20,198 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/0dd0b157-3c67-473d-ad36-0e4c2ba5f26b
2025-09-08 15:33:20,204 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/8ff55e76-bb28-4a8e-bebf-d6233b531b4d
2025-09-08 15:33:20,213 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60599780:ctest-vn-08122681', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60599780', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2230133415648184230', 'uuid-lslong': '9817035118001848910'}, 'enable': 'true', 'created': '2025-09-08T15:33:18', 'last-modified': '2025-09-08T15:33:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.838164'}
2025-09-08 15:33:20,218 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-08 15:33:20,218 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08122681 passed
2025-09-08 15:33:20,218 - DEBUG - ====Verifying policy data for ctest-vn-08122681 in API_Server ======
2025-09-08 15:33:20,218 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-09-08 15:33:20,222 - DEBUG - Requesting: http://10.0.0.249:8082/domain/41c80929-152b-48d6-a0c4-9d4b1d560514
2025-09-08 15:33:20,231 - DEBUG - Requesting: http://10.0.0.249:8082/project/9d6ce1da-6a1d-4333-a5c7-d49189be3b8d
2025-09-08 15:33:20,306 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1ef30686-9970-47a6-883d-1d6d4c09024e
2025-09-08 15:33:20,316 - DEBUG - ==>Verifying data for policy with id: 8ec69de9-5602-4e81-96e8-f0dec9495a0e, fqn: ['default-domain', 'ctest-TestBasicPolicy-60599780', 'ctest-policy-allow-all-75633087']
2025-09-08 15:33:20,316 - INFO - VN ctest-vn-08122681 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-08 15:33:20,316 - DEBUG - Verifying the vn in opserver
2025-09-08 15:33:20,316 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60599780:ctest-vn-08122681 virtual network link through opserver 10.0.0.249
2025-09-08 15:33:20,316 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-09-08 15:33:20,605 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-09-08 15:33:20,653 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60599780:ctest-vn-08122681', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60599780:ctest-vn-08122681?flat'}
2025-09-08 15:33:20,653 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60599780:ctest-vn-08122681 is found in opserver
2025-09-08 15:33:20,661 - DEBUG - Do not have enough data to verify VN in agent
2025-09-08 15:33:20,665 - DEBUG - VRF ids for VN ctest-vn-08122681: {}
2025-09-08 15:33:20,665 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-09-08 15:33:20,669 - DEBUG - Requesting: http://10.0.0.249:8082/domain/41c80929-152b-48d6-a0c4-9d4b1d560514
2025-09-08 15:33:20,678 - DEBUG - Requesting: http://10.0.0.249:8082/project/9d6ce1da-6a1d-4333-a5c7-d49189be3b8d
2025-09-08 15:33:20,747 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/ddfba3c0-9814-47fc-83b6-9ef448cbc9e9
2025-09-08 15:33:20,756 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/ddfba3c0-9814-47fc-83b6-9ef448cbc9e9
2025-09-08 15:33:20,764 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ad3b6d53-c073-43cd-b6a7-a7ceb21d0e7a
2025-09-08 15:33:20,769 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ad3b6d53-c073-43cd-b6a7-a7ceb21d0e7a
2025-09-08 15:33:20,774 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/92ac7d72-6a8e-404e-8820-1d3f99a104d1
2025-09-08 15:33:20,780 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-08 15:33:20,780 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/ddfba3c0-9814-47fc-83b6-9ef448cbc9e9
2025-09-08 15:33:20,787 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ad3b6d53-c073-43cd-b6a7-a7ceb21d0e7a
2025-09-08 15:33:20,798 - INFO - Verified VN network id 13 for VN ddfba3c0-9814-47fc-83b6-9ef448cbc9e9
2025-09-08 15:33:20,798 - INFO - Verifications in API Server for VN ctest-vn-05972400 passed
2025-09-08 15:33:20,798 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/ddfba3c0-9814-47fc-83b6-9ef448cbc9e9
2025-09-08 15:33:20,806 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ad3b6d53-c073-43cd-b6a7-a7ceb21d0e7a
2025-09-08 15:33:20,811 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ad3b6d53-c073-43cd-b6a7-a7ceb21d0e7a
2025-09-08 15:33:20,816 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/92ac7d72-6a8e-404e-8820-1d3f99a104d1
2025-09-08 15:33:20,824 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60599780:ctest-vn-05972400', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60599780', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15995558549116962812', 'uuid-lslong': '9490948036760422889'}, 'enable': 'true', 'created': '2025-09-08T15:33:18', 'last-modified': '2025-09-08T15:33:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.281624'}
2025-09-08 15:33:20,829 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-08 15:33:20,829 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05972400 passed
2025-09-08 15:33:20,830 - DEBUG - ====Verifying policy data for ctest-vn-05972400 in API_Server ======
2025-09-08 15:33:20,830 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-09-08 15:33:20,834 - DEBUG - Requesting: http://10.0.0.249:8082/domain/41c80929-152b-48d6-a0c4-9d4b1d560514
2025-09-08 15:33:20,842 - DEBUG - Requesting: http://10.0.0.249:8082/project/9d6ce1da-6a1d-4333-a5c7-d49189be3b8d
2025-09-08 15:33:20,910 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/ddfba3c0-9814-47fc-83b6-9ef448cbc9e9
2025-09-08 15:33:20,919 - DEBUG - ==>Verifying data for policy with id: 8ec69de9-5602-4e81-96e8-f0dec9495a0e, fqn: ['default-domain', 'ctest-TestBasicPolicy-60599780', 'ctest-policy-allow-all-75633087']
2025-09-08 15:33:20,919 - INFO - VN ctest-vn-05972400 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-08 15:33:20,919 - DEBUG - Verifying the vn in opserver
2025-09-08 15:33:20,919 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60599780:ctest-vn-05972400 virtual network link through opserver 10.0.0.249
2025-09-08 15:33:20,919 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-09-08 15:33:20,927 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60599780:ctest-vn-05972400', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60599780:ctest-vn-05972400?flat'}
2025-09-08 15:33:20,927 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60599780:ctest-vn-05972400 is found in opserver
2025-09-08 15:33:20,935 - DEBUG - Do not have enough data to verify VN in agent
2025-09-08 15:33:20,938 - DEBUG - VRF ids for VN ctest-vn-05972400: {}
2025-09-08 15:33:20,987 - DEBUG - Services list from nova: [