2024-11-10 20:50:16,192 - INFO - Domain Default found not creating 2024-11-10 20:50:16,387 - INFO - Project ctest-TestBasicPolicy-37155368 not found, creating it 2024-11-10 20:50:16,909 - INFO - Created Project:ctest-TestBasicPolicy-37155368, ID : 46d9543c-b45b-42cb-aedf-2134ca9d21ad 2024-11-10 20:50:18,610 - INFO - ================================================================================ 2024-11-10 20:50:18,610 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-10 20:50:18,611 - 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 20:50:18,883 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.10': '0'}} with 2024-11-10 20:50:18,883 - INFO - Initial checks done. Running the testcase now 2024-11-10 20:50:18,883 - INFO - 2024-11-10 20:50:19,546 - DEBUG - Response for create_network : {'network': {'id': '54b5efa2-64a2-4653-b1e5-d24e94ef8b50', 'name': 'ctest-vn-01325653', 'tenant_id': '46d9543cb45b42cbaedf2134ca9d21ad', 'project_id': '46d9543cb45b42cbaedf2134ca9d21ad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37155368', 'ctest-vn-01325653'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 20:50:19,759 - DEBUG - Response for create_subnet : {'subnet': {'id': '89286294-1357-4edb-813a-51eb84a7b977', 'name': '', 'tenant_id': '46d9543cb45b42cbaedf2134ca9d21ad', 'network_id': '54b5efa2-64a2-4653-b1e5-d24e94ef8b50', 'ip_version': 4, 'cidr': '92.128.212.128/26', 'allocation_pools': [{'start': '92.128.212.130', 'end': '92.128.212.190'}], 'gateway_ip': '92.128.212.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '92.128.212.130', 'tags': [], 'project_id': '46d9543cb45b42cbaedf2134ca9d21ad'}} 2024-11-10 20:50:19,788 - INFO - Created VN ctest-vn-01325653 2024-11-10 20:50:19,853 - DEBUG - VN ctest-vn-01325653 UUID is 54b5efa2-64a2-4653-b1e5-d24e94ef8b50 2024-11-10 20:50:20,224 - DEBUG - Response for create_network : {'network': {'id': '3d720138-a4bf-425f-9661-242fe0f60259', 'name': 'ctest-vn-10573430', 'tenant_id': '46d9543cb45b42cbaedf2134ca9d21ad', 'project_id': '46d9543cb45b42cbaedf2134ca9d21ad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37155368', 'ctest-vn-10573430'], 'port_security_enabled': True, 'description': ''}} 2024-11-10 20:50:20,453 - DEBUG - Response for create_subnet : {'subnet': {'id': '06000661-1576-4263-ba18-4cbac39a6896', 'name': '', 'tenant_id': '46d9543cb45b42cbaedf2134ca9d21ad', 'network_id': '3d720138-a4bf-425f-9661-242fe0f60259', 'ip_version': 4, 'cidr': '53.253.10.128/26', 'allocation_pools': [{'start': '53.253.10.130', 'end': '53.253.10.190'}], 'gateway_ip': '53.253.10.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '53.253.10.130', 'tags': [], 'project_id': '46d9543cb45b42cbaedf2134ca9d21ad'}} 2024-11-10 20:50:20,478 - INFO - Created VN ctest-vn-10573430 2024-11-10 20:50:20,540 - DEBUG - VN ctest-vn-10573430 UUID is 3d720138-a4bf-425f-9661-242fe0f60259 2024-11-10 20:50:20,691 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-37155368:ctest-vn-01325653, 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-37155368:ctest-vn-10573430, 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 20:50:21,053 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '54b5efa2-64a2-4653-b1e5-d24e94ef8b50', 'name': 'ctest-vn-01325653', 'tenant_id': '46d9543cb45b42cbaedf2134ca9d21ad', 'project_id': '46d9543cb45b42cbaedf2134ca9d21ad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['89286294-1357-4edb-813a-51eb84a7b977'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37155368', 'ctest-vn-01325653'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37155368', 'ctest-policy-allow-all-82385790']], 'subnet_ipam': [{'subnet_cidr': '92.128.212.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-10 20:50:21,294 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3d720138-a4bf-425f-9661-242fe0f60259', 'name': 'ctest-vn-10573430', 'tenant_id': '46d9543cb45b42cbaedf2134ca9d21ad', 'project_id': '46d9543cb45b42cbaedf2134ca9d21ad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['06000661-1576-4263-ba18-4cbac39a6896'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37155368', 'ctest-vn-10573430'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37155368', 'ctest-policy-allow-all-82385790']], 'subnet_ipam': [{'subnet_cidr': '53.253.10.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-10 20:50:21,476 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-11-10 20:50:21,795 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-11-10 20:50:21,833 - DEBUG - Requesting: http://10.0.0.29:8082/domain/4ff11d7c-4501-43f9-95fd-2169919ef0b5 2024-11-10 20:50:21,853 - DEBUG - Requesting: http://10.0.0.29:8082/project/46d9543c-b45b-42cb-aedf-2134ca9d21ad 2024-11-10 20:50:21,953 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/54b5efa2-64a2-4653-b1e5-d24e94ef8b50 2024-11-10 20:50:21,976 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/54b5efa2-64a2-4653-b1e5-d24e94ef8b50 2024-11-10 20:50:22,000 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/6ef98ad2-631f-495a-96b9-62a15c21abf9 2024-11-10 20:50:22,017 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/6ef98ad2-631f-495a-96b9-62a15c21abf9 2024-11-10 20:50:22,035 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/eef4845f-3354-4f5a-9fc3-0f38fb354518 2024-11-10 20:50:22,048 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-10 20:50:22,048 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/54b5efa2-64a2-4653-b1e5-d24e94ef8b50 2024-11-10 20:50:22,070 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/6ef98ad2-631f-495a-96b9-62a15c21abf9 2024-11-10 20:50:22,097 - INFO - Verified VN network id 8 for VN 54b5efa2-64a2-4653-b1e5-d24e94ef8b50 2024-11-10 20:50:22,097 - INFO - Verifications in API Server for VN ctest-vn-01325653 passed 2024-11-10 20:50:22,097 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/54b5efa2-64a2-4653-b1e5-d24e94ef8b50 2024-11-10 20:50:22,116 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/6ef98ad2-631f-495a-96b9-62a15c21abf9 2024-11-10 20:50:22,129 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/6ef98ad2-631f-495a-96b9-62a15c21abf9 2024-11-10 20:50:22,142 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/eef4845f-3354-4f5a-9fc3-0f38fb354518 2024-11-10 20:50:22,159 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37155368:ctest-vn-01325653', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37155368', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6104048350722672211', 'uuid-lslong': '12818883149327993680'}, 'enable': 'true', 'created': '2024-11-10T20:50:19', 'last-modified': '2024-11-10T20:50:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.150799'} 2024-11-10 20:50:22,167 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-10 20:50:22,167 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01325653 passed 2024-11-10 20:50:22,168 - DEBUG - ====Verifying policy data for ctest-vn-01325653 in API_Server ====== 2024-11-10 20:50:22,168 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-11-10 20:50:22,176 - DEBUG - Requesting: http://10.0.0.29:8082/domain/4ff11d7c-4501-43f9-95fd-2169919ef0b5 2024-11-10 20:50:22,193 - DEBUG - Requesting: http://10.0.0.29:8082/project/46d9543c-b45b-42cb-aedf-2134ca9d21ad 2024-11-10 20:50:22,282 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/54b5efa2-64a2-4653-b1e5-d24e94ef8b50 2024-11-10 20:50:22,301 - DEBUG - ==>Verifying data for policy with id: b7c55a19-18b0-49a2-b99c-bf82480937f6, fqn: ['default-domain', 'ctest-TestBasicPolicy-37155368', 'ctest-policy-allow-all-82385790'] 2024-11-10 20:50:22,301 - INFO - VN ctest-vn-01325653 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-10 20:50:22,301 - DEBUG - Verifying the vn in opserver 2024-11-10 20:50:22,301 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37155368:ctest-vn-01325653 virtual network link through opserver 10.0.0.29 2024-11-10 20:50:22,301 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-11-10 20:50:22,605 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-11-10 20:50:22,684 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37155368:ctest-vn-01325653', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37155368:ctest-vn-01325653?flat'} 2024-11-10 20:50:22,684 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37155368:ctest-vn-01325653 is found in opserver 2024-11-10 20:50:22,698 - DEBUG - Do not have enough data to verify VN in agent 2024-11-10 20:50:22,706 - DEBUG - VRF ids for VN ctest-vn-01325653: {} 2024-11-10 20:50:22,706 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-11-10 20:50:22,714 - DEBUG - Requesting: http://10.0.0.29:8082/domain/4ff11d7c-4501-43f9-95fd-2169919ef0b5 2024-11-10 20:50:22,732 - DEBUG - Requesting: http://10.0.0.29:8082/project/46d9543c-b45b-42cb-aedf-2134ca9d21ad 2024-11-10 20:50:22,829 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/3d720138-a4bf-425f-9661-242fe0f60259 2024-11-10 20:50:22,857 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/3d720138-a4bf-425f-9661-242fe0f60259 2024-11-10 20:50:22,880 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/deb273c6-ab8b-4158-8bdc-b098816ab246 2024-11-10 20:50:22,896 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/deb273c6-ab8b-4158-8bdc-b098816ab246 2024-11-10 20:50:22,908 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/0e5b2d73-4d4d-4a33-875a-0c9c711ad6ee 2024-11-10 20:50:22,923 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-10 20:50:22,924 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/3d720138-a4bf-425f-9661-242fe0f60259 2024-11-10 20:50:22,940 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/deb273c6-ab8b-4158-8bdc-b098816ab246 2024-11-10 20:50:22,973 - INFO - Verified VN network id 9 for VN 3d720138-a4bf-425f-9661-242fe0f60259 2024-11-10 20:50:22,973 - INFO - Verifications in API Server for VN ctest-vn-10573430 passed 2024-11-10 20:50:22,973 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/3d720138-a4bf-425f-9661-242fe0f60259 2024-11-10 20:50:22,994 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/deb273c6-ab8b-4158-8bdc-b098816ab246 2024-11-10 20:50:23,008 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/deb273c6-ab8b-4158-8bdc-b098816ab246 2024-11-10 20:50:23,021 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/0e5b2d73-4d4d-4a33-875a-0c9c711ad6ee 2024-11-10 20:50:23,043 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37155368:ctest-vn-10573430', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37155368', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4427602726452413023', 'uuid-lslong': '10835981966486405721'}, 'enable': 'true', 'created': '2024-11-10T20:50:20', 'last-modified': '2024-11-10T20:50:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.775626'} 2024-11-10 20:50:23,052 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-10 20:50:23,052 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10573430 passed 2024-11-10 20:50:23,053 - DEBUG - ====Verifying policy data for ctest-vn-10573430 in API_Server ====== 2024-11-10 20:50:23,053 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-11-10 20:50:23,062 - DEBUG - Requesting: http://10.0.0.29:8082/domain/4ff11d7c-4501-43f9-95fd-2169919ef0b5 2024-11-10 20:50:23,082 - DEBUG - Requesting: http://10.0.0.29:8082/project/46d9543c-b45b-42cb-aedf-2134ca9d21ad 2024-11-10 20:50:23,180 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/3d720138-a4bf-425f-9661-242fe0f60259 2024-11-10 20:50:23,196 - DEBUG - ==>Verifying data for policy with id: b7c55a19-18b0-49a2-b99c-bf82480937f6, fqn: ['default-domain', 'ctest-TestBasicPolicy-37155368', 'ctest-policy-allow-all-82385790'] 2024-11-10 20:50:23,196 - INFO - VN ctest-vn-10573430 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-10 20:50:23,196 - DEBUG - Verifying the vn in opserver 2024-11-10 20:50:23,198 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37155368:ctest-vn-10573430 virtual network link through opserver 10.0.0.29 2024-11-10 20:50:23,198 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-11-10 20:50:23,212 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37155368:ctest-vn-10573430', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37155368:ctest-vn-10573430?flat'} 2024-11-10 20:50:23,212 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37155368:ctest-vn-10573430 is found in opserver 2024-11-10 20:50:23,226 - DEBUG - Do not have enough data to verify VN in agent 2024-11-10 20:50:23,233 - DEBUG - VRF ids for VN ctest-vn-10573430: {} 2024-11-10 20:50:23,298 - DEBUG - Services list from nova: [, , ] 2024-11-10 20:50:24,462 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2263-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2263-1) 2024-11-10 20:50:25,891 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2263-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2263-1) 2024-11-10 20:50:25,891 - INFO - Waiting for VM ctest-TestBasicPolicy-37155368-47743932 to be up.. 2024-11-10 20:50:26,035 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-10 20:50:31,145 - DEBUG - VM is in ACTIVE state now 2024-11-10 20:50:31,145 - INFO - VM name : ctest-TestBasicPolicy-37155368-47743932 2024-11-10 20:50:31,256 - DEBUG - VM ctest-TestBasicPolicy-37155368-47743932 ID is 5d23b065-be06-48e5-bc00-e9bead895b49 2024-11-10 20:50:31,293 - DEBUG - VM ctest-TestBasicPolicy-37155368-47743932 launched on Node cn-jenkins-deploy-platform-ansible-os-2263-1 2024-11-10 20:50:31,411 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/5d23b065-be06-48e5-bc00-e9bead895b49 2024-11-10 20:50:31,428 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/010831b0-9841-4d5a-9711-b8ce4668d70a 2024-11-10 20:50:34,697 - 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 1006ms') 2024-11-10 20:50:34,697 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-37155368-47743932 failed! 2024-11-10 20:50:34,760 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-37155368:ctest-vn-01325653 is 92.128.212.129 and allocation pool is NOT set 2024-11-10 20:50:36,825 - 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=17.0 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.94 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.943/9.967/16.991/7.024 ms') 2024-11-10 20:50:36,825 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-37155368-47743932 passed 2024-11-10 20:50:36,988 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 20:50:36,988 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-37155368-47743932, IP 92.128.212.131, Port 22 2024-11-10 20:50:37,044 - DEBUG - Error on ssh to cirros@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': ''} 2024-11-10 20:50:37,144 - DEBUG - VM ctest-TestBasicPolicy-37155368-47743932 is NOT ready for SSH connections, VM status: ACTIVE 2024-11-10 20:50:42,146 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 20:50:42,146 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-37155368-47743932, IP 92.128.212.131, Port 22 2024-11-10 20:50:42,316 - DEBUG - VM ctest-TestBasicPolicy-37155368-47743932 is ready for SSH connections 2024-11-10 20:50:42,316 - INFO - Waiting for VM ctest-TestBasicPolicy-37155368-36404825 to be up.. 2024-11-10 20:50:42,469 - DEBUG - VM is in ACTIVE state now 2024-11-10 20:50:42,470 - INFO - VM name : ctest-TestBasicPolicy-37155368-36404825 2024-11-10 20:50:42,581 - DEBUG - VM ctest-TestBasicPolicy-37155368-36404825 ID is bc37eb4f-c6c9-4ffa-bfc9-b4a03f23b76c 2024-11-10 20:50:42,581 - DEBUG - VM ctest-TestBasicPolicy-37155368-36404825 launched on Node cn-jenkins-deploy-platform-ansible-os-2263-1 2024-11-10 20:50:42,701 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/bc37eb4f-c6c9-4ffa-bfc9-b4a03f23b76c 2024-11-10 20:50:42,717 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/e02a71fe-b99a-4c0e-aedd-aeea343034b0 2024-11-10 20:50:44,039 - 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=6.89 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.453 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.453/3.672/6.891/3.219 ms') 2024-11-10 20:50:44,039 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-37155368-36404825 passed 2024-11-10 20:50:44,204 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 20:50:44,204 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-37155368-36404825, IP 53.253.10.131, Port 22 2024-11-10 20:50:44,360 - DEBUG - VM ctest-TestBasicPolicy-37155368-36404825 is ready for SSH connections 2024-11-10 20:50:44,360 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 20:50:44,360 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 53.253.10.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2024-11-10 20:50:44,360 - DEBUG - ping -s 56 -c 3 -W 1 53.253.10.131 2024-11-10 20:50:48,466 - DEBUG - PING 53.253.10.131 (53.253.10.131): 56 data bytes 64 bytes from 53.253.10.131: seq=0 ttl=63 time=3.632 ms 64 bytes from 53.253.10.131: seq=1 ttl=63 time=1.029 ms 64 bytes from 53.253.10.131: seq=2 ttl=63 time=0.950 ms --- 53.253.10.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.950/1.870/3.632 ms 2024-11-10 20:50:48,467 - INFO - Ping to IP 53.253.10.131 from VM ctest-TestBasicPolicy-37155368-47743932 passed 2024-11-10 20:50:48,692 - DEBUG - Policy Update Response {"network-policy": {"uuid": "b7c55a19-18b0-49a2-b99c-bf82480937f6", "href": "http://10.0.0.29:8082/network-policy/b7c55a19-18b0-49a2-b99c-bf82480937f6"}} 2024-11-10 20:50:48,692 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-10 20:50:48,692 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 53.253.10.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2024-11-10 20:50:48,692 - DEBUG - ping -s 56 -c 3 -W 1 53.253.10.131 2024-11-10 20:50:51,976 - DEBUG - PING 53.253.10.131 (53.253.10.131): 56 data bytes --- 53.253.10.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-11-10 20:50:51,976 - WARNING - Ping to IP 53.253.10.131 from VM ctest-TestBasicPolicy-37155368-47743932 failed 2024-11-10 20:50:51,976 - INFO - Deleting VM ctest-TestBasicPolicy-37155368-36404825 2024-11-10 20:50:52,080 - INFO - Deleting VM ctest-TestBasicPolicy-37155368-47743932 2024-11-10 20:50:52,613 - INFO - Deleted policy ctest-policy-allow-all-82385790 2024-11-10 20:50:52,613 - INFO - Deleting VN ctest-vn-10573430 2024-11-10 20:50:52,681 - DEBUG - VN 3d720138-a4bf-425f-9661-242fe0f60259 still in use: Unable to complete operation on network 3d720138-a4bf-425f-9661-242fe0f60259. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-462a63b1-a01b-4444-9b9f-9bf2bed5a97f'] 2024-11-10 20:50:52,681 - WARNING - Deleting VN ctest-vn-10573430 failed..Will retry 2024-11-10 20:50:54,829 - DEBUG - Response for deleting network () 2024-11-10 20:50:54,829 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/deb273c6-ab8b-4158-8bdc-b098816ab246 2024-11-10 20:50:54,844 - DEBUG - Response Code: 404 2024-11-10 20:50:54,845 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-11-10 20:50:54,857 - DEBUG - Requesting: http://10.0.0.29:8082/domain/4ff11d7c-4501-43f9-95fd-2169919ef0b5 2024-11-10 20:50:54,880 - DEBUG - Requesting: http://10.0.0.29:8082/project/46d9543c-b45b-42cb-aedf-2134ca9d21ad 2024-11-10 20:50:54,979 - INFO - Validated that VN ctest-vn-10573430 is not found in API Server 2024-11-10 20:50:54,993 - DEBUG - VN ctest-vn-10573430 is not present in Agent 10.0.0.29 2024-11-10 20:50:54,993 - INFO - Validated that VN ctest-vn-10573430 is not in any agent 2024-11-10 20:50:55,011 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-10573430 info 2024-11-10 20:50:55,011 - INFO - Deleting VN ctest-vn-01325653 2024-11-10 20:50:55,192 - DEBUG - Response for deleting network () 2024-11-10 20:50:55,192 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/6ef98ad2-631f-495a-96b9-62a15c21abf9 2024-11-10 20:50:55,201 - DEBUG - Response Code: 404 2024-11-10 20:50:55,201 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-11-10 20:50:55,208 - DEBUG - Requesting: http://10.0.0.29:8082/domain/4ff11d7c-4501-43f9-95fd-2169919ef0b5 2024-11-10 20:50:55,226 - DEBUG - Requesting: http://10.0.0.29:8082/project/46d9543c-b45b-42cb-aedf-2134ca9d21ad 2024-11-10 20:50:55,323 - INFO - Validated that VN ctest-vn-01325653 is not found in API Server 2024-11-10 20:50:55,337 - DEBUG - VN ctest-vn-01325653 is not present in Agent 10.0.0.29 2024-11-10 20:50:55,337 - INFO - Validated that VN ctest-vn-01325653 is not in any agent 2024-11-10 20:50:55,357 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-01325653 info 2024-11-10 20:50:55,637 - DEBUG - No XMPP flaps were noticed during the test 2024-11-10 20:50:55,637 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37] 2024-11-10 20:50:55,637 - INFO - -------------------------------------------------------------------------------- 2024-11-10 20:50:56,446 - INFO - Deleted project: ctest-TestBasicPolicy-37155368, ID : 46d9543c-b45b-42cb-aedf-2134ca9d21ad