2025-10-13 02:31:35,068 - INFO - Domain Default found not creating 2025-10-13 02:31:35,207 - INFO - Project ctest-TestBasicPolicy-29363827 not found, creating it 2025-10-13 02:31:35,718 - INFO - Created Project:ctest-TestBasicPolicy-29363827, ID : 9077fee9-b01d-4723-88e7-ac3e374b57cc 2025-10-13 02:31:37,158 - INFO - ================================================================================ 2025-10-13 02:31:37,158 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-10-13 02:31:37,158 - 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-13 02:31:38,428 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.18': '0', '10.20.0.129': '0'}, '10.0.0.27': {'10.20.0.18': '0', '10.20.0.129': '0'}} with 2025-10-13 02:31:38,428 - INFO - Initial checks done. Running the testcase now 2025-10-13 02:31:38,428 - INFO - 2025-10-13 02:31:39,071 - DEBUG - Response for create_network : {'network': {'id': '6c79f24e-c29f-4053-8dd0-78b43b3e5e53', 'name': 'ctest-vn-29828627', 'tenant_id': '9077fee9b01d472388e7ac3e374b57cc', 'project_id': '9077fee9b01d472388e7ac3e374b57cc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29363827', 'ctest-vn-29828627'], 'port_security_enabled': True, 'description': ''}} 2025-10-13 02:31:39,340 - DEBUG - Response for create_subnet : {'subnet': {'id': '234bfe0c-3780-4e78-ba46-30111eeebd10', 'name': '', 'tenant_id': '9077fee9b01d472388e7ac3e374b57cc', 'network_id': '6c79f24e-c29f-4053-8dd0-78b43b3e5e53', 'ip_version': 4, 'cidr': '58.77.73.192/26', 'allocation_pools': [{'start': '58.77.73.194', 'end': '58.77.73.254'}], 'gateway_ip': '58.77.73.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '58.77.73.194', 'tags': [], 'project_id': '9077fee9b01d472388e7ac3e374b57cc'}} 2025-10-13 02:31:39,365 - INFO - Created VN ctest-vn-29828627 2025-10-13 02:31:39,375 - DEBUG - VN ctest-vn-29828627 UUID is 6c79f24e-c29f-4053-8dd0-78b43b3e5e53 2025-10-13 02:31:39,753 - DEBUG - Response for create_network : {'network': {'id': '0c5476ac-b9d6-4f19-90b6-def2c53a0465', 'name': 'ctest-vn-78996567', 'tenant_id': '9077fee9b01d472388e7ac3e374b57cc', 'project_id': '9077fee9b01d472388e7ac3e374b57cc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29363827', 'ctest-vn-78996567'], 'port_security_enabled': True, 'description': ''}} 2025-10-13 02:31:39,949 - DEBUG - Response for create_subnet : {'subnet': {'id': '90e2a743-1cd3-4c67-99a9-2d729dc8f70f', 'name': '', 'tenant_id': '9077fee9b01d472388e7ac3e374b57cc', 'network_id': '0c5476ac-b9d6-4f19-90b6-def2c53a0465', 'ip_version': 4, 'cidr': '99.125.40.128/26', 'allocation_pools': [{'start': '99.125.40.130', 'end': '99.125.40.190'}], 'gateway_ip': '99.125.40.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.125.40.130', 'tags': [], 'project_id': '9077fee9b01d472388e7ac3e374b57cc'}} 2025-10-13 02:31:39,970 - INFO - Created VN ctest-vn-78996567 2025-10-13 02:31:39,980 - DEBUG - VN ctest-vn-78996567 UUID is 0c5476ac-b9d6-4f19-90b6-def2c53a0465 2025-10-13 02:31:40,062 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-29363827:ctest-vn-29828627, 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-29363827:ctest-vn-78996567, 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-13 02:31:40,379 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6c79f24e-c29f-4053-8dd0-78b43b3e5e53', 'name': 'ctest-vn-29828627', 'tenant_id': '9077fee9b01d472388e7ac3e374b57cc', 'project_id': '9077fee9b01d472388e7ac3e374b57cc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['234bfe0c-3780-4e78-ba46-30111eeebd10'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29363827', 'ctest-vn-29828627'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29363827', 'ctest-policy-allow-all-20523223']], 'subnet_ipam': [{'subnet_cidr': '58.77.73.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-13 02:31:40,634 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0c5476ac-b9d6-4f19-90b6-def2c53a0465', 'name': 'ctest-vn-78996567', 'tenant_id': '9077fee9b01d472388e7ac3e374b57cc', 'project_id': '9077fee9b01d472388e7ac3e374b57cc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['90e2a743-1cd3-4c67-99a9-2d729dc8f70f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29363827', 'ctest-vn-78996567'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29363827', 'ctest-policy-allow-all-20523223']], 'subnet_ipam': [{'subnet_cidr': '99.125.40.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-13 02:31:40,731 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-13 02:31:41,069 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-13 02:31:41,097 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3f9f083c-1111-458a-a630-ac922d5b730c 2025-10-13 02:31:41,109 - DEBUG - Requesting: http://10.0.0.22:8082/project/9077fee9-b01d-4723-88e7-ac3e374b57cc 2025-10-13 02:31:41,204 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/6c79f24e-c29f-4053-8dd0-78b43b3e5e53 2025-10-13 02:31:41,217 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/6c79f24e-c29f-4053-8dd0-78b43b3e5e53 2025-10-13 02:31:41,227 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/7fa57797-09e4-4cdd-8f5f-785b8b89d196 2025-10-13 02:31:41,235 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/7fa57797-09e4-4cdd-8f5f-785b8b89d196 2025-10-13 02:31:41,242 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/7cddcb1f-fb56-423f-86f1-e4bf24ccb965 2025-10-13 02:31:41,249 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-13 02:31:41,249 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/6c79f24e-c29f-4053-8dd0-78b43b3e5e53 2025-10-13 02:31:41,258 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/7fa57797-09e4-4cdd-8f5f-785b8b89d196 2025-10-13 02:31:41,272 - INFO - Verified VN network id 13 for VN 6c79f24e-c29f-4053-8dd0-78b43b3e5e53 2025-10-13 02:31:41,272 - INFO - Verifications in API Server for VN ctest-vn-29828627 passed 2025-10-13 02:31:41,272 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/6c79f24e-c29f-4053-8dd0-78b43b3e5e53 2025-10-13 02:31:41,282 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/7fa57797-09e4-4cdd-8f5f-785b8b89d196 2025-10-13 02:31:41,289 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/7fa57797-09e4-4cdd-8f5f-785b8b89d196 2025-10-13 02:31:41,295 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/7cddcb1f-fb56-423f-86f1-e4bf24ccb965 2025-10-13 02:31:41,314 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29363827:ctest-vn-29828627', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29363827', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7816545048364793939', 'uuid-lslong': '10218800269987044947'}, 'enable': 'true', 'created': '2025-10-13T02:31:39', 'last-modified': '2025-10-13T02:31:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.972514'} 2025-10-13 02:31:41,320 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-13 02:31:41,325 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29363827:ctest-vn-29828627', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29363827', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7816545048364793939', 'uuid-lslong': '10218800269987044947'}, 'enable': 'true', 'created': '2025-10-13T02:31:39', 'last-modified': '2025-10-13T02:31:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.983806'} 2025-10-13 02:31:41,331 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-13 02:31:41,337 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29363827:ctest-vn-29828627', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29363827', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7816545048364793939', 'uuid-lslong': '10218800269987044947'}, 'enable': 'true', 'created': '2025-10-13T02:31:39', 'last-modified': '2025-10-13T02:31:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.993552'} 2025-10-13 02:31:41,342 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-13 02:31:41,343 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-29828627 passed 2025-10-13 02:31:41,343 - DEBUG - ====Verifying policy data for ctest-vn-29828627 in API_Server ====== 2025-10-13 02:31:41,343 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-13 02:31:41,350 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3f9f083c-1111-458a-a630-ac922d5b730c 2025-10-13 02:31:41,363 - DEBUG - Requesting: http://10.0.0.22:8082/project/9077fee9-b01d-4723-88e7-ac3e374b57cc 2025-10-13 02:31:41,447 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/6c79f24e-c29f-4053-8dd0-78b43b3e5e53 2025-10-13 02:31:41,460 - DEBUG - ==>Verifying data for policy with id: 469fbe63-9dcc-47d1-8ccf-17c8123d658e, fqn: ['default-domain', 'ctest-TestBasicPolicy-29363827', 'ctest-policy-allow-all-20523223'] 2025-10-13 02:31:41,460 - INFO - VN ctest-vn-29828627 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-13 02:31:41,460 - DEBUG - Verifying the vn in opserver 2025-10-13 02:31:41,461 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29363827:ctest-vn-29828627 virtual network link through opserver 10.0.0.22 2025-10-13 02:31:41,461 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-10-13 02:31:41,754 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-10-13 02:31:41,805 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29363827:ctest-vn-29828627', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29363827:ctest-vn-29828627?flat'} 2025-10-13 02:31:41,805 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29363827:ctest-vn-29828627 virtual network link through opserver 10.0.0.19 2025-10-13 02:31:41,805 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-10-13 02:31:42,104 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-10-13 02:31:42,155 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29363827:ctest-vn-29828627', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29363827:ctest-vn-29828627?flat'} 2025-10-13 02:31:42,155 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29363827:ctest-vn-29828627 virtual network link through opserver 10.0.0.41 2025-10-13 02:31:42,155 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-10-13 02:31:42,447 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-10-13 02:31:42,505 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29363827:ctest-vn-29828627', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29363827:ctest-vn-29828627?flat'} 2025-10-13 02:31:42,505 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29363827:ctest-vn-29828627 is found in opserver 2025-10-13 02:31:42,527 - DEBUG - Do not have enough data to verify VN in agent 2025-10-13 02:31:42,537 - DEBUG - VRF ids for VN ctest-vn-29828627: {} 2025-10-13 02:31:42,537 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-13 02:31:42,547 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3f9f083c-1111-458a-a630-ac922d5b730c 2025-10-13 02:31:42,560 - DEBUG - Requesting: http://10.0.0.22:8082/project/9077fee9-b01d-4723-88e7-ac3e374b57cc 2025-10-13 02:31:42,657 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0c5476ac-b9d6-4f19-90b6-def2c53a0465 2025-10-13 02:31:42,671 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0c5476ac-b9d6-4f19-90b6-def2c53a0465 2025-10-13 02:31:42,679 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2c08607f-0726-4489-8f3e-e2841f2b71c9 2025-10-13 02:31:42,688 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2c08607f-0726-4489-8f3e-e2841f2b71c9 2025-10-13 02:31:42,694 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/836fcd40-ab60-49eb-aefa-6b1a80597d05 2025-10-13 02:31:42,700 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-13 02:31:42,700 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0c5476ac-b9d6-4f19-90b6-def2c53a0465 2025-10-13 02:31:42,707 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2c08607f-0726-4489-8f3e-e2841f2b71c9 2025-10-13 02:31:42,722 - INFO - Verified VN network id 14 for VN 0c5476ac-b9d6-4f19-90b6-def2c53a0465 2025-10-13 02:31:42,722 - INFO - Verifications in API Server for VN ctest-vn-78996567 passed 2025-10-13 02:31:42,722 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0c5476ac-b9d6-4f19-90b6-def2c53a0465 2025-10-13 02:31:42,733 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2c08607f-0726-4489-8f3e-e2841f2b71c9 2025-10-13 02:31:42,740 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2c08607f-0726-4489-8f3e-e2841f2b71c9 2025-10-13 02:31:42,747 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/836fcd40-ab60-49eb-aefa-6b1a80597d05 2025-10-13 02:31:42,759 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29363827:ctest-vn-78996567', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29363827', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '888465510723112729', 'uuid-lslong': '10427767121495327845'}, 'enable': 'true', 'created': '2025-10-13T02:31:39', 'last-modified': '2025-10-13T02:31:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.221232'} 2025-10-13 02:31:42,763 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-13 02:31:42,769 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29363827:ctest-vn-78996567', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29363827', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '888465510723112729', 'uuid-lslong': '10427767121495327845'}, 'enable': 'true', 'created': '2025-10-13T02:31:39', 'last-modified': '2025-10-13T02:31:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.238795'} 2025-10-13 02:31:42,776 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-13 02:31:42,782 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29363827:ctest-vn-78996567', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29363827', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '888465510723112729', 'uuid-lslong': '10427767121495327845'}, 'enable': 'true', 'created': '2025-10-13T02:31:39', 'last-modified': '2025-10-13T02:31:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.250939'} 2025-10-13 02:31:42,788 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-13 02:31:42,788 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78996567 passed 2025-10-13 02:31:42,788 - DEBUG - ====Verifying policy data for ctest-vn-78996567 in API_Server ====== 2025-10-13 02:31:42,788 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-13 02:31:42,795 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3f9f083c-1111-458a-a630-ac922d5b730c 2025-10-13 02:31:42,805 - DEBUG - Requesting: http://10.0.0.22:8082/project/9077fee9-b01d-4723-88e7-ac3e374b57cc 2025-10-13 02:31:42,907 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0c5476ac-b9d6-4f19-90b6-def2c53a0465 2025-10-13 02:31:42,917 - DEBUG - ==>Verifying data for policy with id: 469fbe63-9dcc-47d1-8ccf-17c8123d658e, fqn: ['default-domain', 'ctest-TestBasicPolicy-29363827', 'ctest-policy-allow-all-20523223'] 2025-10-13 02:31:42,917 - INFO - VN ctest-vn-78996567 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-13 02:31:42,917 - DEBUG - Verifying the vn in opserver 2025-10-13 02:31:42,917 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29363827:ctest-vn-78996567 virtual network link through opserver 10.0.0.22 2025-10-13 02:31:42,917 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-10-13 02:31:42,969 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29363827:ctest-vn-78996567', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29363827:ctest-vn-78996567?flat'} 2025-10-13 02:31:42,969 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29363827:ctest-vn-78996567 virtual network link through opserver 10.0.0.19 2025-10-13 02:31:42,969 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-10-13 02:31:43,021 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29363827:ctest-vn-78996567', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29363827:ctest-vn-78996567?flat'} 2025-10-13 02:31:43,021 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29363827:ctest-vn-78996567 virtual network link through opserver 10.0.0.41 2025-10-13 02:31:43,021 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-10-13 02:31:43,079 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29363827:ctest-vn-78996567', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29363827:ctest-vn-78996567?flat'} 2025-10-13 02:31:43,079 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29363827:ctest-vn-78996567 is found in opserver 2025-10-13 02:31:43,102 - DEBUG - Do not have enough data to verify VN in agent 2025-10-13 02:31:43,112 - DEBUG - VRF ids for VN ctest-vn-78996567: {} 2025-10-13 02:31:43,174 - DEBUG - Services list from nova: [, , , ] 2025-10-13 02:31:44,230 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4296-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4296-1) 2025-10-13 02:31:45,524 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4296-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4296-2) 2025-10-13 02:31:45,524 - INFO - Waiting for VM ctest-TestBasicPolicy-29363827-07743221 to be up.. 2025-10-13 02:31:45,617 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-10-13 02:31:50,722 - DEBUG - VM is in ACTIVE state now 2025-10-13 02:31:50,722 - INFO - VM name : ctest-TestBasicPolicy-29363827-07743221 2025-10-13 02:31:50,814 - DEBUG - VM ctest-TestBasicPolicy-29363827-07743221 ID is 52492318-28b5-4c3d-9857-cb43e340c32f 2025-10-13 02:31:50,838 - DEBUG - VM ctest-TestBasicPolicy-29363827-07743221 launched on Node an-jenkins-deploy-platform-ansible-os-4296-1 2025-10-13 02:31:50,921 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/52492318-28b5-4c3d-9857-cb43e340c32f 2025-10-13 02:31:51,225 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/52492318-28b5-4c3d-9857-cb43e340c32f 2025-10-13 02:31:51,255 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/9feea48b-c570-4360-a71c-e5e2b08f99c1 2025-10-13 02:31:54,428 - 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-10-13 02:31:54,428 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-29363827-07743221 failed! 2025-10-13 02:31:54,441 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-29363827:ctest-vn-29828627 is 58.77.73.193 and allocation pool is NOT set 2025-10-13 02:31:58,529 - 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-10-13 02:31:58,529 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-29363827-07743221 failed! 2025-10-13 02:31:58,543 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-29363827:ctest-vn-29828627 is 58.77.73.193 and allocation pool is NOT set 2025-10-13 02:32:02,629 - 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-10-13 02:32:02,629 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-29363827-07743221 failed! 2025-10-13 02:32:02,646 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-29363827:ctest-vn-29828627 is 58.77.73.193 and allocation pool is NOT set 2025-10-13 02:32:06,720 - 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 1015ms') 2025-10-13 02:32:06,720 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-29363827-07743221 failed! 2025-10-13 02:32:06,737 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-29363827:ctest-vn-29828627 is 58.77.73.193 and allocation pool is NOT set 2025-10-13 02:32:10,818 - 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-10-13 02:32:10,818 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-29363827-07743221 failed! 2025-10-13 02:32:10,831 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-29363827:ctest-vn-29828627 is 58.77.73.193 and allocation pool is NOT set 2025-10-13 02:32:14,916 - 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 1022ms') 2025-10-13 02:32:14,916 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-29363827-07743221 failed! 2025-10-13 02:32:14,930 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-29363827:ctest-vn-29828627 is 58.77.73.193 and allocation pool is NOT set 2025-10-13 02:32:19,006 - 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 1015ms') 2025-10-13 02:32:19,006 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-29363827-07743221 failed! 2025-10-13 02:32:19,019 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-29363827:ctest-vn-29828627 is 58.77.73.193 and allocation pool is NOT set 2025-10-13 02:32:23,098 - 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-10-13 02:32:23,098 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-29363827-07743221 failed! 2025-10-13 02:32:23,113 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-29363827:ctest-vn-29828627 is 58.77.73.193 and allocation pool is NOT set 2025-10-13 02:32:25,173 - 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=5.33 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.15 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 1.147/3.237/5.327/2.090 ms') 2025-10-13 02:32:25,173 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-29363827-07743221 passed 2025-10-13 02:32:25,240 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-13 02:32:25,240 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-29363827-07743221, IP 58.77.73.195, Port 22 2025-10-13 02:32:25,295 - 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-10-13 02:32:25,376 - DEBUG - VM ctest-TestBasicPolicy-29363827-07743221 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-13 02:32:30,376 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-13 02:32:30,376 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-29363827-07743221, IP 58.77.73.195, Port 22 2025-10-13 02:32:30,441 - 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-10-13 02:32:30,530 - DEBUG - VM ctest-TestBasicPolicy-29363827-07743221 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-13 02:32:35,531 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-13 02:32:35,531 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-29363827-07743221, IP 58.77.73.195, Port 22 2025-10-13 02:32:35,598 - 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-10-13 02:32:35,687 - DEBUG - VM ctest-TestBasicPolicy-29363827-07743221 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-13 02:32:40,687 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-13 02:32:40,687 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-29363827-07743221, IP 58.77.73.195, Port 22 2025-10-13 02:32:40,847 - DEBUG - VM ctest-TestBasicPolicy-29363827-07743221 is ready for SSH connections 2025-10-13 02:32:40,847 - INFO - Waiting for VM ctest-TestBasicPolicy-29363827-10049634 to be up.. 2025-10-13 02:32:40,921 - DEBUG - VM is in ACTIVE state now 2025-10-13 02:32:40,921 - INFO - VM name : ctest-TestBasicPolicy-29363827-10049634 2025-10-13 02:32:41,000 - DEBUG - VM ctest-TestBasicPolicy-29363827-10049634 ID is a91e857e-2187-4c58-90de-5598c1a3fdf7 2025-10-13 02:32:41,000 - DEBUG - VM ctest-TestBasicPolicy-29363827-10049634 launched on Node an-jenkins-deploy-platform-ansible-os-4296-2 2025-10-13 02:32:41,083 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/a91e857e-2187-4c58-90de-5598c1a3fdf7 2025-10-13 02:32:41,092 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/79ce3bc7-b94b-4eed-9068-0374cf8d3c1b 2025-10-13 02:32:42,253 - 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=3.27 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 2.793/3.029/3.265/0.236 ms') 2025-10-13 02:32:42,253 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-29363827-10049634 passed 2025-10-13 02:32:42,320 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-13 02:32:42,320 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-29363827-10049634, IP 99.125.40.131, Port 22 2025-10-13 02:32:42,386 - 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-10-13 02:32:42,466 - DEBUG - VM ctest-TestBasicPolicy-29363827-10049634 is NOT ready for SSH connections, VM status: ACTIVE 2025-10-13 02:32:47,466 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-13 02:32:47,467 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-29363827-10049634, IP 99.125.40.131, Port 22 2025-10-13 02:32:47,639 - DEBUG - VM ctest-TestBasicPolicy-29363827-10049634 is ready for SSH connections 2025-10-13 02:32:47,639 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-13 02:32:47,639 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 99.125.40.131, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.249, gateway password: c0ntrail123 2025-10-13 02:32:47,639 - DEBUG - ping -s 56 -c 3 -W 1 99.125.40.131 2025-10-13 02:33:06,177 - DEBUG - PING 99.125.40.131 (99.125.40.131) 56(84) bytes of data. 64 bytes from 99.125.40.131: icmp_req=1 ttl=63 time=6.61 ms 64 bytes from 99.125.40.131: icmp_req=2 ttl=63 time=1.05 ms 64 bytes from 99.125.40.131: icmp_req=3 ttl=63 time=1.38 ms --- 99.125.40.131 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms rtt min/avg/max/mdev = 1.051/3.017/6.619/2.550 ms 2025-10-13 02:33:06,178 - INFO - Ping to IP 99.125.40.131 from VM ctest-TestBasicPolicy-29363827-07743221 passed 2025-10-13 02:33:06,376 - DEBUG - Policy Update Response {"network-policy": {"uuid": "469fbe63-9dcc-47d1-8ccf-17c8123d658e", "href": "http://10.0.0.41:8082/network-policy/469fbe63-9dcc-47d1-8ccf-17c8123d658e"}} 2025-10-13 02:33:06,376 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-10-13 02:33:06,376 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 99.125.40.131, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.249, gateway password: c0ntrail123 2025-10-13 02:33:06,376 - DEBUG - ping -s 56 -c 3 -W 1 99.125.40.131 2025-10-13 02:33:09,837 - DEBUG - PING 99.125.40.131 (99.125.40.131) 56(84) bytes of data. 64 bytes from 99.125.40.131: icmp_req=1 ttl=63 time=4.21 ms --- 99.125.40.131 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2001ms rtt min/avg/max/mdev = 4.211/4.211/4.211/0.000 ms 2025-10-13 02:33:09,838 - WARNING - Ping to IP 99.125.40.131 from VM ctest-TestBasicPolicy-29363827-07743221 failed 2025-10-13 02:33:09,838 - INFO - Deleting VM ctest-TestBasicPolicy-29363827-10049634 2025-10-13 02:33:09,920 - INFO - Deleting VM ctest-TestBasicPolicy-29363827-07743221 2025-10-13 02:33:10,353 - INFO - Deleted policy ctest-policy-allow-all-20523223 2025-10-13 02:33:10,353 - INFO - Deleting VN ctest-vn-78996567 2025-10-13 02:33:10,395 - DEBUG - VN 0c5476ac-b9d6-4f19-90b6-def2c53a0465 still in use: Unable to complete operation on network 0c5476ac-b9d6-4f19-90b6-def2c53a0465. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b97e6367-2884-4ddb-a504-1ad6a394643d'] 2025-10-13 02:33:10,395 - WARNING - Deleting VN ctest-vn-78996567 failed..Will retry 2025-10-13 02:33:12,521 - DEBUG - Response for deleting network () 2025-10-13 02:33:12,521 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2c08607f-0726-4489-8f3e-e2841f2b71c9 2025-10-13 02:33:12,529 - DEBUG - Response Code: 404 2025-10-13 02:33:12,529 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-13 02:33:12,535 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3f9f083c-1111-458a-a630-ac922d5b730c 2025-10-13 02:33:12,553 - DEBUG - Requesting: http://10.0.0.22:8082/project/9077fee9-b01d-4723-88e7-ac3e374b57cc 2025-10-13 02:33:12,636 - INFO - Validated that VN ctest-vn-78996567 is not found in API Server 2025-10-13 02:33:12,647 - DEBUG - VN ctest-vn-78996567 is not present in Agent 10.0.0.249 2025-10-13 02:33:12,658 - DEBUG - VN ctest-vn-78996567 is not present in Agent 10.0.0.27 2025-10-13 02:33:12,658 - INFO - Validated that VN ctest-vn-78996567 is not in any agent 2025-10-13 02:33:12,688 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-78996567 info 2025-10-13 02:33:12,688 - INFO - Deleting VN ctest-vn-29828627 2025-10-13 02:33:12,828 - DEBUG - Response for deleting network () 2025-10-13 02:33:12,828 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/7fa57797-09e4-4cdd-8f5f-785b8b89d196 2025-10-13 02:33:12,833 - DEBUG - Response Code: 404 2025-10-13 02:33:12,833 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-13 02:33:12,840 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3f9f083c-1111-458a-a630-ac922d5b730c 2025-10-13 02:33:12,862 - DEBUG - Requesting: http://10.0.0.22:8082/project/9077fee9-b01d-4723-88e7-ac3e374b57cc 2025-10-13 02:33:12,953 - INFO - Validated that VN ctest-vn-29828627 is not found in API Server 2025-10-13 02:33:12,962 - DEBUG - VN ctest-vn-29828627 is not present in Agent 10.0.0.249 2025-10-13 02:33:12,971 - DEBUG - VN ctest-vn-29828627 is not present in Agent 10.0.0.27 2025-10-13 02:33:12,971 - INFO - Validated that VN ctest-vn-29828627 is not in any agent 2025-10-13 02:33:12,997 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-29828627 info 2025-10-13 02:33:14,265 - DEBUG - No XMPP flaps were noticed during the test 2025-10-13 02:33:14,265 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:37] 2025-10-13 02:33:14,265 - INFO - -------------------------------------------------------------------------------- 2025-10-13 02:33:14,960 - INFO - Deleted project: ctest-TestBasicPolicy-29363827, ID : 9077fee9-b01d-4723-88e7-ac3e374b57cc