2025-08-15 17:28:28,549 - INFO - Domain Default found not creating
2025-08-15 17:28:28,662 - INFO - Project ctest-TestBasicPolicy-66190427 not found, creating it
2025-08-15 17:28:29,137 - INFO - Created Project:ctest-TestBasicPolicy-66190427, ID : 5b072804-f34b-458a-97ab-e7ecafc2b144
2025-08-15 17:28:30,417 - INFO - ================================================================================
2025-08-15 17:28:30,417 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-15 17:28:30,417 - 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-08-15 17:28:30,666 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-08-15 17:28:30,666 - INFO - Initial checks done. Running the testcase now
2025-08-15 17:28:30,666 - INFO -
2025-08-15 17:28:31,168 - DEBUG - Response for create_network : {'network': {'id': '892099f5-3b0e-46f7-bff7-ce79251e2a1f', 'name': 'ctest-vn-99059781', 'tenant_id': '5b072804f34b458a97abe7ecafc2b144', 'project_id': '5b072804f34b458a97abe7ecafc2b144', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66190427', 'ctest-vn-99059781'], 'port_security_enabled': True, 'description': ''}}
2025-08-15 17:28:31,355 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e033f225-6608-4b3e-9a59-f594fbb344d9', 'name': '', 'tenant_id': '5b072804f34b458a97abe7ecafc2b144', 'network_id': '892099f5-3b0e-46f7-bff7-ce79251e2a1f', 'ip_version': 4, 'cidr': '188.115.44.0/26', 'allocation_pools': [{'start': '188.115.44.2', 'end': '188.115.44.62'}], 'gateway_ip': '188.115.44.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '188.115.44.2', 'tags': [], 'project_id': '5b072804f34b458a97abe7ecafc2b144'}}
2025-08-15 17:28:31,369 - INFO - Created VN ctest-vn-99059781
2025-08-15 17:28:31,421 - DEBUG - VN ctest-vn-99059781 UUID is 892099f5-3b0e-46f7-bff7-ce79251e2a1f
2025-08-15 17:28:31,717 - DEBUG - Response for create_network : {'network': {'id': 'b19fafa8-bcc3-4f06-9792-413ceb054da9', 'name': 'ctest-vn-54408659', 'tenant_id': '5b072804f34b458a97abe7ecafc2b144', 'project_id': '5b072804f34b458a97abe7ecafc2b144', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66190427', 'ctest-vn-54408659'], 'port_security_enabled': True, 'description': ''}}
2025-08-15 17:28:31,887 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e3ee7a6b-d16d-46d7-b67f-bd3daa5e032d', 'name': '', 'tenant_id': '5b072804f34b458a97abe7ecafc2b144', 'network_id': 'b19fafa8-bcc3-4f06-9792-413ceb054da9', 'ip_version': 4, 'cidr': '84.122.46.128/26', 'allocation_pools': [{'start': '84.122.46.130', 'end': '84.122.46.190'}], 'gateway_ip': '84.122.46.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '84.122.46.130', 'tags': [], 'project_id': '5b072804f34b458a97abe7ecafc2b144'}}
2025-08-15 17:28:31,901 - INFO - Created VN ctest-vn-54408659
2025-08-15 17:28:31,953 - DEBUG - VN ctest-vn-54408659 UUID is b19fafa8-bcc3-4f06-9792-413ceb054da9
2025-08-15 17:28:32,097 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-66190427:ctest-vn-99059781, 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-66190427:ctest-vn-54408659, 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-08-15 17:28:32,387 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '892099f5-3b0e-46f7-bff7-ce79251e2a1f', 'name': 'ctest-vn-99059781', 'tenant_id': '5b072804f34b458a97abe7ecafc2b144', 'project_id': '5b072804f34b458a97abe7ecafc2b144', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e033f225-6608-4b3e-9a59-f594fbb344d9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66190427', 'ctest-vn-99059781'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66190427', 'ctest-policy-allow-all-73340566']], 'subnet_ipam': [{'subnet_cidr': '188.115.44.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-15 17:28:32,626 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b19fafa8-bcc3-4f06-9792-413ceb054da9', 'name': 'ctest-vn-54408659', 'tenant_id': '5b072804f34b458a97abe7ecafc2b144', 'project_id': '5b072804f34b458a97abe7ecafc2b144', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e3ee7a6b-d16d-46d7-b67f-bd3daa5e032d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66190427', 'ctest-vn-54408659'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66190427', 'ctest-policy-allow-all-73340566']], 'subnet_ipam': [{'subnet_cidr': '84.122.46.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-15 17:28:32,789 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-15 17:28:33,077 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-15 17:28:33,100 - DEBUG - Requesting: http://10.0.0.50:8082/domain/4238f661-f832-4543-b519-0bccafd6fd9a
2025-08-15 17:28:33,110 - DEBUG - Requesting: http://10.0.0.50:8082/project/5b072804-f34b-458a-97ab-e7ecafc2b144
2025-08-15 17:28:33,177 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/892099f5-3b0e-46f7-bff7-ce79251e2a1f
2025-08-15 17:28:33,186 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/892099f5-3b0e-46f7-bff7-ce79251e2a1f
2025-08-15 17:28:33,193 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9a113163-97f2-44a6-b875-3c6592e01423
2025-08-15 17:28:33,198 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9a113163-97f2-44a6-b875-3c6592e01423
2025-08-15 17:28:33,203 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f4b02f6c-3175-4e33-b823-a2ea16feb0fd
2025-08-15 17:28:33,207 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-15 17:28:33,207 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/892099f5-3b0e-46f7-bff7-ce79251e2a1f
2025-08-15 17:28:33,214 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9a113163-97f2-44a6-b875-3c6592e01423
2025-08-15 17:28:33,225 - INFO - Verified VN network id 12 for VN 892099f5-3b0e-46f7-bff7-ce79251e2a1f
2025-08-15 17:28:33,225 - INFO - Verifications in API Server for VN ctest-vn-99059781 passed
2025-08-15 17:28:33,225 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/892099f5-3b0e-46f7-bff7-ce79251e2a1f
2025-08-15 17:28:33,232 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9a113163-97f2-44a6-b875-3c6592e01423
2025-08-15 17:28:33,237 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9a113163-97f2-44a6-b875-3c6592e01423
2025-08-15 17:28:33,242 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f4b02f6c-3175-4e33-b823-a2ea16feb0fd
2025-08-15 17:28:33,250 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66190427:ctest-vn-99059781', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66190427', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9881066860987696887', 'uuid-lslong': '13832751800200866335'}, 'enable': 'true', 'created': '2025-08-15T17:28:31', 'last-modified': '2025-08-15T17:28:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.888174'}
2025-08-15 17:28:33,256 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-15 17:28:33,256 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99059781 passed
2025-08-15 17:28:33,256 - DEBUG - ====Verifying policy data for ctest-vn-99059781 in API_Server ======
2025-08-15 17:28:33,256 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-15 17:28:33,260 - DEBUG - Requesting: http://10.0.0.50:8082/domain/4238f661-f832-4543-b519-0bccafd6fd9a
2025-08-15 17:28:33,268 - DEBUG - Requesting: http://10.0.0.50:8082/project/5b072804-f34b-458a-97ab-e7ecafc2b144
2025-08-15 17:28:33,340 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/892099f5-3b0e-46f7-bff7-ce79251e2a1f
2025-08-15 17:28:33,348 - DEBUG - ==>Verifying data for policy with id: c5b50b39-1d50-4afd-a43e-c97270e1a937, fqn: ['default-domain', 'ctest-TestBasicPolicy-66190427', 'ctest-policy-allow-all-73340566']
2025-08-15 17:28:33,348 - INFO - VN ctest-vn-99059781 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-15 17:28:33,348 - DEBUG - Verifying the vn in opserver
2025-08-15 17:28:33,348 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66190427:ctest-vn-99059781 virtual network link through opserver 10.0.0.50
2025-08-15 17:28:33,348 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-15 17:28:33,634 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-15 17:28:33,681 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66190427:ctest-vn-99059781', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66190427:ctest-vn-99059781?flat'}
2025-08-15 17:28:33,681 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66190427:ctest-vn-99059781 is found in opserver
2025-08-15 17:28:33,690 - DEBUG - Do not have enough data to verify VN in agent
2025-08-15 17:28:33,694 - DEBUG - VRF ids for VN ctest-vn-99059781: {}
2025-08-15 17:28:33,694 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-15 17:28:33,698 - DEBUG - Requesting: http://10.0.0.50:8082/domain/4238f661-f832-4543-b519-0bccafd6fd9a
2025-08-15 17:28:33,707 - DEBUG - Requesting: http://10.0.0.50:8082/project/5b072804-f34b-458a-97ab-e7ecafc2b144
2025-08-15 17:28:33,780 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b19fafa8-bcc3-4f06-9792-413ceb054da9
2025-08-15 17:28:33,790 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b19fafa8-bcc3-4f06-9792-413ceb054da9
2025-08-15 17:28:33,797 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/25637158-a271-4cbd-9811-0405afbd1b08
2025-08-15 17:28:33,803 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/25637158-a271-4cbd-9811-0405afbd1b08
2025-08-15 17:28:33,808 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/db6578e3-6ff6-4811-89bb-41dfa795cecb
2025-08-15 17:28:33,812 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-15 17:28:33,812 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b19fafa8-bcc3-4f06-9792-413ceb054da9
2025-08-15 17:28:33,819 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/25637158-a271-4cbd-9811-0405afbd1b08
2025-08-15 17:28:33,830 - INFO - Verified VN network id 13 for VN b19fafa8-bcc3-4f06-9792-413ceb054da9
2025-08-15 17:28:33,830 - INFO - Verifications in API Server for VN ctest-vn-54408659 passed
2025-08-15 17:28:33,830 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b19fafa8-bcc3-4f06-9792-413ceb054da9
2025-08-15 17:28:33,837 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/25637158-a271-4cbd-9811-0405afbd1b08
2025-08-15 17:28:33,842 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/25637158-a271-4cbd-9811-0405afbd1b08
2025-08-15 17:28:33,847 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/db6578e3-6ff6-4811-89bb-41dfa795cecb
2025-08-15 17:28:33,856 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66190427:ctest-vn-54408659', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66190427', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12799141805266521862', 'uuid-lslong': '10921863776223710633'}, 'enable': 'true', 'created': '2025-08-15T17:28:31', 'last-modified': '2025-08-15T17:28:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.254371'}
2025-08-15 17:28:33,861 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-15 17:28:33,861 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54408659 passed
2025-08-15 17:28:33,861 - DEBUG - ====Verifying policy data for ctest-vn-54408659 in API_Server ======
2025-08-15 17:28:33,862 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-15 17:28:33,865 - DEBUG - Requesting: http://10.0.0.50:8082/domain/4238f661-f832-4543-b519-0bccafd6fd9a
2025-08-15 17:28:33,874 - DEBUG - Requesting: http://10.0.0.50:8082/project/5b072804-f34b-458a-97ab-e7ecafc2b144
2025-08-15 17:28:33,939 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b19fafa8-bcc3-4f06-9792-413ceb054da9
2025-08-15 17:28:33,947 - DEBUG - ==>Verifying data for policy with id: c5b50b39-1d50-4afd-a43e-c97270e1a937, fqn: ['default-domain', 'ctest-TestBasicPolicy-66190427', 'ctest-policy-allow-all-73340566']
2025-08-15 17:28:33,947 - INFO - VN ctest-vn-54408659 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-15 17:28:33,947 - DEBUG - Verifying the vn in opserver
2025-08-15 17:28:33,947 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66190427:ctest-vn-54408659 virtual network link through opserver 10.0.0.50
2025-08-15 17:28:33,947 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-15 17:28:33,955 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66190427:ctest-vn-54408659', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66190427:ctest-vn-54408659?flat'}
2025-08-15 17:28:33,955 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66190427:ctest-vn-54408659 is found in opserver
2025-08-15 17:28:33,963 - DEBUG - Do not have enough data to verify VN in agent
2025-08-15 17:28:33,967 - DEBUG - VRF ids for VN ctest-vn-54408659: {}
2025-08-15 17:28:34,014 - DEBUG - Services list from nova: [