2024-12-23 11:39:06,503 - INFO - Domain Default found not creating 2024-12-23 11:39:06,654 - INFO - Project ctest-TestBasicPolicy-03616388 not found, creating it 2024-12-23 11:39:07,185 - INFO - Created Project:ctest-TestBasicPolicy-03616388, ID : 5f659a69-591f-4aa7-97b2-5a08fa56564c 2024-12-23 11:39:08,825 - INFO - ================================================================================ 2024-12-23 11:39:08,825 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-12-23 11:39:08,825 - 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-12-23 11:39:09,081 - DEBUG - Nothing to compare xmpp stats {'10.0.0.44': {'10.20.0.5': '0'}} with 2024-12-23 11:39:09,081 - INFO - Initial checks done. Running the testcase now 2024-12-23 11:39:09,081 - INFO - 2024-12-23 11:39:09,679 - DEBUG - Response for create_network : {'network': {'id': 'db13b8ae-992e-4874-9336-a20d8ebbb3c4', 'name': 'ctest-vn-91022606', 'tenant_id': '5f659a69591f4aa797b25a08fa56564c', 'project_id': '5f659a69591f4aa797b25a08fa56564c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03616388', 'ctest-vn-91022606'], 'port_security_enabled': True, 'description': ''}} 2024-12-23 11:39:09,854 - DEBUG - Response for create_subnet : {'subnet': {'id': '9ef99c78-061c-4208-b427-f29477cd7f7c', 'name': '', 'tenant_id': '5f659a69591f4aa797b25a08fa56564c', 'network_id': 'db13b8ae-992e-4874-9336-a20d8ebbb3c4', 'ip_version': 4, 'cidr': '20.224.164.128/26', 'allocation_pools': [{'start': '20.224.164.130', 'end': '20.224.164.190'}], 'gateway_ip': '20.224.164.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20.224.164.130', 'tags': [], 'project_id': '5f659a69591f4aa797b25a08fa56564c'}} 2024-12-23 11:39:09,876 - INFO - Created VN ctest-vn-91022606 2024-12-23 11:39:09,932 - DEBUG - VN ctest-vn-91022606 UUID is db13b8ae-992e-4874-9336-a20d8ebbb3c4 2024-12-23 11:39:10,228 - DEBUG - Response for create_network : {'network': {'id': 'bf12dd21-38c9-4346-87cd-ec05a649a86d', 'name': 'ctest-vn-10983159', 'tenant_id': '5f659a69591f4aa797b25a08fa56564c', 'project_id': '5f659a69591f4aa797b25a08fa56564c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03616388', 'ctest-vn-10983159'], 'port_security_enabled': True, 'description': ''}} 2024-12-23 11:39:10,446 - DEBUG - Response for create_subnet : {'subnet': {'id': '9fe72b0a-0dee-4b9a-a9d4-10cd14d1127e', 'name': '', 'tenant_id': '5f659a69591f4aa797b25a08fa56564c', 'network_id': 'bf12dd21-38c9-4346-87cd-ec05a649a86d', 'ip_version': 4, 'cidr': '151.60.77.0/26', 'allocation_pools': [{'start': '151.60.77.2', 'end': '151.60.77.62'}], 'gateway_ip': '151.60.77.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '151.60.77.2', 'tags': [], 'project_id': '5f659a69591f4aa797b25a08fa56564c'}} 2024-12-23 11:39:10,467 - INFO - Created VN ctest-vn-10983159 2024-12-23 11:39:10,520 - DEBUG - VN ctest-vn-10983159 UUID is bf12dd21-38c9-4346-87cd-ec05a649a86d 2024-12-23 11:39:10,642 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-03616388:ctest-vn-91022606, 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-03616388:ctest-vn-10983159, 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-12-23 11:39:10,943 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'db13b8ae-992e-4874-9336-a20d8ebbb3c4', 'name': 'ctest-vn-91022606', 'tenant_id': '5f659a69591f4aa797b25a08fa56564c', 'project_id': '5f659a69591f4aa797b25a08fa56564c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9ef99c78-061c-4208-b427-f29477cd7f7c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03616388', 'ctest-vn-91022606'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03616388', 'ctest-policy-allow-all-41547169']], 'subnet_ipam': [{'subnet_cidr': '20.224.164.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-12-23 11:39:11,241 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bf12dd21-38c9-4346-87cd-ec05a649a86d', 'name': 'ctest-vn-10983159', 'tenant_id': '5f659a69591f4aa797b25a08fa56564c', 'project_id': '5f659a69591f4aa797b25a08fa56564c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9fe72b0a-0dee-4b9a-a9d4-10cd14d1127e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03616388', 'ctest-vn-10983159'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03616388', 'ctest-policy-allow-all-41547169']], 'subnet_ipam': [{'subnet_cidr': '151.60.77.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-12-23 11:39:11,409 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-12-23 11:39:11,755 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-12-23 11:39:11,791 - DEBUG - Requesting: http://10.0.0.44:8082/domain/720148ca-78e2-4f54-905c-229612518405 2024-12-23 11:39:11,806 - DEBUG - Requesting: http://10.0.0.44:8082/project/5f659a69-591f-4aa7-97b2-5a08fa56564c 2024-12-23 11:39:11,885 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/db13b8ae-992e-4874-9336-a20d8ebbb3c4 2024-12-23 11:39:11,897 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/db13b8ae-992e-4874-9336-a20d8ebbb3c4 2024-12-23 11:39:11,908 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/06f3d523-6699-4430-beef-f78b1e117078 2024-12-23 11:39:11,916 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/06f3d523-6699-4430-beef-f78b1e117078 2024-12-23 11:39:11,926 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/16eba507-7f86-4819-838f-f0c2945de758 2024-12-23 11:39:11,936 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-12-23 11:39:11,936 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/db13b8ae-992e-4874-9336-a20d8ebbb3c4 2024-12-23 11:39:11,947 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/06f3d523-6699-4430-beef-f78b1e117078 2024-12-23 11:39:11,963 - INFO - Verified VN network id 9 for VN db13b8ae-992e-4874-9336-a20d8ebbb3c4 2024-12-23 11:39:11,964 - INFO - Verifications in API Server for VN ctest-vn-91022606 passed 2024-12-23 11:39:11,964 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/db13b8ae-992e-4874-9336-a20d8ebbb3c4 2024-12-23 11:39:11,986 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/06f3d523-6699-4430-beef-f78b1e117078 2024-12-23 11:39:11,994 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/06f3d523-6699-4430-beef-f78b1e117078 2024-12-23 11:39:12,004 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/16eba507-7f86-4819-838f-f0c2945de758 2024-12-23 11:39:12,020 - DEBUG - Control-node 10.0.0.44 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03616388:ctest-vn-91022606', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03616388', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15786164178897487988', 'uuid-lslong': '10607844151430722500'}, 'enable': 'true', 'created': '2024-12-23T11:39:09', 'last-modified': '2024-12-23T11:39:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.099288'} 2024-12-23 11:39:12,030 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-12-23 11:39:12,030 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91022606 passed 2024-12-23 11:39:12,031 - DEBUG - ====Verifying policy data for ctest-vn-91022606 in API_Server ====== 2024-12-23 11:39:12,031 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-12-23 11:39:12,039 - DEBUG - Requesting: http://10.0.0.44:8082/domain/720148ca-78e2-4f54-905c-229612518405 2024-12-23 11:39:12,060 - DEBUG - Requesting: http://10.0.0.44:8082/project/5f659a69-591f-4aa7-97b2-5a08fa56564c 2024-12-23 11:39:12,147 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/db13b8ae-992e-4874-9336-a20d8ebbb3c4 2024-12-23 11:39:12,158 - DEBUG - ==>Verifying data for policy with id: 6d5802ae-10fa-4f6a-a544-93ebb72aceaa, fqn: ['default-domain', 'ctest-TestBasicPolicy-03616388', 'ctest-policy-allow-all-41547169'] 2024-12-23 11:39:12,158 - INFO - VN ctest-vn-91022606 Policy verification: verify_vn_policy_in_api_server, status: True 2024-12-23 11:39:12,159 - DEBUG - Verifying the vn in opserver 2024-12-23 11:39:12,159 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03616388:ctest-vn-91022606 virtual network link through opserver 10.0.0.44 2024-12-23 11:39:12,159 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks 2024-12-23 11:39:12,502 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks 2024-12-23 11:39:12,561 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03616388:ctest-vn-91022606', 'href': 'http://10.0.0.44:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03616388:ctest-vn-91022606?flat'} 2024-12-23 11:39:12,561 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03616388:ctest-vn-91022606 is found in opserver 2024-12-23 11:39:12,574 - DEBUG - Do not have enough data to verify VN in agent 2024-12-23 11:39:12,580 - DEBUG - VRF ids for VN ctest-vn-91022606: {} 2024-12-23 11:39:12,580 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-12-23 11:39:12,587 - DEBUG - Requesting: http://10.0.0.44:8082/domain/720148ca-78e2-4f54-905c-229612518405 2024-12-23 11:39:12,601 - DEBUG - Requesting: http://10.0.0.44:8082/project/5f659a69-591f-4aa7-97b2-5a08fa56564c 2024-12-23 11:39:12,676 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/bf12dd21-38c9-4346-87cd-ec05a649a86d 2024-12-23 11:39:12,689 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/bf12dd21-38c9-4346-87cd-ec05a649a86d 2024-12-23 11:39:12,700 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/c5e72e3f-55d2-4d1e-bacb-2983c2e9b1b6 2024-12-23 11:39:12,710 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/c5e72e3f-55d2-4d1e-bacb-2983c2e9b1b6 2024-12-23 11:39:12,719 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/5506395a-f236-49a3-b86a-ced5e0722d5d 2024-12-23 11:39:12,726 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-12-23 11:39:12,726 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/bf12dd21-38c9-4346-87cd-ec05a649a86d 2024-12-23 11:39:12,737 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/c5e72e3f-55d2-4d1e-bacb-2983c2e9b1b6 2024-12-23 11:39:12,753 - INFO - Verified VN network id 10 for VN bf12dd21-38c9-4346-87cd-ec05a649a86d 2024-12-23 11:39:12,753 - INFO - Verifications in API Server for VN ctest-vn-10983159 passed 2024-12-23 11:39:12,753 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/bf12dd21-38c9-4346-87cd-ec05a649a86d 2024-12-23 11:39:12,764 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/c5e72e3f-55d2-4d1e-bacb-2983c2e9b1b6 2024-12-23 11:39:12,773 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/c5e72e3f-55d2-4d1e-bacb-2983c2e9b1b6 2024-12-23 11:39:12,781 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/5506395a-f236-49a3-b86a-ced5e0722d5d 2024-12-23 11:39:12,796 - DEBUG - Control-node 10.0.0.44 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03616388:ctest-vn-10983159', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03616388', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13768310145581400902', 'uuid-lslong': '9785737074354792557'}, 'enable': 'true', 'created': '2024-12-23T11:39:10', 'last-modified': '2024-12-23T11:39:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.622432'} 2024-12-23 11:39:12,802 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-12-23 11:39:12,803 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10983159 passed 2024-12-23 11:39:12,803 - DEBUG - ====Verifying policy data for ctest-vn-10983159 in API_Server ====== 2024-12-23 11:39:12,803 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-12-23 11:39:12,809 - DEBUG - Requesting: http://10.0.0.44:8082/domain/720148ca-78e2-4f54-905c-229612518405 2024-12-23 11:39:12,822 - DEBUG - Requesting: http://10.0.0.44:8082/project/5f659a69-591f-4aa7-97b2-5a08fa56564c 2024-12-23 11:39:12,899 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/bf12dd21-38c9-4346-87cd-ec05a649a86d 2024-12-23 11:39:12,910 - DEBUG - ==>Verifying data for policy with id: 6d5802ae-10fa-4f6a-a544-93ebb72aceaa, fqn: ['default-domain', 'ctest-TestBasicPolicy-03616388', 'ctest-policy-allow-all-41547169'] 2024-12-23 11:39:12,910 - INFO - VN ctest-vn-10983159 Policy verification: verify_vn_policy_in_api_server, status: True 2024-12-23 11:39:12,910 - DEBUG - Verifying the vn in opserver 2024-12-23 11:39:12,910 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03616388:ctest-vn-10983159 virtual network link through opserver 10.0.0.44 2024-12-23 11:39:12,910 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks 2024-12-23 11:39:12,921 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03616388:ctest-vn-10983159', 'href': 'http://10.0.0.44:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03616388:ctest-vn-10983159?flat'} 2024-12-23 11:39:12,922 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03616388:ctest-vn-10983159 is found in opserver 2024-12-23 11:39:12,937 - DEBUG - Do not have enough data to verify VN in agent 2024-12-23 11:39:12,944 - DEBUG - VRF ids for VN ctest-vn-10983159: {} 2024-12-23 11:39:13,003 - DEBUG - Services list from nova: [, , ] 2024-12-23 11:39:14,149 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2490-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2490-1) 2024-12-23 11:39:15,580 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2490-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2490-1) 2024-12-23 11:39:15,580 - INFO - Waiting for VM ctest-TestBasicPolicy-03616388-26208577 to be up.. 2024-12-23 11:39:15,683 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-12-23 11:39:20,783 - DEBUG - VM is in ACTIVE state now 2024-12-23 11:39:20,783 - INFO - VM name : ctest-TestBasicPolicy-03616388-26208577 2024-12-23 11:39:20,865 - DEBUG - VM ctest-TestBasicPolicy-03616388-26208577 ID is d74fd371-35cf-454e-a33f-714d7f5f00bb 2024-12-23 11:39:20,887 - DEBUG - VM ctest-TestBasicPolicy-03616388-26208577 launched on Node cn-jenkins-deploy-platform-ansible-os-2490-1 2024-12-23 11:39:20,974 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine/d74fd371-35cf-454e-a33f-714d7f5f00bb 2024-12-23 11:39:20,985 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine-interface/ad942609-49b1-4c7b-959e-cb5cde12d538 2024-12-23 11:39:24,247 - 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 1010ms') 2024-12-23 11:39:24,247 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-03616388-26208577 failed! 2024-12-23 11:39:24,305 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-03616388:ctest-vn-91022606 is 20.224.164.129 and allocation pool is NOT set 2024-12-23 11:39:26,367 - 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=9.68 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.47 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.466/6.073/9.681/3.607 ms') 2024-12-23 11:39:26,367 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-03616388-26208577 passed 2024-12-23 11:39:26,520 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-12-23 11:39:26,521 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-03616388-26208577, IP 20.224.164.131, Port 22 2024-12-23 11:39:26,586 - 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-12-23 11:39:26,677 - DEBUG - VM ctest-TestBasicPolicy-03616388-26208577 is NOT ready for SSH connections, VM status: ACTIVE 2024-12-23 11:39:31,678 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-12-23 11:39:31,678 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-03616388-26208577, IP 20.224.164.131, Port 22 2024-12-23 11:39:31,851 - DEBUG - VM ctest-TestBasicPolicy-03616388-26208577 is ready for SSH connections 2024-12-23 11:39:31,851 - INFO - Waiting for VM ctest-TestBasicPolicy-03616388-05007000 to be up.. 2024-12-23 11:39:31,942 - DEBUG - VM is in ACTIVE state now 2024-12-23 11:39:31,942 - INFO - VM name : ctest-TestBasicPolicy-03616388-05007000 2024-12-23 11:39:32,033 - DEBUG - VM ctest-TestBasicPolicy-03616388-05007000 ID is aaf0b175-5a29-4bed-938b-2c66baf7245d 2024-12-23 11:39:32,033 - DEBUG - VM ctest-TestBasicPolicy-03616388-05007000 launched on Node cn-jenkins-deploy-platform-ansible-os-2490-1 2024-12-23 11:39:32,120 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine/aaf0b175-5a29-4bed-938b-2c66baf7245d 2024-12-23 11:39:32,131 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-machine-interface/7ad13ccf-2c54-4a4b-9228-29b790364ac3 2024-12-23 11:39:33,388 - 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.22 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.460 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 = 0.460/2.341/4.222/1.881 ms') 2024-12-23 11:39:33,388 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-03616388-05007000 passed 2024-12-23 11:39:33,544 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-12-23 11:39:33,545 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-03616388-05007000, IP 151.60.77.3, Port 22 2024-12-23 11:39:33,710 - DEBUG - VM ctest-TestBasicPolicy-03616388-05007000 is ready for SSH connections 2024-12-23 11:39:33,710 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-12-23 11:39:33,711 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 151.60.77.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.44, gateway password: c0ntrail123 2024-12-23 11:39:33,711 - DEBUG - ping -s 56 -c 3 -W 1 151.60.77.3 2024-12-23 11:39:37,843 - DEBUG - PING 151.60.77.3 (151.60.77.3): 56 data bytes 64 bytes from 151.60.77.3: seq=0 ttl=63 time=6.442 ms 64 bytes from 151.60.77.3: seq=1 ttl=63 time=0.932 ms 64 bytes from 151.60.77.3: seq=2 ttl=63 time=1.093 ms --- 151.60.77.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.932/2.822/6.442 ms 2024-12-23 11:39:37,843 - INFO - Ping to IP 151.60.77.3 from VM ctest-TestBasicPolicy-03616388-26208577 passed 2024-12-23 11:39:38,024 - DEBUG - Policy Update Response {"network-policy": {"uuid": "6d5802ae-10fa-4f6a-a544-93ebb72aceaa", "href": "http://10.0.0.44:8082/network-policy/6d5802ae-10fa-4f6a-a544-93ebb72aceaa"}} 2024-12-23 11:39:38,024 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-12-23 11:39:38,025 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 151.60.77.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.44, gateway password: c0ntrail123 2024-12-23 11:39:38,025 - DEBUG - ping -s 56 -c 3 -W 1 151.60.77.3 2024-12-23 11:39:41,259 - DEBUG - PING 151.60.77.3 (151.60.77.3): 56 data bytes --- 151.60.77.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-12-23 11:39:41,259 - WARNING - Ping to IP 151.60.77.3 from VM ctest-TestBasicPolicy-03616388-26208577 failed 2024-12-23 11:39:41,259 - INFO - Deleting VM ctest-TestBasicPolicy-03616388-05007000 2024-12-23 11:39:41,335 - INFO - Deleting VM ctest-TestBasicPolicy-03616388-26208577 2024-12-23 11:39:41,728 - INFO - Deleted policy ctest-policy-allow-all-41547169 2024-12-23 11:39:41,728 - INFO - Deleting VN ctest-vn-10983159 2024-12-23 11:39:41,765 - DEBUG - VN bf12dd21-38c9-4346-87cd-ec05a649a86d still in use: Unable to complete operation on network bf12dd21-38c9-4346-87cd-ec05a649a86d. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-6519118d-2fe0-417b-9442-563b818ddb72'] 2024-12-23 11:39:41,765 - WARNING - Deleting VN ctest-vn-10983159 failed..Will retry 2024-12-23 11:39:43,880 - DEBUG - Response for deleting network () 2024-12-23 11:39:43,880 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/c5e72e3f-55d2-4d1e-bacb-2983c2e9b1b6 2024-12-23 11:39:43,888 - DEBUG - Response Code: 404 2024-12-23 11:39:43,888 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-12-23 11:39:43,896 - DEBUG - Requesting: http://10.0.0.44:8082/domain/720148ca-78e2-4f54-905c-229612518405 2024-12-23 11:39:43,956 - DEBUG - Requesting: http://10.0.0.44:8082/project/5f659a69-591f-4aa7-97b2-5a08fa56564c 2024-12-23 11:39:44,044 - INFO - Validated that VN ctest-vn-10983159 is not found in API Server 2024-12-23 11:39:44,057 - DEBUG - VN ctest-vn-10983159 is not present in Agent 10.0.0.44 2024-12-23 11:39:44,058 - INFO - Validated that VN ctest-vn-10983159 is not in any agent 2024-12-23 11:39:44,080 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-10983159 info 2024-12-23 11:39:44,080 - INFO - Deleting VN ctest-vn-91022606 2024-12-23 11:39:44,198 - DEBUG - Response for deleting network () 2024-12-23 11:39:44,198 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/06f3d523-6699-4430-beef-f78b1e117078 2024-12-23 11:39:44,210 - DEBUG - Response Code: 404 2024-12-23 11:39:44,210 - DEBUG - Requesting: http://10.0.0.44:8082/domains 2024-12-23 11:39:44,217 - DEBUG - Requesting: http://10.0.0.44:8082/domain/720148ca-78e2-4f54-905c-229612518405 2024-12-23 11:39:44,276 - DEBUG - Requesting: http://10.0.0.44:8082/project/5f659a69-591f-4aa7-97b2-5a08fa56564c 2024-12-23 11:39:44,357 - INFO - Validated that VN ctest-vn-91022606 is not found in API Server 2024-12-23 11:39:44,372 - DEBUG - VN ctest-vn-91022606 is not present in Agent 10.0.0.44 2024-12-23 11:39:44,372 - INFO - Validated that VN ctest-vn-91022606 is not in any agent 2024-12-23 11:39:44,393 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-91022606 info 2024-12-23 11:39:44,662 - DEBUG - No XMPP flaps were noticed during the test 2024-12-23 11:39:44,662 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2024-12-23 11:39:44,662 - INFO - -------------------------------------------------------------------------------- 2024-12-23 11:39:45,417 - INFO - Deleted project: ctest-TestBasicPolicy-03616388, ID : 5f659a69-591f-4aa7-97b2-5a08fa56564c