2025-11-27 02:36:37,749 - INFO - Domain Default found not creating 2025-11-27 02:36:37,896 - INFO - Project ctest-TestBasicPolicy-25438214 not found, creating it 2025-11-27 02:36:38,391 - INFO - Created Project:ctest-TestBasicPolicy-25438214, ID : 52d24ed7-db49-4ab5-8905-e97e94902bfb 2025-11-27 02:36:39,964 - INFO - ================================================================================ 2025-11-27 02:36:39,964 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-11-27 02:36:39,964 - 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-27 02:36:41,242 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.193': '0', '10.20.0.192': '0'}, '10.0.0.130': {'10.20.0.192': '0', '10.20.0.129': '0'}} with 2025-11-27 02:36:41,242 - INFO - Initial checks done. Running the testcase now 2025-11-27 02:36:41,242 - INFO - 2025-11-27 02:36:41,896 - DEBUG - Response for create_network : {'network': {'id': 'aca5d8ef-8ab8-48ab-8434-a3a32b3c1dc6', 'name': 'ctest-vn-33944871', 'tenant_id': '52d24ed7db494ab58905e97e94902bfb', 'project_id': '52d24ed7db494ab58905e97e94902bfb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25438214', 'ctest-vn-33944871'], 'port_security_enabled': True, 'description': ''}} 2025-11-27 02:36:42,184 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd4056e66-2f1f-4456-b763-a6be8eb6d717', 'name': '', 'tenant_id': '52d24ed7db494ab58905e97e94902bfb', 'network_id': 'aca5d8ef-8ab8-48ab-8434-a3a32b3c1dc6', 'ip_version': 4, 'cidr': '97.141.251.192/26', 'allocation_pools': [{'start': '97.141.251.194', 'end': '97.141.251.254'}], 'gateway_ip': '97.141.251.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '97.141.251.194', 'tags': [], 'project_id': '52d24ed7db494ab58905e97e94902bfb'}} 2025-11-27 02:36:42,213 - INFO - Created VN ctest-vn-33944871 2025-11-27 02:36:42,225 - DEBUG - VN ctest-vn-33944871 UUID is aca5d8ef-8ab8-48ab-8434-a3a32b3c1dc6 2025-11-27 02:36:42,605 - DEBUG - Response for create_network : {'network': {'id': '68ea6c3e-d1eb-4da7-89b3-c36127fddc61', 'name': 'ctest-vn-22876713', 'tenant_id': '52d24ed7db494ab58905e97e94902bfb', 'project_id': '52d24ed7db494ab58905e97e94902bfb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25438214', 'ctest-vn-22876713'], 'port_security_enabled': True, 'description': ''}} 2025-11-27 02:36:42,856 - DEBUG - Response for create_subnet : {'subnet': {'id': '7f1d0fb7-2356-4b07-9c03-d3c298fc7095', 'name': '', 'tenant_id': '52d24ed7db494ab58905e97e94902bfb', 'network_id': '68ea6c3e-d1eb-4da7-89b3-c36127fddc61', 'ip_version': 4, 'cidr': '193.70.171.64/26', 'allocation_pools': [{'start': '193.70.171.66', 'end': '193.70.171.126'}], 'gateway_ip': '193.70.171.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '193.70.171.66', 'tags': [], 'project_id': '52d24ed7db494ab58905e97e94902bfb'}} 2025-11-27 02:36:42,877 - INFO - Created VN ctest-vn-22876713 2025-11-27 02:36:42,889 - DEBUG - VN ctest-vn-22876713 UUID is 68ea6c3e-d1eb-4da7-89b3-c36127fddc61 2025-11-27 02:36:42,972 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-25438214:ctest-vn-33944871, 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-25438214:ctest-vn-22876713, 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-27 02:36:43,281 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aca5d8ef-8ab8-48ab-8434-a3a32b3c1dc6', 'name': 'ctest-vn-33944871', 'tenant_id': '52d24ed7db494ab58905e97e94902bfb', 'project_id': '52d24ed7db494ab58905e97e94902bfb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d4056e66-2f1f-4456-b763-a6be8eb6d717'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25438214', 'ctest-vn-33944871'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25438214', 'ctest-policy-allow-all-81270268']], 'subnet_ipam': [{'subnet_cidr': '97.141.251.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-27 02:36:43,478 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '68ea6c3e-d1eb-4da7-89b3-c36127fddc61', 'name': 'ctest-vn-22876713', 'tenant_id': '52d24ed7db494ab58905e97e94902bfb', 'project_id': '52d24ed7db494ab58905e97e94902bfb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7f1d0fb7-2356-4b07-9c03-d3c298fc7095'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25438214', 'ctest-vn-22876713'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25438214', 'ctest-policy-allow-all-81270268']], 'subnet_ipam': [{'subnet_cidr': '193.70.171.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-27 02:36:43,578 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-11-27 02:36:43,907 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-11-27 02:36:43,940 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ea95f9c6-3b7f-4f10-9ecb-80826711f59a 2025-11-27 02:36:43,954 - DEBUG - Requesting: http://10.0.0.27:8082/project/52d24ed7-db49-4ab5-8905-e97e94902bfb 2025-11-27 02:36:44,042 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/aca5d8ef-8ab8-48ab-8434-a3a32b3c1dc6 2025-11-27 02:36:44,053 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/aca5d8ef-8ab8-48ab-8434-a3a32b3c1dc6 2025-11-27 02:36:44,061 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4c2e287e-fd93-4eb5-8578-02705e0ae55d 2025-11-27 02:36:44,067 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4c2e287e-fd93-4eb5-8578-02705e0ae55d 2025-11-27 02:36:44,074 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/289beb39-6f88-4e33-8da4-758c0c968e81 2025-11-27 02:36:44,080 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-27 02:36:44,080 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/aca5d8ef-8ab8-48ab-8434-a3a32b3c1dc6 2025-11-27 02:36:44,089 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4c2e287e-fd93-4eb5-8578-02705e0ae55d 2025-11-27 02:36:44,104 - INFO - Verified VN network id 14 for VN aca5d8ef-8ab8-48ab-8434-a3a32b3c1dc6 2025-11-27 02:36:44,104 - INFO - Verifications in API Server for VN ctest-vn-33944871 passed 2025-11-27 02:36:44,104 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/aca5d8ef-8ab8-48ab-8434-a3a32b3c1dc6 2025-11-27 02:36:44,113 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4c2e287e-fd93-4eb5-8578-02705e0ae55d 2025-11-27 02:36:44,120 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4c2e287e-fd93-4eb5-8578-02705e0ae55d 2025-11-27 02:36:44,127 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/289beb39-6f88-4e33-8da4-758c0c968e81 2025-11-27 02:36:44,139 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25438214:ctest-vn-33944871', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25438214', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12440588069016979627', 'uuid-lslong': '9526419032995798470'}, 'enable': 'true', 'created': '2025-11-27T02:36:41', 'last-modified': '2025-11-27T02:36:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.891259'} 2025-11-27 02:36:44,144 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-27 02:36:44,150 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25438214:ctest-vn-33944871', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25438214', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12440588069016979627', 'uuid-lslong': '9526419032995798470'}, 'enable': 'true', 'created': '2025-11-27T02:36:41', 'last-modified': '2025-11-27T02:36:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.908951'} 2025-11-27 02:36:44,155 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-27 02:36:44,160 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25438214:ctest-vn-33944871', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25438214', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12440588069016979627', 'uuid-lslong': '9526419032995798470'}, 'enable': 'true', 'created': '2025-11-27T02:36:41', 'last-modified': '2025-11-27T02:36:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.913226'} 2025-11-27 02:36:44,165 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-27 02:36:44,165 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33944871 passed 2025-11-27 02:36:44,165 - DEBUG - ====Verifying policy data for ctest-vn-33944871 in API_Server ====== 2025-11-27 02:36:44,166 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-11-27 02:36:44,171 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ea95f9c6-3b7f-4f10-9ecb-80826711f59a 2025-11-27 02:36:44,181 - DEBUG - Requesting: http://10.0.0.27:8082/project/52d24ed7-db49-4ab5-8905-e97e94902bfb 2025-11-27 02:36:44,272 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/aca5d8ef-8ab8-48ab-8434-a3a32b3c1dc6 2025-11-27 02:36:44,283 - DEBUG - ==>Verifying data for policy with id: 34dfc9a7-61d0-4a85-ba4a-66c22afe1767, fqn: ['default-domain', 'ctest-TestBasicPolicy-25438214', 'ctest-policy-allow-all-81270268'] 2025-11-27 02:36:44,283 - INFO - VN ctest-vn-33944871 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-27 02:36:44,283 - DEBUG - Verifying the vn in opserver 2025-11-27 02:36:44,283 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25438214:ctest-vn-33944871 virtual network link through opserver 10.0.0.27 2025-11-27 02:36:44,283 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-11-27 02:36:44,582 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-11-27 02:36:44,636 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25438214:ctest-vn-33944871', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25438214:ctest-vn-33944871?flat'} 2025-11-27 02:36:44,637 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25438214:ctest-vn-33944871 virtual network link through opserver 10.0.0.33 2025-11-27 02:36:44,637 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-11-27 02:36:44,936 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-11-27 02:36:44,998 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25438214:ctest-vn-33944871', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25438214:ctest-vn-33944871?flat'} 2025-11-27 02:36:44,998 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25438214:ctest-vn-33944871 virtual network link through opserver 10.0.0.23 2025-11-27 02:36:44,998 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-11-27 02:36:45,296 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-11-27 02:36:45,347 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25438214:ctest-vn-33944871', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25438214:ctest-vn-33944871?flat'} 2025-11-27 02:36:45,347 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25438214:ctest-vn-33944871 is found in opserver 2025-11-27 02:36:45,365 - DEBUG - Do not have enough data to verify VN in agent 2025-11-27 02:36:45,374 - DEBUG - VRF ids for VN ctest-vn-33944871: {} 2025-11-27 02:36:45,374 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-11-27 02:36:45,379 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ea95f9c6-3b7f-4f10-9ecb-80826711f59a 2025-11-27 02:36:45,389 - DEBUG - Requesting: http://10.0.0.27:8082/project/52d24ed7-db49-4ab5-8905-e97e94902bfb 2025-11-27 02:36:45,478 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/68ea6c3e-d1eb-4da7-89b3-c36127fddc61 2025-11-27 02:36:45,489 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/68ea6c3e-d1eb-4da7-89b3-c36127fddc61 2025-11-27 02:36:45,500 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1d2fe004-b531-44bb-89c4-c162aec39bfa 2025-11-27 02:36:45,508 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1d2fe004-b531-44bb-89c4-c162aec39bfa 2025-11-27 02:36:45,515 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/2a02c71b-8c3e-4f2f-a562-c3a2919b7d90 2025-11-27 02:36:45,522 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-11-27 02:36:45,522 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/68ea6c3e-d1eb-4da7-89b3-c36127fddc61 2025-11-27 02:36:45,531 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1d2fe004-b531-44bb-89c4-c162aec39bfa 2025-11-27 02:36:45,545 - INFO - Verified VN network id 15 for VN 68ea6c3e-d1eb-4da7-89b3-c36127fddc61 2025-11-27 02:36:45,545 - INFO - Verifications in API Server for VN ctest-vn-22876713 passed 2025-11-27 02:36:45,546 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/68ea6c3e-d1eb-4da7-89b3-c36127fddc61 2025-11-27 02:36:45,554 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1d2fe004-b531-44bb-89c4-c162aec39bfa 2025-11-27 02:36:45,561 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1d2fe004-b531-44bb-89c4-c162aec39bfa 2025-11-27 02:36:45,570 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/2a02c71b-8c3e-4f2f-a562-c3a2919b7d90 2025-11-27 02:36:45,581 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25438214:ctest-vn-22876713', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25438214', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7559973941560429991', 'uuid-lslong': '9922489226077527137'}, 'enable': 'true', 'created': '2025-11-27T02:36:42', 'last-modified': '2025-11-27T02:36:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.146197'} 2025-11-27 02:36:45,587 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-11-27 02:36:45,592 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25438214:ctest-vn-22876713', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25438214', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7559973941560429991', 'uuid-lslong': '9922489226077527137'}, 'enable': 'true', 'created': '2025-11-27T02:36:42', 'last-modified': '2025-11-27T02:36:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.152035'} 2025-11-27 02:36:45,597 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-11-27 02:36:45,602 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25438214:ctest-vn-22876713', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25438214', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7559973941560429991', 'uuid-lslong': '9922489226077527137'}, 'enable': 'true', 'created': '2025-11-27T02:36:42', 'last-modified': '2025-11-27T02:36:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.164188'} 2025-11-27 02:36:45,607 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-11-27 02:36:45,607 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22876713 passed 2025-11-27 02:36:45,607 - DEBUG - ====Verifying policy data for ctest-vn-22876713 in API_Server ====== 2025-11-27 02:36:45,607 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-11-27 02:36:45,612 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ea95f9c6-3b7f-4f10-9ecb-80826711f59a 2025-11-27 02:36:45,622 - DEBUG - Requesting: http://10.0.0.27:8082/project/52d24ed7-db49-4ab5-8905-e97e94902bfb 2025-11-27 02:36:45,708 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/68ea6c3e-d1eb-4da7-89b3-c36127fddc61 2025-11-27 02:36:45,716 - DEBUG - ==>Verifying data for policy with id: 34dfc9a7-61d0-4a85-ba4a-66c22afe1767, fqn: ['default-domain', 'ctest-TestBasicPolicy-25438214', 'ctest-policy-allow-all-81270268'] 2025-11-27 02:36:45,716 - INFO - VN ctest-vn-22876713 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-27 02:36:45,717 - DEBUG - Verifying the vn in opserver 2025-11-27 02:36:45,717 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25438214:ctest-vn-22876713 virtual network link through opserver 10.0.0.27 2025-11-27 02:36:45,717 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-11-27 02:36:45,768 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25438214:ctest-vn-22876713', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25438214:ctest-vn-22876713?flat'} 2025-11-27 02:36:45,768 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25438214:ctest-vn-22876713 virtual network link through opserver 10.0.0.33 2025-11-27 02:36:45,768 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-11-27 02:36:45,823 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25438214:ctest-vn-22876713', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25438214:ctest-vn-22876713?flat'} 2025-11-27 02:36:45,823 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25438214:ctest-vn-22876713 virtual network link through opserver 10.0.0.23 2025-11-27 02:36:45,823 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-11-27 02:36:45,887 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25438214:ctest-vn-22876713', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25438214:ctest-vn-22876713?flat'} 2025-11-27 02:36:45,887 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25438214:ctest-vn-22876713 is found in opserver 2025-11-27 02:36:45,908 - DEBUG - Do not have enough data to verify VN in agent 2025-11-27 02:36:45,919 - DEBUG - VRF ids for VN ctest-vn-22876713: {} 2025-11-27 02:36:45,980 - DEBUG - Services list from nova: [, , , ] 2025-11-27 02:36:47,041 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4820-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4820-2) 2025-11-27 02:36:48,542 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4820-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4820-1) 2025-11-27 02:36:48,542 - INFO - Waiting for VM ctest-TestBasicPolicy-25438214-33784769 to be up.. 2025-11-27 02:36:48,623 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-27 02:36:53,698 - DEBUG - VM is in ACTIVE state now 2025-11-27 02:36:53,699 - INFO - VM name : ctest-TestBasicPolicy-25438214-33784769 2025-11-27 02:36:53,772 - DEBUG - VM ctest-TestBasicPolicy-25438214-33784769 ID is 1c4572f6-6ff4-4a2c-9b55-61c129bba369 2025-11-27 02:36:53,796 - DEBUG - VM ctest-TestBasicPolicy-25438214-33784769 launched on Node an-jenkins-deploy-platform-ansible-os-4820-2 2025-11-27 02:36:53,871 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/1c4572f6-6ff4-4a2c-9b55-61c129bba369 2025-11-27 02:36:54,166 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/1c4572f6-6ff4-4a2c-9b55-61c129bba369 2025-11-27 02:36:54,209 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/f664e187-66f9-4ce2-a099-d1edb65c0f61 2025-11-27 02:36:57,390 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1031ms') 2025-11-27 02:36:57,390 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-25438214-33784769 failed! 2025-11-27 02:36:57,404 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-25438214:ctest-vn-33944871 is 97.141.251.193 and allocation pool is NOT set 2025-11-27 02:37:01,491 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1023ms') 2025-11-27 02:37:01,491 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-25438214-33784769 failed! 2025-11-27 02:37:01,504 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-25438214:ctest-vn-33944871 is 97.141.251.193 and allocation pool is NOT set 2025-11-27 02:37:05,581 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1017ms') 2025-11-27 02:37:05,581 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-25438214-33784769 failed! 2025-11-27 02:37:05,595 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-25438214:ctest-vn-33944871 is 97.141.251.193 and allocation pool is NOT set 2025-11-27 02:37:09,689 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1027ms') 2025-11-27 02:37:09,689 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-25438214-33784769 failed! 2025-11-27 02:37:09,703 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-25438214:ctest-vn-33944871 is 97.141.251.193 and allocation pool is NOT set 2025-11-27 02:37:13,777 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1011ms') 2025-11-27 02:37:13,777 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-25438214-33784769 failed! 2025-11-27 02:37:13,790 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-25438214:ctest-vn-33944871 is 97.141.251.193 and allocation pool is NOT set 2025-11-27 02:37:17,871 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1016ms') 2025-11-27 02:37:17,872 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-25438214-33784769 failed! 2025-11-27 02:37:17,888 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-25438214:ctest-vn-33944871 is 97.141.251.193 and allocation pool is NOT set 2025-11-27 02:37:21,966 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1019ms') 2025-11-27 02:37:21,966 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-25438214-33784769 failed! 2025-11-27 02:37:21,978 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-25438214:ctest-vn-33944871 is 97.141.251.193 and allocation pool is NOT set 2025-11-27 02:37:26,060 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=5.81 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1026ms\r\nrtt min/avg/max/mdev = 5.808/5.808/5.808/0.000 ms') 2025-11-27 02:37:26,060 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-25438214-33784769 passed 2025-11-27 02:37:26,129 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-27 02:37:26,129 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-25438214-33784769, IP 97.141.251.195, Port 22 2025-11-27 02:37:26,196 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-11-27 02:37:26,274 - DEBUG - VM ctest-TestBasicPolicy-25438214-33784769 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-27 02:37:31,275 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-27 02:37:31,275 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-25438214-33784769, IP 97.141.251.195, Port 22 2025-11-27 02:37:31,344 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-11-27 02:37:31,427 - DEBUG - VM ctest-TestBasicPolicy-25438214-33784769 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-27 02:37:36,428 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-27 02:37:36,428 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-25438214-33784769, IP 97.141.251.195, Port 22 2025-11-27 02:37:36,486 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-11-27 02:37:36,566 - DEBUG - VM ctest-TestBasicPolicy-25438214-33784769 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-27 02:37:41,567 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-27 02:37:41,567 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-25438214-33784769, IP 97.141.251.195, Port 22 2025-11-27 02:37:41,635 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-11-27 02:37:41,710 - DEBUG - VM ctest-TestBasicPolicy-25438214-33784769 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-27 02:37:46,711 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-27 02:37:46,711 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-25438214-33784769, IP 97.141.251.195, Port 22 2025-11-27 02:37:46,870 - DEBUG - VM ctest-TestBasicPolicy-25438214-33784769 is ready for SSH connections 2025-11-27 02:37:46,870 - INFO - Waiting for VM ctest-TestBasicPolicy-25438214-42972538 to be up.. 2025-11-27 02:37:46,948 - DEBUG - VM is in ACTIVE state now 2025-11-27 02:37:46,948 - INFO - VM name : ctest-TestBasicPolicy-25438214-42972538 2025-11-27 02:37:47,024 - DEBUG - VM ctest-TestBasicPolicy-25438214-42972538 ID is c5a6cccf-099f-4ab2-8cfc-948ecf970965 2025-11-27 02:37:47,024 - DEBUG - VM ctest-TestBasicPolicy-25438214-42972538 launched on Node an-jenkins-deploy-platform-ansible-os-4820-1 2025-11-27 02:37:47,116 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/c5a6cccf-099f-4ab2-8cfc-948ecf970965 2025-11-27 02:37:47,126 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/bf4c5477-a99f-4a52-a7a4-55acca7ec443 2025-11-27 02:37:48,287 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=2.79 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.40 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 1.397/2.093/2.790/0.696 ms') 2025-11-27 02:37:48,287 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-25438214-42972538 passed 2025-11-27 02:37:48,352 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-27 02:37:48,352 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-25438214-42972538, IP 193.70.171.67, Port 22 2025-11-27 02:37:48,518 - DEBUG - VM ctest-TestBasicPolicy-25438214-42972538 is ready for SSH connections 2025-11-27 02:37:48,518 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-27 02:37:48,518 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 193.70.171.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.130, gateway password: c0ntrail123 2025-11-27 02:37:48,518 - DEBUG - ping -s 56 -c 3 -W 1 193.70.171.67 2025-11-27 02:38:07,453 - DEBUG - PING 193.70.171.67 (193.70.171.67) 56(84) bytes of data. 64 bytes from 193.70.171.67: icmp_req=1 ttl=63 time=5.27 ms 64 bytes from 193.70.171.67: icmp_req=2 ttl=63 time=3.48 ms 64 bytes from 193.70.171.67: icmp_req=3 ttl=63 time=4.22 ms --- 193.70.171.67 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2004ms rtt min/avg/max/mdev = 3.482/4.325/5.273/0.736 ms 2025-11-27 02:38:07,453 - INFO - Ping to IP 193.70.171.67 from VM ctest-TestBasicPolicy-25438214-33784769 passed 2025-11-27 02:38:07,648 - DEBUG - Policy Update Response {"network-policy": {"uuid": "34dfc9a7-61d0-4a85-ba4a-66c22afe1767", "href": "http://10.0.0.23:8082/network-policy/34dfc9a7-61d0-4a85-ba4a-66c22afe1767"}} 2025-11-27 02:38:07,648 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-27 02:38:07,648 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 193.70.171.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.130, gateway password: c0ntrail123 2025-11-27 02:38:07,648 - DEBUG - ping -s 56 -c 3 -W 1 193.70.171.67 2025-11-27 02:38:11,117 - DEBUG - PING 193.70.171.67 (193.70.171.67) 56(84) bytes of data. 64 bytes from 193.70.171.67: icmp_req=1 ttl=63 time=3.55 ms --- 193.70.171.67 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2011ms rtt min/avg/max/mdev = 3.558/3.558/3.558/0.000 ms 2025-11-27 02:38:11,117 - WARNING - Ping to IP 193.70.171.67 from VM ctest-TestBasicPolicy-25438214-33784769 failed 2025-11-27 02:38:11,117 - INFO - Deleting VM ctest-TestBasicPolicy-25438214-42972538 2025-11-27 02:38:11,184 - INFO - Deleting VM ctest-TestBasicPolicy-25438214-33784769 2025-11-27 02:38:11,617 - INFO - Deleted policy ctest-policy-allow-all-81270268 2025-11-27 02:38:11,617 - INFO - Deleting VN ctest-vn-22876713 2025-11-27 02:38:11,662 - DEBUG - VN 68ea6c3e-d1eb-4da7-89b3-c36127fddc61 still in use: Unable to complete operation on network 68ea6c3e-d1eb-4da7-89b3-c36127fddc61. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c2eb9b53-01ff-4124-8a07-c90ae22427fb'] 2025-11-27 02:38:11,662 - WARNING - Deleting VN ctest-vn-22876713 failed..Will retry 2025-11-27 02:38:13,825 - DEBUG - Response for deleting network () 2025-11-27 02:38:13,825 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1d2fe004-b531-44bb-89c4-c162aec39bfa 2025-11-27 02:38:13,838 - DEBUG - Response Code: 404 2025-11-27 02:38:13,838 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-11-27 02:38:13,846 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ea95f9c6-3b7f-4f10-9ecb-80826711f59a 2025-11-27 02:38:13,904 - DEBUG - Requesting: http://10.0.0.27:8082/project/52d24ed7-db49-4ab5-8905-e97e94902bfb 2025-11-27 02:38:14,002 - INFO - Validated that VN ctest-vn-22876713 is not found in API Server 2025-11-27 02:38:14,014 - DEBUG - VN ctest-vn-22876713 is not present in Agent 10.0.0.19 2025-11-27 02:38:14,022 - DEBUG - VN ctest-vn-22876713 is not present in Agent 10.0.0.130 2025-11-27 02:38:14,022 - INFO - Validated that VN ctest-vn-22876713 is not in any agent 2025-11-27 02:38:14,051 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-22876713 info 2025-11-27 02:38:14,051 - INFO - Deleting VN ctest-vn-33944871 2025-11-27 02:38:14,195 - DEBUG - Response for deleting network () 2025-11-27 02:38:14,195 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4c2e287e-fd93-4eb5-8578-02705e0ae55d 2025-11-27 02:38:14,200 - DEBUG - Response Code: 404 2025-11-27 02:38:14,200 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-11-27 02:38:14,205 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ea95f9c6-3b7f-4f10-9ecb-80826711f59a 2025-11-27 02:38:14,227 - DEBUG - Requesting: http://10.0.0.27:8082/project/52d24ed7-db49-4ab5-8905-e97e94902bfb 2025-11-27 02:38:14,320 - INFO - Validated that VN ctest-vn-33944871 is not found in API Server 2025-11-27 02:38:14,330 - DEBUG - VN ctest-vn-33944871 is not present in Agent 10.0.0.19 2025-11-27 02:38:14,343 - DEBUG - VN ctest-vn-33944871 is not present in Agent 10.0.0.130 2025-11-27 02:38:14,343 - INFO - Validated that VN ctest-vn-33944871 is not in any agent 2025-11-27 02:38:14,375 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-33944871 info 2025-11-27 02:38:15,642 - DEBUG - No XMPP flaps were noticed during the test 2025-11-27 02:38:15,642 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:36] 2025-11-27 02:38:15,642 - INFO - -------------------------------------------------------------------------------- 2025-11-27 02:38:16,358 - INFO - Deleted project: ctest-TestBasicPolicy-25438214, ID : 52d24ed7-db49-4ab5-8905-e97e94902bfb