2025-02-17 02:34:15,778 - INFO - Domain Default found not creating 2025-02-17 02:34:15,969 - INFO - Project ctest-TestBasicPolicy-82105322 not found, creating it 2025-02-17 02:34:16,466 - INFO - Created Project:ctest-TestBasicPolicy-82105322, ID : 0b253380-4c7c-4607-abaa-9eb4d795a0ef 2025-02-17 02:34:18,196 - INFO - ================================================================================ 2025-02-17 02:34:18,196 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-02-17 02:34:18,196 - 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-02-17 02:34:18,459 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.0.0.30': '0'}} with 2025-02-17 02:34:18,459 - INFO - Initial checks done. Running the testcase now 2025-02-17 02:34:18,459 - INFO - 2025-02-17 02:34:19,097 - DEBUG - Response for create_network : {'network': {'id': '6fbaaa46-354e-4066-ab72-bf70217da500', 'name': 'ctest-vn-70707484', 'tenant_id': '0b2533804c7c4607abaa9eb4d795a0ef', 'project_id': '0b2533804c7c4607abaa9eb4d795a0ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82105322', 'ctest-vn-70707484'], 'port_security_enabled': True, 'description': ''}} 2025-02-17 02:34:19,271 - DEBUG - Response for create_subnet : {'subnet': {'id': '2a3b103e-e2f5-4737-91ef-6dd4e20d85ec', 'name': '', 'tenant_id': '0b2533804c7c4607abaa9eb4d795a0ef', 'network_id': '6fbaaa46-354e-4066-ab72-bf70217da500', 'ip_version': 4, 'cidr': '173.251.103.192/26', 'allocation_pools': [{'start': '173.251.103.194', 'end': '173.251.103.254'}], 'gateway_ip': '173.251.103.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.251.103.194', 'tags': [], 'project_id': '0b2533804c7c4607abaa9eb4d795a0ef'}} 2025-02-17 02:34:19,297 - INFO - Created VN ctest-vn-70707484 2025-02-17 02:34:19,356 - DEBUG - VN ctest-vn-70707484 UUID is 6fbaaa46-354e-4066-ab72-bf70217da500 2025-02-17 02:34:19,707 - DEBUG - Response for create_network : {'network': {'id': '40e3c271-231e-433f-9efa-3a196859539e', 'name': 'ctest-vn-12587957', 'tenant_id': '0b2533804c7c4607abaa9eb4d795a0ef', 'project_id': '0b2533804c7c4607abaa9eb4d795a0ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82105322', 'ctest-vn-12587957'], 'port_security_enabled': True, 'description': ''}} 2025-02-17 02:34:19,907 - DEBUG - Response for create_subnet : {'subnet': {'id': '0acf075f-5010-4c3e-8bfa-b57b74e9a5aa', 'name': '', 'tenant_id': '0b2533804c7c4607abaa9eb4d795a0ef', 'network_id': '40e3c271-231e-433f-9efa-3a196859539e', 'ip_version': 4, 'cidr': '9.238.241.192/26', 'allocation_pools': [{'start': '9.238.241.194', 'end': '9.238.241.254'}], 'gateway_ip': '9.238.241.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '9.238.241.194', 'tags': [], 'project_id': '0b2533804c7c4607abaa9eb4d795a0ef'}} 2025-02-17 02:34:19,929 - INFO - Created VN ctest-vn-12587957 2025-02-17 02:34:19,984 - DEBUG - VN ctest-vn-12587957 UUID is 40e3c271-231e-433f-9efa-3a196859539e 2025-02-17 02:34:20,112 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-82105322:ctest-vn-70707484, 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-82105322:ctest-vn-12587957, 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-02-17 02:34:20,438 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6fbaaa46-354e-4066-ab72-bf70217da500', 'name': 'ctest-vn-70707484', 'tenant_id': '0b2533804c7c4607abaa9eb4d795a0ef', 'project_id': '0b2533804c7c4607abaa9eb4d795a0ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2a3b103e-e2f5-4737-91ef-6dd4e20d85ec'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82105322', 'ctest-vn-70707484'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82105322', 'ctest-policy-allow-all-58066366']], 'subnet_ipam': [{'subnet_cidr': '173.251.103.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-17 02:34:20,696 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '40e3c271-231e-433f-9efa-3a196859539e', 'name': 'ctest-vn-12587957', 'tenant_id': '0b2533804c7c4607abaa9eb4d795a0ef', 'project_id': '0b2533804c7c4607abaa9eb4d795a0ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0acf075f-5010-4c3e-8bfa-b57b74e9a5aa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82105322', 'ctest-vn-12587957'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82105322', 'ctest-policy-allow-all-58066366']], 'subnet_ipam': [{'subnet_cidr': '9.238.241.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-17 02:34:20,880 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-02-17 02:34:21,219 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-02-17 02:34:21,253 - DEBUG - Requesting: http://10.0.0.30:8082/domain/ee412809-653a-4520-9e1b-53b96c651b7e 2025-02-17 02:34:21,270 - DEBUG - Requesting: http://10.0.0.30:8082/project/0b253380-4c7c-4607-abaa-9eb4d795a0ef 2025-02-17 02:34:21,350 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/6fbaaa46-354e-4066-ab72-bf70217da500 2025-02-17 02:34:21,364 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/6fbaaa46-354e-4066-ab72-bf70217da500 2025-02-17 02:34:21,376 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/599c761e-0dfc-48dc-bc62-40d676820245 2025-02-17 02:34:21,386 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/599c761e-0dfc-48dc-bc62-40d676820245 2025-02-17 02:34:21,395 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/17bfde61-f1df-4843-9854-8c8d6a0c9a51 2025-02-17 02:34:21,404 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-02-17 02:34:21,404 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/6fbaaa46-354e-4066-ab72-bf70217da500 2025-02-17 02:34:21,417 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/599c761e-0dfc-48dc-bc62-40d676820245 2025-02-17 02:34:21,435 - INFO - Verified VN network id 7 for VN 6fbaaa46-354e-4066-ab72-bf70217da500 2025-02-17 02:34:21,435 - INFO - Verifications in API Server for VN ctest-vn-70707484 passed 2025-02-17 02:34:21,436 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/6fbaaa46-354e-4066-ab72-bf70217da500 2025-02-17 02:34:21,447 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/599c761e-0dfc-48dc-bc62-40d676820245 2025-02-17 02:34:21,456 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/599c761e-0dfc-48dc-bc62-40d676820245 2025-02-17 02:34:21,464 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/17bfde61-f1df-4843-9854-8c8d6a0c9a51 2025-02-17 02:34:21,479 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82105322:ctest-vn-70707484', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82105322', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8050934502396936294', 'uuid-lslong': '12354147216149816576'}, 'enable': 'true', 'created': '2025-02-17T02:34:19', 'last-modified': '2025-02-17T02:34:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.064275'} 2025-02-17 02:34:21,486 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-02-17 02:34:21,486 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70707484 passed 2025-02-17 02:34:21,487 - DEBUG - ====Verifying policy data for ctest-vn-70707484 in API_Server ====== 2025-02-17 02:34:21,487 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-02-17 02:34:21,493 - DEBUG - Requesting: http://10.0.0.30:8082/domain/ee412809-653a-4520-9e1b-53b96c651b7e 2025-02-17 02:34:21,506 - DEBUG - Requesting: http://10.0.0.30:8082/project/0b253380-4c7c-4607-abaa-9eb4d795a0ef 2025-02-17 02:34:21,589 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/6fbaaa46-354e-4066-ab72-bf70217da500 2025-02-17 02:34:21,602 - DEBUG - ==>Verifying data for policy with id: 19f9a507-356a-45f3-8eb2-a24b3ba8ab96, fqn: ['default-domain', 'ctest-TestBasicPolicy-82105322', 'ctest-policy-allow-all-58066366'] 2025-02-17 02:34:21,602 - INFO - VN ctest-vn-70707484 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-17 02:34:21,602 - DEBUG - Verifying the vn in opserver 2025-02-17 02:34:21,602 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82105322:ctest-vn-70707484 virtual network link through opserver 10.0.0.30 2025-02-17 02:34:21,602 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2025-02-17 02:34:21,944 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2025-02-17 02:34:22,013 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82105322:ctest-vn-70707484', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82105322:ctest-vn-70707484?flat'} 2025-02-17 02:34:22,013 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82105322:ctest-vn-70707484 is found in opserver 2025-02-17 02:34:22,027 - DEBUG - Do not have enough data to verify VN in agent 2025-02-17 02:34:22,033 - DEBUG - VRF ids for VN ctest-vn-70707484: {} 2025-02-17 02:34:22,033 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-02-17 02:34:22,040 - DEBUG - Requesting: http://10.0.0.30:8082/domain/ee412809-653a-4520-9e1b-53b96c651b7e 2025-02-17 02:34:22,055 - DEBUG - Requesting: http://10.0.0.30:8082/project/0b253380-4c7c-4607-abaa-9eb4d795a0ef 2025-02-17 02:34:22,133 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/40e3c271-231e-433f-9efa-3a196859539e 2025-02-17 02:34:22,148 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/40e3c271-231e-433f-9efa-3a196859539e 2025-02-17 02:34:22,160 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/018041d6-7905-4752-ad07-487180c289c5 2025-02-17 02:34:22,170 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/018041d6-7905-4752-ad07-487180c289c5 2025-02-17 02:34:22,180 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/fae673b3-669b-4948-8788-20e01aa51b4f 2025-02-17 02:34:22,189 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-17 02:34:22,190 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/40e3c271-231e-433f-9efa-3a196859539e 2025-02-17 02:34:22,203 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/018041d6-7905-4752-ad07-487180c289c5 2025-02-17 02:34:22,221 - INFO - Verified VN network id 8 for VN 40e3c271-231e-433f-9efa-3a196859539e 2025-02-17 02:34:22,221 - INFO - Verifications in API Server for VN ctest-vn-12587957 passed 2025-02-17 02:34:22,221 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/40e3c271-231e-433f-9efa-3a196859539e 2025-02-17 02:34:22,234 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/018041d6-7905-4752-ad07-487180c289c5 2025-02-17 02:34:22,244 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/018041d6-7905-4752-ad07-487180c289c5 2025-02-17 02:34:22,252 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/fae673b3-669b-4948-8788-20e01aa51b4f 2025-02-17 02:34:22,267 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82105322:ctest-vn-12587957', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82105322', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4675794629316985663', 'uuid-lslong': '11455532482969555870'}, 'enable': 'true', 'created': '2025-02-17T02:34:19', 'last-modified': '2025-02-17T02:34:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.607174'} 2025-02-17 02:34:22,274 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-17 02:34:22,274 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12587957 passed 2025-02-17 02:34:22,275 - DEBUG - ====Verifying policy data for ctest-vn-12587957 in API_Server ====== 2025-02-17 02:34:22,275 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-02-17 02:34:22,281 - DEBUG - Requesting: http://10.0.0.30:8082/domain/ee412809-653a-4520-9e1b-53b96c651b7e 2025-02-17 02:34:22,296 - DEBUG - Requesting: http://10.0.0.30:8082/project/0b253380-4c7c-4607-abaa-9eb4d795a0ef 2025-02-17 02:34:22,384 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/40e3c271-231e-433f-9efa-3a196859539e 2025-02-17 02:34:22,397 - DEBUG - ==>Verifying data for policy with id: 19f9a507-356a-45f3-8eb2-a24b3ba8ab96, fqn: ['default-domain', 'ctest-TestBasicPolicy-82105322', 'ctest-policy-allow-all-58066366'] 2025-02-17 02:34:22,397 - INFO - VN ctest-vn-12587957 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-17 02:34:22,397 - DEBUG - Verifying the vn in opserver 2025-02-17 02:34:22,397 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82105322:ctest-vn-12587957 virtual network link through opserver 10.0.0.30 2025-02-17 02:34:22,397 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2025-02-17 02:34:22,410 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82105322:ctest-vn-12587957', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82105322:ctest-vn-12587957?flat'} 2025-02-17 02:34:22,410 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82105322:ctest-vn-12587957 is found in opserver 2025-02-17 02:34:22,423 - DEBUG - Do not have enough data to verify VN in agent 2025-02-17 02:34:22,429 - DEBUG - VRF ids for VN ctest-vn-12587957: {} 2025-02-17 02:34:22,495 - DEBUG - Services list from nova: [, , ] 2025-02-17 02:34:23,641 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2742-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2742-1) 2025-02-17 02:34:25,044 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2742-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2742-1) 2025-02-17 02:34:25,044 - INFO - Waiting for VM ctest-TestBasicPolicy-82105322-01903935 to be up.. 2025-02-17 02:34:25,143 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-02-17 02:34:30,232 - DEBUG - VM is in ACTIVE state now 2025-02-17 02:34:30,232 - INFO - VM name : ctest-TestBasicPolicy-82105322-01903935 2025-02-17 02:34:30,325 - DEBUG - VM ctest-TestBasicPolicy-82105322-01903935 ID is 27dd9a71-ac2b-4860-a1dc-92845833ac9a 2025-02-17 02:34:30,347 - DEBUG - VM ctest-TestBasicPolicy-82105322-01903935 launched on Node cn-jenkins-deploy-platform-ansible-os-2742-1. 2025-02-17 02:34:30,440 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/27dd9a71-ac2b-4860-a1dc-92845833ac9a 2025-02-17 02:34:30,453 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/fdd3c588-afa7-4bc4-be90-50c230cbc4d2 2025-02-17 02:34:33,744 - 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-02-17 02:34:33,745 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-82105322-01903935 failed! 2025-02-17 02:34:33,800 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-82105322:ctest-vn-70707484 is 173.251.103.193 and allocation pool is NOT set 2025-02-17 02:34:35,865 - 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=15.2 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.46 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.456/8.838/15.220/6.382 ms') 2025-02-17 02:34:35,865 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-82105322-01903935 passed 2025-02-17 02:34:36,040 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-17 02:34:36,040 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-82105322-01903935, IP 173.251.103.195, Port 22 2025-02-17 02:34:36,214 - DEBUG - VM ctest-TestBasicPolicy-82105322-01903935 is ready for SSH connections 2025-02-17 02:34:36,214 - INFO - Waiting for VM ctest-TestBasicPolicy-82105322-59352555 to be up.. 2025-02-17 02:34:36,316 - DEBUG - VM is in ACTIVE state now 2025-02-17 02:34:36,316 - INFO - VM name : ctest-TestBasicPolicy-82105322-59352555 2025-02-17 02:34:36,418 - DEBUG - VM ctest-TestBasicPolicy-82105322-59352555 ID is 83b93f31-20bf-4507-9107-d8288b3093d8 2025-02-17 02:34:36,419 - DEBUG - VM ctest-TestBasicPolicy-82105322-59352555 launched on Node cn-jenkins-deploy-platform-ansible-os-2742-1. 2025-02-17 02:34:36,504 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/83b93f31-20bf-4507-9107-d8288b3093d8 2025-02-17 02:34:36,517 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/c7eec467-41e4-43a1-9254-41138382fd91 2025-02-17 02:34:37,763 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=4.46 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.59 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 1.586/3.024/4.462/1.438 ms') 2025-02-17 02:34:37,763 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-82105322-59352555 passed 2025-02-17 02:34:37,916 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-17 02:34:37,916 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-82105322-59352555, IP 9.238.241.195, Port 22 2025-02-17 02:34:37,982 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-02-17 02:34:38,062 - DEBUG - VM ctest-TestBasicPolicy-82105322-59352555 is NOT ready for SSH connections, VM status: ACTIVE 2025-02-17 02:34:43,063 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-17 02:34:43,063 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-82105322-59352555, IP 9.238.241.195, Port 22 2025-02-17 02:34:43,223 - DEBUG - VM ctest-TestBasicPolicy-82105322-59352555 is ready for SSH connections 2025-02-17 02:34:43,224 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-17 02:34:43,224 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 9.238.241.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.30, gateway password: c0ntrail123 2025-02-17 02:34:43,224 - DEBUG - ping -s 56 -c 3 -W 1 9.238.241.195 2025-02-17 02:34:47,556 - DEBUG - PING 9.238.241.195 (9.238.241.195): 56 data bytes 64 bytes from 9.238.241.195: seq=0 ttl=63 time=4.976 ms 64 bytes from 9.238.241.195: seq=1 ttl=63 time=1.052 ms 64 bytes from 9.238.241.195: seq=2 ttl=63 time=0.830 ms --- 9.238.241.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.830/2.286/4.976 ms 2025-02-17 02:34:47,556 - INFO - Ping to IP 9.238.241.195 from VM ctest-TestBasicPolicy-82105322-01903935 passed 2025-02-17 02:34:47,744 - DEBUG - Policy Update Response {"network-policy": {"uuid": "19f9a507-356a-45f3-8eb2-a24b3ba8ab96", "href": "http://10.0.0.30:8082/network-policy/19f9a507-356a-45f3-8eb2-a24b3ba8ab96"}} 2025-02-17 02:34:47,744 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-17 02:34:47,744 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 9.238.241.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.30, gateway password: c0ntrail123 2025-02-17 02:34:47,744 - DEBUG - ping -s 56 -c 3 -W 1 9.238.241.195 2025-02-17 02:34:50,981 - DEBUG - PING 9.238.241.195 (9.238.241.195): 56 data bytes 64 bytes from 9.238.241.195: seq=0 ttl=63 time=1.486 ms --- 9.238.241.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.486/1.486/1.486 ms 2025-02-17 02:34:50,982 - WARNING - Ping to IP 9.238.241.195 from VM ctest-TestBasicPolicy-82105322-01903935 failed 2025-02-17 02:34:50,982 - INFO - Deleting VM ctest-TestBasicPolicy-82105322-59352555 2025-02-17 02:34:51,061 - INFO - Deleting VM ctest-TestBasicPolicy-82105322-01903935 2025-02-17 02:34:51,563 - INFO - Deleted policy ctest-policy-allow-all-58066366 2025-02-17 02:34:51,563 - INFO - Deleting VN ctest-vn-12587957 2025-02-17 02:34:51,617 - DEBUG - VN 40e3c271-231e-433f-9efa-3a196859539e still in use: Unable to complete operation on network 40e3c271-231e-433f-9efa-3a196859539e. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-70ba7dea-77a8-4b8c-b495-ed7247ec12de'] 2025-02-17 02:34:51,617 - WARNING - Deleting VN ctest-vn-12587957 failed..Will retry 2025-02-17 02:34:53,730 - DEBUG - Response for deleting network () 2025-02-17 02:34:53,730 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/018041d6-7905-4752-ad07-487180c289c5 2025-02-17 02:34:53,741 - DEBUG - Response Code: 404 2025-02-17 02:34:53,741 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-02-17 02:34:53,749 - DEBUG - Requesting: http://10.0.0.30:8082/domain/ee412809-653a-4520-9e1b-53b96c651b7e 2025-02-17 02:34:53,806 - DEBUG - Requesting: http://10.0.0.30:8082/project/0b253380-4c7c-4607-abaa-9eb4d795a0ef 2025-02-17 02:34:53,881 - INFO - Validated that VN ctest-vn-12587957 is not found in API Server 2025-02-17 02:34:53,893 - DEBUG - VN ctest-vn-12587957 is not present in Agent 10.0.0.30 2025-02-17 02:34:53,893 - INFO - Validated that VN ctest-vn-12587957 is not in any agent 2025-02-17 02:34:53,911 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-12587957 info 2025-02-17 02:34:53,911 - INFO - Deleting VN ctest-vn-70707484 2025-02-17 02:34:54,024 - DEBUG - Response for deleting network () 2025-02-17 02:34:54,024 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/599c761e-0dfc-48dc-bc62-40d676820245 2025-02-17 02:34:54,033 - DEBUG - Response Code: 404 2025-02-17 02:34:54,033 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-02-17 02:34:54,039 - DEBUG - Requesting: http://10.0.0.30:8082/domain/ee412809-653a-4520-9e1b-53b96c651b7e 2025-02-17 02:34:54,094 - DEBUG - Requesting: http://10.0.0.30:8082/project/0b253380-4c7c-4607-abaa-9eb4d795a0ef 2025-02-17 02:34:54,170 - INFO - Validated that VN ctest-vn-70707484 is not found in API Server 2025-02-17 02:34:54,182 - DEBUG - VN ctest-vn-70707484 is not present in Agent 10.0.0.30 2025-02-17 02:34:54,182 - INFO - Validated that VN ctest-vn-70707484 is not in any agent 2025-02-17 02:34:54,198 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-70707484 info 2025-02-17 02:34:54,455 - DEBUG - No XMPP flaps were noticed during the test 2025-02-17 02:34:54,455 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2025-02-17 02:34:54,455 - INFO - -------------------------------------------------------------------------------- 2025-02-17 02:34:55,182 - INFO - Deleted project: ctest-TestBasicPolicy-82105322, ID : 0b253380-4c7c-4607-abaa-9eb4d795a0ef