2024-11-10 15:31:16,266 - INFO - Domain Default found not creating 2024-11-10 15:31:16,585 - INFO - Project ctest-TestBasicPolicy-00577344 not found, creating it 2024-11-10 15:31:17,169 - INFO - Created Project:ctest-TestBasicPolicy-00577344, ID : e8fe526c-612a-43a6-9329-74f8d7c07265 2024-11-10 15:31:18,782 - INFO - ================================================================================ 2024-11-10 15:31:18,782 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-10 15:31:18,782 - 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 2024-11-10 15:31:19,040 - DEBUG - Nothing to compare xmpp stats {'10.0.0.44': {'10.20.0.13': '0'}} with 2024-11-10 15:31:19,040 - INFO - Initial checks done. Running the testcase now 2024-11-10 15:31:19,040 - INFO - 2024-11-10 15:31:19,654 - DEBUG - Response for create_network : {'network': {'id': '4ae55051-a33a-4564-a298-3e97a38b2717', 'name': 'ctest-vn-66520018', 'tenant_id': 'e8fe526c612a43a6932974f8d7c07265', 'project_id': 'e8fe526c612a43a6932974f8d7c07265', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00577344', 'ctest-vn-66520018'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 15:31:19,875 - DEBUG - Response for create_subnet : {'subnet': {'id': '9369d582-474d-48c2-8936-38b6f4c2a2c2', 'name': '', 'tenant_id': 'e8fe526c612a43a6932974f8d7c07265', 'network_id': '4ae55051-a33a-4564-a298-3e97a38b2717', 'ip_version': 4, 'cidr': '125.12.108.64/26', 'allocation_pools': [{'start': '125.12.108.66', 'end': '125.12.108.126'}], 'gateway_ip': '125.12.108.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.12.108.66', 'tags': [], 'project_id': 'e8fe526c612a43a6932974f8d7c07265'}} 2024-11-10 15:31:19,895 - INFO - Created VN ctest-vn-66520018 2024-11-10 15:31:19,957 - DEBUG - VN ctest-vn-66520018 UUID is 4ae55051-a33a-4564-a298-3e97a38b2717 2024-11-10 15:31:20,343 - DEBUG - Response for create_network : {'network': {'id': 'a953d094-ed4f-4709-9307-3a21ca33ccb7', 'name': 'ctest-vn-19744093', 'tenant_id': 'e8fe526c612a43a6932974f8d7c07265', 'project_id': 'e8fe526c612a43a6932974f8d7c07265', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00577344', 'ctest-vn-19744093'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 15:31:20,560 - DEBUG - Response for create_subnet : {'subnet': {'id': '1304ab67-60e1-490a-9506-08614a729ea1', 'name': '', 'tenant_id': 'e8fe526c612a43a6932974f8d7c07265', 'network_id': 'a953d094-ed4f-4709-9307-3a21ca33ccb7', 'ip_version': 4, 'cidr': '153.2.210.0/26', 'allocation_pools': [{'start': '153.2.210.2', 'end': '153.2.210.62'}], 'gateway_ip': '153.2.210.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '153.2.210.2', 'tags': [], 'project_id': 'e8fe526c612a43a6932974f8d7c07265'}} 2024-11-10 15:31:20,587 - INFO - Created VN ctest-vn-19744093 2024-11-10 15:31:20,649 - DEBUG - VN ctest-vn-19744093 UUID is a953d094-ed4f-4709-9307-3a21ca33ccb7 2024-11-10 15:31:20,781 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-00577344:ctest-vn-66520018, 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-00577344:ctest-vn-19744093, 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] 2024-11-10 15:31:21,119 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4ae55051-a33a-4564-a298-3e97a38b2717', 'name': 'ctest-vn-66520018', 'tenant_id': 'e8fe526c612a43a6932974f8d7c07265', 'project_id': 'e8fe526c612a43a6932974f8d7c07265', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9369d582-474d-48c2-8936-38b6f4c2a2c2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00577344', 'ctest-vn-66520018'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00577344', 'ctest-policy-allow-all-03268836']], 'subnet_ipam': [{'subnet_cidr': '125.12.108.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-10 15:31:21,447 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a953d094-ed4f-4709-9307-3a21ca33ccb7', 'name': 'ctest-vn-19744093', 'tenant_id': 'e8fe526c612a43a6932974f8d7c07265', 'project_id': 'e8fe526c612a43a6932974f8d7c07265', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1304ab67-60e1-490a-9506-08614a729ea1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00577344', 'ctest-vn-19744093'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00577344', 'ctest-policy-allow-all-03268836']], 'subnet_ipam': [{'subnet_cidr': '153.2.210.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-10 15:31:21,613 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-11-10 15:31:21,920 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-11-10 15:31:21,957 - DEBUG - Requesting: http://10.0.0.44:8082/domain/8c13010a-08b1-4617-a896-cb065aae533a 2024-11-10 15:31:21,973 - DEBUG - Requesting: http://10.0.0.44:8082/project/e8fe526c-612a-43a6-9329-74f8d7c07265 2024-11-10 15:31:22,061 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/4ae55051-a33a-4564-a298-3e97a38b2717 2024-11-10 15:31:22,079 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/4ae55051-a33a-4564-a298-3e97a38b2717 2024-11-10 15:31:22,096 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/f0e7dbce-ad04-4575-9248-d418774d4ccd 2024-11-10 15:31:22,109 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/f0e7dbce-ad04-4575-9248-d418774d4ccd 2024-11-10 15:31:22,125 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/42168928-5fad-425a-b4bb-df0e662b03f1 2024-11-10 15:31:22,135 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-10 15:31:22,135 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/4ae55051-a33a-4564-a298-3e97a38b2717 2024-11-10 15:31:22,157 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/f0e7dbce-ad04-4575-9248-d418774d4ccd 2024-11-10 15:31:22,184 - INFO - Verified VN network id 7 for VN 4ae55051-a33a-4564-a298-3e97a38b2717 2024-11-10 15:31:22,184 - INFO - Verifications in API Server for VN ctest-vn-66520018 passed 2024-11-10 15:31:22,184 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/4ae55051-a33a-4564-a298-3e97a38b2717 2024-11-10 15:31:22,201 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/f0e7dbce-ad04-4575-9248-d418774d4ccd 2024-11-10 15:31:22,211 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/f0e7dbce-ad04-4575-9248-d418774d4ccd 2024-11-10 15:31:22,226 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/42168928-5fad-425a-b4bb-df0e662b03f1 2024-11-10 15:31:22,242 - DEBUG - Control-node 10.0.0.44 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00577344:ctest-vn-66520018', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00577344', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5396808040034485604', 'uuid-lslong': '11716183251609134871'}, 'enable': 'true', 'created': '2024-11-10T15:31:19', 'last-modified': '2024-11-10T15:31:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.153547'} 2024-11-10 15:31:22,250 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-10 15:31:22,250 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66520018 passed 2024-11-10 15:31:22,250 - DEBUG - ====Verifying policy data for ctest-vn-66520018 in API_Server ====== 2024-11-10 15:31:22,250 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-11-10 15:31:22,260 - DEBUG - Requesting: http://10.0.0.44:8082/domain/8c13010a-08b1-4617-a896-cb065aae533a 2024-11-10 15:31:22,275 - DEBUG - Requesting: http://10.0.0.44:8082/project/e8fe526c-612a-43a6-9329-74f8d7c07265 2024-11-10 15:31:22,361 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/4ae55051-a33a-4564-a298-3e97a38b2717 2024-11-10 15:31:22,380 - DEBUG - ==>Verifying data for policy with id: f505fcea-35fa-450e-978c-e84eee777a3f, fqn: ['default-domain', 'ctest-TestBasicPolicy-00577344', 'ctest-policy-allow-all-03268836'] 2024-11-10 15:31:22,381 - INFO - VN ctest-vn-66520018 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-10 15:31:22,381 - DEBUG - Verifying the vn in opserver 2024-11-10 15:31:22,381 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00577344:ctest-vn-66520018 virtual network link through opserver 10.0.0.44 2024-11-10 15:31:22,383 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks 2024-11-10 15:31:22,705 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks 2024-11-10 15:31:22,781 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00577344:ctest-vn-66520018', 'href': 'http://10.0.0.44:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00577344:ctest-vn-66520018?flat'} 2024-11-10 15:31:22,781 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00577344:ctest-vn-66520018 is found in opserver 2024-11-10 15:31:22,793 - DEBUG - Do not have enough data to verify VN in agent 2024-11-10 15:31:22,799 - DEBUG - VRF ids for VN ctest-vn-66520018: {} 2024-11-10 15:31:22,799 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-11-10 15:31:22,807 - DEBUG - Requesting: http://10.0.0.44:8082/domain/8c13010a-08b1-4617-a896-cb065aae533a 2024-11-10 15:31:22,833 - DEBUG - Requesting: http://10.0.0.44:8082/project/e8fe526c-612a-43a6-9329-74f8d7c07265 2024-11-10 15:31:22,926 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/a953d094-ed4f-4709-9307-3a21ca33ccb7 2024-11-10 15:31:22,950 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/a953d094-ed4f-4709-9307-3a21ca33ccb7 2024-11-10 15:31:22,966 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/c22d4abf-9b60-4a55-b536-9c7c9c88b09e 2024-11-10 15:31:22,981 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/c22d4abf-9b60-4a55-b536-9c7c9c88b09e 2024-11-10 15:31:22,990 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/3f879b64-5852-4a6b-9f3e-017df8aa2884 2024-11-10 15:31:22,999 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-10 15:31:22,999 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/a953d094-ed4f-4709-9307-3a21ca33ccb7 2024-11-10 15:31:23,014 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/c22d4abf-9b60-4a55-b536-9c7c9c88b09e 2024-11-10 15:31:23,036 - INFO - Verified VN network id 8 for VN a953d094-ed4f-4709-9307-3a21ca33ccb7 2024-11-10 15:31:23,036 - INFO - Verifications in API Server for VN ctest-vn-19744093 passed 2024-11-10 15:31:23,036 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/a953d094-ed4f-4709-9307-3a21ca33ccb7 2024-11-10 15:31:23,054 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/c22d4abf-9b60-4a55-b536-9c7c9c88b09e 2024-11-10 15:31:23,066 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/c22d4abf-9b60-4a55-b536-9c7c9c88b09e 2024-11-10 15:31:23,076 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/3f879b64-5852-4a6b-9f3e-017df8aa2884 2024-11-10 15:31:23,091 - DEBUG - Control-node 10.0.0.44 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00577344:ctest-vn-19744093', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00577344', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12201325153531938569', 'uuid-lslong': '10594500565213105335'}, 'enable': 'true', 'created': '2024-11-10T15:31:20', 'last-modified': '2024-11-10T15:31:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.725282'} 2024-11-10 15:31:23,098 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-10 15:31:23,098 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19744093 passed 2024-11-10 15:31:23,098 - DEBUG - ====Verifying policy data for ctest-vn-19744093 in API_Server ====== 2024-11-10 15:31:23,098 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-11-10 15:31:23,107 - DEBUG - Requesting: http://10.0.0.44:8082/domain/8c13010a-08b1-4617-a896-cb065aae533a 2024-11-10 15:31:23,120 - DEBUG - Requesting: http://10.0.0.44:8082/project/e8fe526c-612a-43a6-9329-74f8d7c07265 2024-11-10 15:31:23,208 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/a953d094-ed4f-4709-9307-3a21ca33ccb7 2024-11-10 15:31:23,222 - DEBUG - ==>Verifying data for policy with id: f505fcea-35fa-450e-978c-e84eee777a3f, fqn: ['default-domain', 'ctest-TestBasicPolicy-00577344', 'ctest-policy-allow-all-03268836'] 2024-11-10 15:31:23,222 - INFO - VN ctest-vn-19744093 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-10 15:31:23,222 - DEBUG - Verifying the vn in opserver 2024-11-10 15:31:23,222 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00577344:ctest-vn-19744093 virtual network link through opserver 10.0.0.44 2024-11-10 15:31:23,222 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks 2024-11-10 15:31:23,235 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00577344:ctest-vn-19744093', 'href': 'http://10.0.0.44:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00577344:ctest-vn-19744093?flat'} 2024-11-10 15:31:23,235 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00577344:ctest-vn-19744093 is found in opserver 2024-11-10 15:31:23,247 - DEBUG - Do not have enough data to verify VN in agent 2024-11-10 15:31:23,256 - DEBUG - VRF ids for VN ctest-vn-19744093: {} 2024-11-10 15:31:23,330 - DEBUG - Services list from nova: [, , ] 2024-11-10 15:31:24,530 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2252-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2252-1) 2024-11-10 15:31:25,823 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2252-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2252-1) 2024-11-10 15:31:25,824 - INFO - Waiting for VM ctest-TestBasicPolicy-00577344-43675427 to be up.. 2024-11-10 15:31:25,919 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-10 15:31:31,017 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-10 15:31:36,126 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-10 15:31:41,216 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-10 15:31:46,324 - DEBUG - VM is in ACTIVE state now 2024-11-10 15:31:46,324 - INFO - VM name : ctest-TestBasicPolicy-00577344-43675427 2024-11-10 15:31:46,451 - DEBUG - VM ctest-TestBasicPolicy-00577344-43675427 ID is 0b01cefb-0aa7-4b19-8d98-6b3799a53d45 2024-11-10 15:31:46,479 - DEBUG - VM ctest-TestBasicPolicy-00577344-43675427 launched on Node cn-jenkins-deploy-platform-ansible-os-2252-1 2024-11-10 15:31:46,585 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine/0b01cefb-0aa7-4b19-8d98-6b3799a53d45 2024-11-10 15:31:46,597 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine-interface/f8cd4dd4-980b-42d9-9646-47f33db0ea83 2024-11-10 15:31:49,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 1007ms') 2024-11-10 15:31:49,871 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-00577344-43675427 failed! 2024-11-10 15:31:49,937 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-00577344:ctest-vn-66520018 is 125.12.108.65 and allocation pool is NOT set 2024-11-10 15:31:54,035 - 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=7.10 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1030ms\r\nrtt min/avg/max/mdev = 7.097/7.097/7.097/0.000 ms') 2024-11-10 15:31:54,035 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-00577344-43675427 passed 2024-11-10 15:31:54,201 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 15:31:54,202 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-00577344-43675427, IP 125.12.108.67, Port 22 2024-11-10 15:31:54,375 - DEBUG - VM ctest-TestBasicPolicy-00577344-43675427 is ready for SSH connections 2024-11-10 15:31:54,375 - INFO - Waiting for VM ctest-TestBasicPolicy-00577344-75546475 to be up.. 2024-11-10 15:31:54,468 - DEBUG - VM is in ACTIVE state now 2024-11-10 15:31:54,468 - INFO - VM name : ctest-TestBasicPolicy-00577344-75546475 2024-11-10 15:31:54,564 - DEBUG - VM ctest-TestBasicPolicy-00577344-75546475 ID is 110fd581-b73c-4fec-8217-45d1de080a0b 2024-11-10 15:31:54,564 - DEBUG - VM ctest-TestBasicPolicy-00577344-75546475 launched on Node cn-jenkins-deploy-platform-ansible-os-2252-1 2024-11-10 15:31:54,663 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine/110fd581-b73c-4fec-8217-45d1de080a0b 2024-11-10 15:31:54,675 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine-interface/be897d44-b256-4b14-87fa-15d4df977f63 2024-11-10 15:31:55,936 - 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.10 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=3.34 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 = 3.343/3.722/4.102/0.379 ms') 2024-11-10 15:31:55,936 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-00577344-75546475 passed 2024-11-10 15:31:56,098 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 15:31:56,098 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-00577344-75546475, IP 153.2.210.3, Port 22 2024-11-10 15:31:56,164 - 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': ''} 2024-11-10 15:31:56,270 - DEBUG - VM ctest-TestBasicPolicy-00577344-75546475 is NOT ready for SSH connections, VM status: ACTIVE 2024-11-10 15:32:01,271 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 15:32:01,271 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-00577344-75546475, IP 153.2.210.3, Port 22 2024-11-10 15:32:01,449 - DEBUG - VM ctest-TestBasicPolicy-00577344-75546475 is ready for SSH connections 2024-11-10 15:32:01,449 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 15:32:01,449 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 153.2.210.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.44, gateway password: c0ntrail123 2024-11-10 15:32:01,449 - DEBUG - ping -s 56 -c 3 -W 1 153.2.210.3 2024-11-10 15:32:05,475 - DEBUG - PING 153.2.210.3 (153.2.210.3): 56 data bytes 64 bytes from 153.2.210.3: seq=0 ttl=63 time=3.643 ms 64 bytes from 153.2.210.3: seq=1 ttl=63 time=0.831 ms 64 bytes from 153.2.210.3: seq=2 ttl=63 time=0.975 ms --- 153.2.210.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.831/1.816/3.643 ms 2024-11-10 15:32:05,475 - INFO - Ping to IP 153.2.210.3 from VM ctest-TestBasicPolicy-00577344-43675427 passed 2024-11-10 15:32:05,685 - DEBUG - Policy Update Response {"network-policy": {"uuid": "f505fcea-35fa-450e-978c-e84eee777a3f", "href": "http://10.0.0.44:8082/network-policy/f505fcea-35fa-450e-978c-e84eee777a3f"}} 2024-11-10 15:32:05,685 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 15:32:05,685 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 153.2.210.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.44, gateway password: c0ntrail123 2024-11-10 15:32:05,685 - DEBUG - ping -s 56 -c 3 -W 1 153.2.210.3 2024-11-10 15:32:08,889 - DEBUG - PING 153.2.210.3 (153.2.210.3): 56 data bytes 64 bytes from 153.2.210.3: seq=0 ttl=63 time=1.775 ms --- 153.2.210.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.775/1.775/1.775 ms 2024-11-10 15:32:08,889 - WARNING - Ping to IP 153.2.210.3 from VM ctest-TestBasicPolicy-00577344-43675427 failed 2024-11-10 15:32:08,889 - INFO - Deleting VM ctest-TestBasicPolicy-00577344-75546475 2024-11-10 15:32:08,970 - INFO - Deleting VM ctest-TestBasicPolicy-00577344-43675427 2024-11-10 15:32:09,458 - INFO - Deleted policy ctest-policy-allow-all-03268836 2024-11-10 15:32:09,458 - INFO - Deleting VN ctest-vn-19744093 2024-11-10 15:32:09,509 - DEBUG - VN a953d094-ed4f-4709-9307-3a21ca33ccb7 still in use: Unable to complete operation on network a953d094-ed4f-4709-9307-3a21ca33ccb7. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-4eb2dd13-e199-4c0f-a503-d9ee5ef0f96a'] 2024-11-10 15:32:09,509 - WARNING - Deleting VN ctest-vn-19744093 failed..Will retry 2024-11-10 15:32:11,706 - DEBUG - Response for deleting network () 2024-11-10 15:32:11,706 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/c22d4abf-9b60-4a55-b536-9c7c9c88b09e 2024-11-10 15:32:11,718 - DEBUG - Response Code: 404 2024-11-10 15:32:11,718 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-11-10 15:32:11,725 - DEBUG - Requesting: http://10.0.0.44:8082/domain/8c13010a-08b1-4617-a896-cb065aae533a 2024-11-10 15:32:11,789 - DEBUG - Requesting: http://10.0.0.44:8082/project/e8fe526c-612a-43a6-9329-74f8d7c07265 2024-11-10 15:32:11,874 - INFO - Validated that VN ctest-vn-19744093 is not found in API Server 2024-11-10 15:32:11,890 - DEBUG - VN ctest-vn-19744093 is not present in Agent 10.0.0.44 2024-11-10 15:32:11,890 - INFO - Validated that VN ctest-vn-19744093 is not in any agent 2024-11-10 15:32:11,912 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-19744093 info 2024-11-10 15:32:11,912 - INFO - Deleting VN ctest-vn-66520018 2024-11-10 15:32:12,031 - DEBUG - Response for deleting network () 2024-11-10 15:32:12,031 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/f0e7dbce-ad04-4575-9248-d418774d4ccd 2024-11-10 15:32:12,042 - DEBUG - Response Code: 404 2024-11-10 15:32:12,042 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-11-10 15:32:12,049 - DEBUG - Requesting: http://10.0.0.44:8082/domain/8c13010a-08b1-4617-a896-cb065aae533a 2024-11-10 15:32:12,107 - DEBUG - Requesting: http://10.0.0.44:8082/project/e8fe526c-612a-43a6-9329-74f8d7c07265 2024-11-10 15:32:12,191 - INFO - Validated that VN ctest-vn-66520018 is not found in API Server 2024-11-10 15:32:12,203 - DEBUG - VN ctest-vn-66520018 is not present in Agent 10.0.0.44 2024-11-10 15:32:12,203 - INFO - Validated that VN ctest-vn-66520018 is not in any agent 2024-11-10 15:32:12,219 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-66520018 info 2024-11-10 15:32:12,477 - DEBUG - No XMPP flaps were noticed during the test 2024-11-10 15:32:12,477 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:54] 2024-11-10 15:32:12,477 - INFO - -------------------------------------------------------------------------------- 2024-11-10 15:32:13,543 - INFO - Deleted project: ctest-TestBasicPolicy-00577344, ID : e8fe526c-612a-43a6-9329-74f8d7c07265