2025-04-09 16:55:22,455 - INFO - Domain Default found not creating 2025-04-09 16:55:22,702 - INFO - Project ctest-TestBasicPolicy-91602549 not found, creating it 2025-04-09 16:55:23,340 - INFO - Created Project:ctest-TestBasicPolicy-91602549, ID : b9e85ea9-94e8-4de6-b6e7-ac745a88776b 2025-04-09 16:55:25,495 - INFO - ================================================================================ 2025-04-09 16:55:25,496 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-09 16:55:25,497 - 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-04-09 16:55:25,821 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-04-09 16:55:25,822 - INFO - Initial checks done. Running the testcase now 2025-04-09 16:55:25,822 - INFO - 2025-04-09 16:55:26,650 - DEBUG - Response for create_network : {'network': {'id': '7edc4991-449f-44e5-a22f-a3a06557257b', 'name': 'ctest-vn-24566190', 'tenant_id': 'b9e85ea994e84de6b6e7ac745a88776b', 'project_id': 'b9e85ea994e84de6b6e7ac745a88776b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91602549', 'ctest-vn-24566190'], 'port_security_enabled': True, 'description': ''}} 2025-04-09 16:55:26,962 - DEBUG - Response for create_subnet : {'subnet': {'id': '9b6fb413-62df-47ac-a511-4e143f4db339', 'name': '', 'tenant_id': 'b9e85ea994e84de6b6e7ac745a88776b', 'network_id': '7edc4991-449f-44e5-a22f-a3a06557257b', 'ip_version': 4, 'cidr': '186.237.158.0/26', 'allocation_pools': [{'start': '186.237.158.2', 'end': '186.237.158.62'}], 'gateway_ip': '186.237.158.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '186.237.158.2', 'tags': [], 'project_id': 'b9e85ea994e84de6b6e7ac745a88776b'}} 2025-04-09 16:55:26,995 - INFO - Created VN ctest-vn-24566190 2025-04-09 16:55:27,049 - DEBUG - VN ctest-vn-24566190 UUID is 7edc4991-449f-44e5-a22f-a3a06557257b 2025-04-09 16:55:27,508 - DEBUG - Response for create_network : {'network': {'id': '32240925-6f1c-482c-b839-98c99ac68fee', 'name': 'ctest-vn-36140146', 'tenant_id': 'b9e85ea994e84de6b6e7ac745a88776b', 'project_id': 'b9e85ea994e84de6b6e7ac745a88776b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91602549', 'ctest-vn-36140146'], 'port_security_enabled': True, 'description': ''}} 2025-04-09 16:55:27,745 - DEBUG - Response for create_subnet : {'subnet': {'id': '67b453c3-9503-4fa6-8393-903b5593994c', 'name': '', 'tenant_id': 'b9e85ea994e84de6b6e7ac745a88776b', 'network_id': '32240925-6f1c-482c-b839-98c99ac68fee', 'ip_version': 4, 'cidr': '82.31.179.0/26', 'allocation_pools': [{'start': '82.31.179.2', 'end': '82.31.179.62'}], 'gateway_ip': '82.31.179.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '82.31.179.2', 'tags': [], 'project_id': 'b9e85ea994e84de6b6e7ac745a88776b'}} 2025-04-09 16:55:27,767 - INFO - Created VN ctest-vn-36140146 2025-04-09 16:55:27,824 - DEBUG - VN ctest-vn-36140146 UUID is 32240925-6f1c-482c-b839-98c99ac68fee 2025-04-09 16:55:28,031 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-91602549:ctest-vn-24566190, 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-91602549:ctest-vn-36140146, 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-04-09 16:55:28,500 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7edc4991-449f-44e5-a22f-a3a06557257b', 'name': 'ctest-vn-24566190', 'tenant_id': 'b9e85ea994e84de6b6e7ac745a88776b', 'project_id': 'b9e85ea994e84de6b6e7ac745a88776b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9b6fb413-62df-47ac-a511-4e143f4db339'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91602549', 'ctest-vn-24566190'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91602549', 'ctest-policy-allow-all-19218703']], 'subnet_ipam': [{'subnet_cidr': '186.237.158.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-09 16:55:28,880 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '32240925-6f1c-482c-b839-98c99ac68fee', 'name': 'ctest-vn-36140146', 'tenant_id': 'b9e85ea994e84de6b6e7ac745a88776b', 'project_id': 'b9e85ea994e84de6b6e7ac745a88776b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['67b453c3-9503-4fa6-8393-903b5593994c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91602549', 'ctest-vn-36140146'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91602549', 'ctest-policy-allow-all-19218703']], 'subnet_ipam': [{'subnet_cidr': '82.31.179.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-09 16:55:29,049 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-09 16:55:29,414 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-09 16:55:29,458 - DEBUG - Requesting: http://10.0.0.254:8082/domain/95f60655-3a70-4c88-b7be-750614e898bf 2025-04-09 16:55:29,482 - DEBUG - Requesting: http://10.0.0.254:8082/project/b9e85ea9-94e8-4de6-b6e7-ac745a88776b 2025-04-09 16:55:29,615 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7edc4991-449f-44e5-a22f-a3a06557257b 2025-04-09 16:55:29,653 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7edc4991-449f-44e5-a22f-a3a06557257b 2025-04-09 16:55:29,680 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6ed452e5-597f-4427-a394-ac7f6f14b2d1 2025-04-09 16:55:29,697 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6ed452e5-597f-4427-a394-ac7f6f14b2d1 2025-04-09 16:55:29,711 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/046b8fb3-1eab-4ffa-aeed-8544e1be5ca3 2025-04-09 16:55:29,725 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-09 16:55:29,725 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7edc4991-449f-44e5-a22f-a3a06557257b 2025-04-09 16:55:29,747 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6ed452e5-597f-4427-a394-ac7f6f14b2d1 2025-04-09 16:55:29,777 - INFO - Verified VN network id 8 for VN 7edc4991-449f-44e5-a22f-a3a06557257b 2025-04-09 16:55:29,777 - INFO - Verifications in API Server for VN ctest-vn-24566190 passed 2025-04-09 16:55:29,777 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7edc4991-449f-44e5-a22f-a3a06557257b 2025-04-09 16:55:29,797 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6ed452e5-597f-4427-a394-ac7f6f14b2d1 2025-04-09 16:55:29,813 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6ed452e5-597f-4427-a394-ac7f6f14b2d1 2025-04-09 16:55:29,828 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/046b8fb3-1eab-4ffa-aeed-8544e1be5ca3 2025-04-09 16:55:29,854 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91602549:ctest-vn-24566190', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91602549', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9141262231925638373', 'uuid-lslong': '11686739467340031355'}, 'enable': 'true', 'created': '2025-04-09T16:55:26', 'last-modified': '2025-04-09T16:55:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.395239'} 2025-04-09 16:55:29,868 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-09 16:55:29,868 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24566190 passed 2025-04-09 16:55:29,869 - DEBUG - ====Verifying policy data for ctest-vn-24566190 in API_Server ====== 2025-04-09 16:55:29,869 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-09 16:55:29,881 - DEBUG - Requesting: http://10.0.0.254:8082/domain/95f60655-3a70-4c88-b7be-750614e898bf 2025-04-09 16:55:29,909 - DEBUG - Requesting: http://10.0.0.254:8082/project/b9e85ea9-94e8-4de6-b6e7-ac745a88776b 2025-04-09 16:55:30,032 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7edc4991-449f-44e5-a22f-a3a06557257b 2025-04-09 16:55:30,067 - DEBUG - ==>Verifying data for policy with id: 15fb073a-9516-42e5-860b-1bc33ed096f2, fqn: ['default-domain', 'ctest-TestBasicPolicy-91602549', 'ctest-policy-allow-all-19218703'] 2025-04-09 16:55:30,067 - INFO - VN ctest-vn-24566190 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-09 16:55:30,067 - DEBUG - Verifying the vn in opserver 2025-04-09 16:55:30,067 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91602549:ctest-vn-24566190 virtual network link through opserver 10.0.0.254 2025-04-09 16:55:30,068 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-09 16:55:30,426 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-09 16:55:30,532 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91602549:ctest-vn-24566190', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91602549:ctest-vn-24566190?flat'} 2025-04-09 16:55:30,532 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91602549:ctest-vn-24566190 is found in opserver 2025-04-09 16:55:30,550 - DEBUG - Do not have enough data to verify VN in agent 2025-04-09 16:55:30,558 - DEBUG - VRF ids for VN ctest-vn-24566190: {} 2025-04-09 16:55:30,558 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-09 16:55:30,566 - DEBUG - Requesting: http://10.0.0.254:8082/domain/95f60655-3a70-4c88-b7be-750614e898bf 2025-04-09 16:55:30,582 - DEBUG - Requesting: http://10.0.0.254:8082/project/b9e85ea9-94e8-4de6-b6e7-ac745a88776b 2025-04-09 16:55:30,688 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/32240925-6f1c-482c-b839-98c99ac68fee 2025-04-09 16:55:30,710 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/32240925-6f1c-482c-b839-98c99ac68fee 2025-04-09 16:55:30,730 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/634445e3-c35d-4f18-b4bf-d1da2b8105a3 2025-04-09 16:55:30,745 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/634445e3-c35d-4f18-b4bf-d1da2b8105a3 2025-04-09 16:55:30,759 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/bf938f1f-a593-41ec-adb1-645cea38c25a 2025-04-09 16:55:30,771 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-09 16:55:30,771 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/32240925-6f1c-482c-b839-98c99ac68fee 2025-04-09 16:55:30,786 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/634445e3-c35d-4f18-b4bf-d1da2b8105a3 2025-04-09 16:55:30,810 - INFO - Verified VN network id 9 for VN 32240925-6f1c-482c-b839-98c99ac68fee 2025-04-09 16:55:30,810 - INFO - Verifications in API Server for VN ctest-vn-36140146 passed 2025-04-09 16:55:30,810 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/32240925-6f1c-482c-b839-98c99ac68fee 2025-04-09 16:55:30,829 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/634445e3-c35d-4f18-b4bf-d1da2b8105a3 2025-04-09 16:55:30,843 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/634445e3-c35d-4f18-b4bf-d1da2b8105a3 2025-04-09 16:55:30,856 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/bf938f1f-a593-41ec-adb1-645cea38c25a 2025-04-09 16:55:30,879 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91602549:ctest-vn-36140146', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91602549', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3613022857440544812', 'uuid-lslong': '13274809368303800302'}, 'enable': 'true', 'created': '2025-04-09T16:55:27', 'last-modified': '2025-04-09T16:55:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.050233'} 2025-04-09 16:55:30,890 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-09 16:55:30,890 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36140146 passed 2025-04-09 16:55:30,891 - DEBUG - ====Verifying policy data for ctest-vn-36140146 in API_Server ====== 2025-04-09 16:55:30,891 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-09 16:55:30,900 - DEBUG - Requesting: http://10.0.0.254:8082/domain/95f60655-3a70-4c88-b7be-750614e898bf 2025-04-09 16:55:30,916 - DEBUG - Requesting: http://10.0.0.254:8082/project/b9e85ea9-94e8-4de6-b6e7-ac745a88776b 2025-04-09 16:55:31,023 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/32240925-6f1c-482c-b839-98c99ac68fee 2025-04-09 16:55:31,041 - DEBUG - ==>Verifying data for policy with id: 15fb073a-9516-42e5-860b-1bc33ed096f2, fqn: ['default-domain', 'ctest-TestBasicPolicy-91602549', 'ctest-policy-allow-all-19218703'] 2025-04-09 16:55:31,041 - INFO - VN ctest-vn-36140146 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-09 16:55:31,041 - DEBUG - Verifying the vn in opserver 2025-04-09 16:55:31,041 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91602549:ctest-vn-36140146 virtual network link through opserver 10.0.0.254 2025-04-09 16:55:31,041 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-09 16:55:31,056 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91602549:ctest-vn-36140146', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91602549:ctest-vn-36140146?flat'} 2025-04-09 16:55:31,056 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91602549:ctest-vn-36140146 is found in opserver 2025-04-09 16:55:31,068 - DEBUG - Do not have enough data to verify VN in agent 2025-04-09 16:55:31,074 - DEBUG - VRF ids for VN ctest-vn-36140146: {} 2025-04-09 16:55:31,142 - DEBUG - Services list from nova: [, , ] 2025-04-09 16:55:32,478 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3072-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3072-1) 2025-04-09 16:55:33,909 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3072-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3072-1) 2025-04-09 16:55:33,910 - INFO - Waiting for VM ctest-TestBasicPolicy-91602549-18961727 to be up.. 2025-04-09 16:55:34,003 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-09 16:55:39,220 - DEBUG - VM is in ACTIVE state now 2025-04-09 16:55:39,221 - INFO - VM name : ctest-TestBasicPolicy-91602549-18961727 2025-04-09 16:55:39,414 - DEBUG - VM ctest-TestBasicPolicy-91602549-18961727 ID is 6e474c70-e9a6-4164-abad-408b5b239c9d 2025-04-09 16:55:39,465 - DEBUG - VM ctest-TestBasicPolicy-91602549-18961727 launched on Node cn-jenkins-deploy-platform-ansible-os-3072-1 2025-04-09 16:55:39,605 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/6e474c70-e9a6-4164-abad-408b5b239c9d 2025-04-09 16:55:39,623 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/72c05773-0018-430b-98c0-235137cd6554 2025-04-09 16:55:42,960 - 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 1028ms') 2025-04-09 16:55:42,960 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-91602549-18961727 failed! 2025-04-09 16:55:43,021 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-91602549:ctest-vn-24566190 is 186.237.158.1 and allocation pool is NOT set 2025-04-09 16:55:45,097 - 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=11.0 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.718 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 = 0.718/5.881/11.044/5.163 ms') 2025-04-09 16:55:45,098 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-91602549-18961727 passed 2025-04-09 16:55:45,276 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 16:55:45,277 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-91602549-18961727, IP 186.237.158.3, Port 22 2025-04-09 16:55:45,459 - DEBUG - VM ctest-TestBasicPolicy-91602549-18961727 is ready for SSH connections 2025-04-09 16:55:45,459 - INFO - Waiting for VM ctest-TestBasicPolicy-91602549-17807255 to be up.. 2025-04-09 16:55:45,574 - DEBUG - VM is in ACTIVE state now 2025-04-09 16:55:45,575 - INFO - VM name : ctest-TestBasicPolicy-91602549-17807255 2025-04-09 16:55:45,667 - DEBUG - VM ctest-TestBasicPolicy-91602549-17807255 ID is 53ae05f4-762f-4ae4-b25f-589d04df8754 2025-04-09 16:55:45,667 - DEBUG - VM ctest-TestBasicPolicy-91602549-17807255 launched on Node cn-jenkins-deploy-platform-ansible-os-3072-1 2025-04-09 16:55:45,769 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/53ae05f4-762f-4ae4-b25f-589d04df8754 2025-04-09 16:55:45,781 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/0e38b456-1951-46a6-932d-0a66476740b3 2025-04-09 16:55:47,059 - 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.04 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.46 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.455/2.747/4.040/1.292 ms') 2025-04-09 16:55:47,060 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-91602549-17807255 passed 2025-04-09 16:55:47,250 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 16:55:47,251 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-91602549-17807255, IP 82.31.179.3, Port 22 2025-04-09 16:55:47,323 - 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-04-09 16:55:47,433 - DEBUG - VM ctest-TestBasicPolicy-91602549-17807255 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-09 16:55:52,434 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 16:55:52,434 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-91602549-17807255, IP 82.31.179.3, Port 22 2025-04-09 16:55:52,616 - DEBUG - VM ctest-TestBasicPolicy-91602549-17807255 is ready for SSH connections 2025-04-09 16:55:52,617 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 16:55:52,617 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 82.31.179.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-04-09 16:55:52,617 - DEBUG - ping -s 56 -c 3 -W 1 82.31.179.3 2025-04-09 16:55:56,916 - DEBUG - PING 82.31.179.3 (82.31.179.3): 56 data bytes 64 bytes from 82.31.179.3: seq=0 ttl=63 time=10.486 ms 64 bytes from 82.31.179.3: seq=1 ttl=63 time=2.209 ms 64 bytes from 82.31.179.3: seq=2 ttl=63 time=1.607 ms --- 82.31.179.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.607/4.767/10.486 ms 2025-04-09 16:55:56,917 - INFO - Ping to IP 82.31.179.3 from VM ctest-TestBasicPolicy-91602549-18961727 passed 2025-04-09 16:55:57,132 - DEBUG - Policy Update Response {"network-policy": {"uuid": "15fb073a-9516-42e5-860b-1bc33ed096f2", "href": "http://10.0.0.254:8082/network-policy/15fb073a-9516-42e5-860b-1bc33ed096f2"}} 2025-04-09 16:55:57,132 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-09 16:55:57,132 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 82.31.179.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-04-09 16:55:57,132 - DEBUG - ping -s 56 -c 3 -W 1 82.31.179.3 2025-04-09 16:56:00,396 - DEBUG - PING 82.31.179.3 (82.31.179.3): 56 data bytes --- 82.31.179.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-04-09 16:56:00,396 - WARNING - Ping to IP 82.31.179.3 from VM ctest-TestBasicPolicy-91602549-18961727 failed 2025-04-09 16:56:00,397 - INFO - Deleting VM ctest-TestBasicPolicy-91602549-17807255 2025-04-09 16:56:00,558 - INFO - Deleting VM ctest-TestBasicPolicy-91602549-18961727 2025-04-09 16:56:01,159 - INFO - Deleted policy ctest-policy-allow-all-19218703 2025-04-09 16:56:01,159 - INFO - Deleting VN ctest-vn-36140146 2025-04-09 16:56:01,211 - DEBUG - VN 32240925-6f1c-482c-b839-98c99ac68fee still in use: Unable to complete operation on network 32240925-6f1c-482c-b839-98c99ac68fee. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-621344c4-f8a7-4cec-9171-71fa03af4aff'] 2025-04-09 16:56:01,211 - WARNING - Deleting VN ctest-vn-36140146 failed..Will retry 2025-04-09 16:56:03,439 - DEBUG - Response for deleting network () 2025-04-09 16:56:03,439 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/634445e3-c35d-4f18-b4bf-d1da2b8105a3 2025-04-09 16:56:03,446 - DEBUG - Response Code: 404 2025-04-09 16:56:03,447 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-09 16:56:03,461 - DEBUG - Requesting: http://10.0.0.254:8082/domain/95f60655-3a70-4c88-b7be-750614e898bf 2025-04-09 16:56:03,529 - DEBUG - Requesting: http://10.0.0.254:8082/project/b9e85ea9-94e8-4de6-b6e7-ac745a88776b 2025-04-09 16:56:03,665 - INFO - Validated that VN ctest-vn-36140146 is not found in API Server 2025-04-09 16:56:03,684 - DEBUG - VN ctest-vn-36140146 is not present in Agent 10.0.0.254 2025-04-09 16:56:03,684 - INFO - Validated that VN ctest-vn-36140146 is not in any agent 2025-04-09 16:56:03,725 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-36140146 info 2025-04-09 16:56:03,725 - INFO - Deleting VN ctest-vn-24566190 2025-04-09 16:56:03,929 - DEBUG - Response for deleting network () 2025-04-09 16:56:03,929 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6ed452e5-597f-4427-a394-ac7f6f14b2d1 2025-04-09 16:56:03,940 - DEBUG - Response Code: 404 2025-04-09 16:56:03,940 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-09 16:56:03,952 - DEBUG - Requesting: http://10.0.0.254:8082/domain/95f60655-3a70-4c88-b7be-750614e898bf 2025-04-09 16:56:03,975 - DEBUG - Requesting: http://10.0.0.254:8082/project/b9e85ea9-94e8-4de6-b6e7-ac745a88776b 2025-04-09 16:56:04,085 - INFO - Validated that VN ctest-vn-24566190 is not found in API Server 2025-04-09 16:56:04,109 - DEBUG - VN ctest-vn-24566190 is not present in Agent 10.0.0.254 2025-04-09 16:56:04,109 - INFO - Validated that VN ctest-vn-24566190 is not in any agent 2025-04-09 16:56:04,142 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-24566190 info 2025-04-09 16:56:04,463 - DEBUG - No XMPP flaps were noticed during the test 2025-04-09 16:56:04,464 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:39] 2025-04-09 16:56:04,465 - INFO - -------------------------------------------------------------------------------- 2025-04-09 16:56:05,319 - INFO - Deleted project: ctest-TestBasicPolicy-91602549, ID : b9e85ea9-94e8-4de6-b6e7-ac745a88776b