2025-11-19 17:24:22,498 - INFO - Domain Default found not creating
2025-11-19 17:24:22,705 - INFO - Project ctest-TestBasicPolicy-72608892 not found, creating it
2025-11-19 17:24:23,185 - INFO - Created Project:ctest-TestBasicPolicy-72608892, ID : 523e154b-69b3-4349-9b47-64999ea53097
2025-11-19 17:24:24,789 - INFO - ================================================================================
2025-11-19 17:24:24,790 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-19 17:24:24,790 - 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-11-19 17:24:25,045 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.192': '0'}} with
2025-11-19 17:24:25,045 - INFO - Initial checks done. Running the testcase now
2025-11-19 17:24:25,045 - INFO -
2025-11-19 17:24:25,637 - DEBUG - Response for create_network : {'network': {'id': '7f543ae5-0963-495d-863e-fd91347ee515', 'name': 'ctest-vn-49839139', 'tenant_id': '523e154b69b343499b4764999ea53097', 'project_id': '523e154b69b343499b4764999ea53097', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72608892', 'ctest-vn-49839139'], 'port_security_enabled': True, 'description': ''}}
2025-11-19 17:24:25,831 - DEBUG - Response for create_subnet : {'subnet': {'id': '68b4fa0d-10b1-4528-ae87-50c65972110d', 'name': '', 'tenant_id': '523e154b69b343499b4764999ea53097', 'network_id': '7f543ae5-0963-495d-863e-fd91347ee515', 'ip_version': 4, 'cidr': '73.54.18.64/26', 'allocation_pools': [{'start': '73.54.18.66', 'end': '73.54.18.126'}], 'gateway_ip': '73.54.18.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '73.54.18.66', 'tags': [], 'project_id': '523e154b69b343499b4764999ea53097'}}
2025-11-19 17:24:25,853 - INFO - Created VN ctest-vn-49839139
2025-11-19 17:24:25,908 - DEBUG - VN ctest-vn-49839139 UUID is 7f543ae5-0963-495d-863e-fd91347ee515
2025-11-19 17:24:26,233 - DEBUG - Response for create_network : {'network': {'id': '9fcc9849-e935-4241-aad9-6f6d0c26d0f6', 'name': 'ctest-vn-43186115', 'tenant_id': '523e154b69b343499b4764999ea53097', 'project_id': '523e154b69b343499b4764999ea53097', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72608892', 'ctest-vn-43186115'], 'port_security_enabled': True, 'description': ''}}
2025-11-19 17:24:26,408 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f2060dd5-2ff7-4fd3-a1cb-43c3dfcbe091', 'name': '', 'tenant_id': '523e154b69b343499b4764999ea53097', 'network_id': '9fcc9849-e935-4241-aad9-6f6d0c26d0f6', 'ip_version': 4, 'cidr': '50.166.96.128/26', 'allocation_pools': [{'start': '50.166.96.130', 'end': '50.166.96.190'}], 'gateway_ip': '50.166.96.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '50.166.96.130', 'tags': [], 'project_id': '523e154b69b343499b4764999ea53097'}}
2025-11-19 17:24:26,428 - INFO - Created VN ctest-vn-43186115
2025-11-19 17:24:26,484 - DEBUG - VN ctest-vn-43186115 UUID is 9fcc9849-e935-4241-aad9-6f6d0c26d0f6
2025-11-19 17:24:26,601 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-72608892:ctest-vn-49839139, 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-72608892:ctest-vn-43186115, 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-11-19 17:24:26,898 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7f543ae5-0963-495d-863e-fd91347ee515', 'name': 'ctest-vn-49839139', 'tenant_id': '523e154b69b343499b4764999ea53097', 'project_id': '523e154b69b343499b4764999ea53097', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['68b4fa0d-10b1-4528-ae87-50c65972110d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72608892', 'ctest-vn-49839139'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72608892', 'ctest-policy-allow-all-32921030']], 'subnet_ipam': [{'subnet_cidr': '73.54.18.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-19 17:24:27,133 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9fcc9849-e935-4241-aad9-6f6d0c26d0f6', 'name': 'ctest-vn-43186115', 'tenant_id': '523e154b69b343499b4764999ea53097', 'project_id': '523e154b69b343499b4764999ea53097', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f2060dd5-2ff7-4fd3-a1cb-43c3dfcbe091'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72608892', 'ctest-vn-43186115'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72608892', 'ctest-policy-allow-all-32921030']], 'subnet_ipam': [{'subnet_cidr': '50.166.96.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-19 17:24:27,312 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-11-19 17:24:27,617 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-11-19 17:24:27,648 - DEBUG - Requesting: http://10.0.0.242:8082/domain/171f3d90-aab9-4b75-a03c-4744789cbb24
2025-11-19 17:24:27,664 - DEBUG - Requesting: http://10.0.0.242:8082/project/523e154b-69b3-4349-9b47-64999ea53097
2025-11-19 17:24:27,738 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/7f543ae5-0963-495d-863e-fd91347ee515
2025-11-19 17:24:27,749 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/7f543ae5-0963-495d-863e-fd91347ee515
2025-11-19 17:24:27,758 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e98b4a0e-9193-4043-8c83-7f0365fbf9cb
2025-11-19 17:24:27,765 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e98b4a0e-9193-4043-8c83-7f0365fbf9cb
2025-11-19 17:24:27,772 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/70f1de86-981d-4769-9803-f314607bf909
2025-11-19 17:24:27,780 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-19 17:24:27,780 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/7f543ae5-0963-495d-863e-fd91347ee515
2025-11-19 17:24:27,790 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e98b4a0e-9193-4043-8c83-7f0365fbf9cb
2025-11-19 17:24:27,806 - INFO - Verified VN network id 11 for VN 7f543ae5-0963-495d-863e-fd91347ee515
2025-11-19 17:24:27,806 - INFO - Verifications in API Server for VN ctest-vn-49839139 passed
2025-11-19 17:24:27,806 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/7f543ae5-0963-495d-863e-fd91347ee515
2025-11-19 17:24:27,814 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e98b4a0e-9193-4043-8c83-7f0365fbf9cb
2025-11-19 17:24:27,821 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e98b4a0e-9193-4043-8c83-7f0365fbf9cb
2025-11-19 17:24:27,827 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/70f1de86-981d-4769-9803-f314607bf909
2025-11-19 17:24:27,839 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72608892:ctest-vn-49839139', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72608892', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9175023096239966557', 'uuid-lslong': '9673447849731220757'}, 'enable': 'true', 'created': '2025-11-19T17:24:25', 'last-modified': '2025-11-19T17:24:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.962848'}
2025-11-19 17:24:27,846 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-19 17:24:27,846 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49839139 passed
2025-11-19 17:24:27,846 - DEBUG - ====Verifying policy data for ctest-vn-49839139 in API_Server ======
2025-11-19 17:24:27,846 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-11-19 17:24:27,852 - DEBUG - Requesting: http://10.0.0.242:8082/domain/171f3d90-aab9-4b75-a03c-4744789cbb24
2025-11-19 17:24:27,865 - DEBUG - Requesting: http://10.0.0.242:8082/project/523e154b-69b3-4349-9b47-64999ea53097
2025-11-19 17:24:27,946 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/7f543ae5-0963-495d-863e-fd91347ee515
2025-11-19 17:24:27,958 - DEBUG - ==>Verifying data for policy with id: 5f06a837-0c1e-4a45-93c0-7f77e90cd132, fqn: ['default-domain', 'ctest-TestBasicPolicy-72608892', 'ctest-policy-allow-all-32921030']
2025-11-19 17:24:27,958 - INFO - VN ctest-vn-49839139 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-19 17:24:27,958 - DEBUG - Verifying the vn in opserver
2025-11-19 17:24:27,958 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72608892:ctest-vn-49839139 virtual network link through opserver 10.0.0.242
2025-11-19 17:24:27,958 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-11-19 17:24:28,259 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-11-19 17:24:28,341 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72608892:ctest-vn-49839139', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72608892:ctest-vn-49839139?flat'}
2025-11-19 17:24:28,341 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72608892:ctest-vn-49839139 is found in opserver
2025-11-19 17:24:28,352 - DEBUG - Do not have enough data to verify VN in agent
2025-11-19 17:24:28,357 - DEBUG - VRF ids for VN ctest-vn-49839139: {}
2025-11-19 17:24:28,357 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-11-19 17:24:28,364 - DEBUG - Requesting: http://10.0.0.242:8082/domain/171f3d90-aab9-4b75-a03c-4744789cbb24
2025-11-19 17:24:28,376 - DEBUG - Requesting: http://10.0.0.242:8082/project/523e154b-69b3-4349-9b47-64999ea53097
2025-11-19 17:24:28,446 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/9fcc9849-e935-4241-aad9-6f6d0c26d0f6
2025-11-19 17:24:28,458 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/9fcc9849-e935-4241-aad9-6f6d0c26d0f6
2025-11-19 17:24:28,467 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0cbaacad-8ef8-489b-9a7b-c64a38c5be1f
2025-11-19 17:24:28,474 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0cbaacad-8ef8-489b-9a7b-c64a38c5be1f
2025-11-19 17:24:28,481 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/20e57af8-c4c6-40f3-aa2b-acf66b03e4a9
2025-11-19 17:24:28,488 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-19 17:24:28,488 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/9fcc9849-e935-4241-aad9-6f6d0c26d0f6
2025-11-19 17:24:28,497 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0cbaacad-8ef8-489b-9a7b-c64a38c5be1f
2025-11-19 17:24:28,511 - INFO - Verified VN network id 12 for VN 9fcc9849-e935-4241-aad9-6f6d0c26d0f6
2025-11-19 17:24:28,511 - INFO - Verifications in API Server for VN ctest-vn-43186115 passed
2025-11-19 17:24:28,511 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/9fcc9849-e935-4241-aad9-6f6d0c26d0f6
2025-11-19 17:24:28,520 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0cbaacad-8ef8-489b-9a7b-c64a38c5be1f
2025-11-19 17:24:28,527 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0cbaacad-8ef8-489b-9a7b-c64a38c5be1f
2025-11-19 17:24:28,534 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/20e57af8-c4c6-40f3-aa2b-acf66b03e4a9
2025-11-19 17:24:28,547 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72608892:ctest-vn-43186115', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72608892', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11514745790492131905', 'uuid-lslong': '12310993570539950326'}, 'enable': 'true', 'created': '2025-11-19T17:24:26', 'last-modified': '2025-11-19T17:24:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.439235'}
2025-11-19 17:24:28,554 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-19 17:24:28,554 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43186115 passed
2025-11-19 17:24:28,554 - DEBUG - ====Verifying policy data for ctest-vn-43186115 in API_Server ======
2025-11-19 17:24:28,554 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-11-19 17:24:28,560 - DEBUG - Requesting: http://10.0.0.242:8082/domain/171f3d90-aab9-4b75-a03c-4744789cbb24
2025-11-19 17:24:28,571 - DEBUG - Requesting: http://10.0.0.242:8082/project/523e154b-69b3-4349-9b47-64999ea53097
2025-11-19 17:24:28,641 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/9fcc9849-e935-4241-aad9-6f6d0c26d0f6
2025-11-19 17:24:28,651 - DEBUG - ==>Verifying data for policy with id: 5f06a837-0c1e-4a45-93c0-7f77e90cd132, fqn: ['default-domain', 'ctest-TestBasicPolicy-72608892', 'ctest-policy-allow-all-32921030']
2025-11-19 17:24:28,651 - INFO - VN ctest-vn-43186115 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-19 17:24:28,651 - DEBUG - Verifying the vn in opserver
2025-11-19 17:24:28,651 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72608892:ctest-vn-43186115 virtual network link through opserver 10.0.0.242
2025-11-19 17:24:28,652 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-11-19 17:24:28,661 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72608892:ctest-vn-43186115', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72608892:ctest-vn-43186115?flat'}
2025-11-19 17:24:28,661 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72608892:ctest-vn-43186115 is found in opserver
2025-11-19 17:24:28,671 - DEBUG - Do not have enough data to verify VN in agent
2025-11-19 17:24:28,675 - DEBUG - VRF ids for VN ctest-vn-43186115: {}
2025-11-19 17:24:28,742 - DEBUG - Services list from nova: [