2024-08-27 01:06:04,892 - INFO - Domain Default found not creating 2024-08-27 01:06:05,202 - INFO - Project ctest-TestBasicPolicy-38880541 not found, creating it 2024-08-27 01:06:05,994 - INFO - Created Project:ctest-TestBasicPolicy-38880541, ID : 4003b723-a149-43ab-8c7e-cf6de33bfb18 2024-08-27 01:06:08,221 - INFO - ================================================================================ 2024-08-27 01:06:08,222 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-27 01:06:08,223 - 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-08-27 01:06:08,553 - DEBUG - Nothing to compare xmpp stats {'10.0.0.69': {'10.20.0.21': '0'}} with 2024-08-27 01:06:08,554 - INFO - Initial checks done. Running the testcase now 2024-08-27 01:06:08,554 - INFO - 2024-08-27 01:06:09,313 - DEBUG - Response for create_network : {'network': {'id': 'f388c86d-36e0-45bb-b94d-68476a0879c7', 'name': 'ctest-vn-60580154', 'tenant_id': '4003b723a14943ab8c7ecf6de33bfb18', 'project_id': '4003b723a14943ab8c7ecf6de33bfb18', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38880541', 'ctest-vn-60580154'], 'port_security_enabled': True, 'description': ''}} 2024-08-27 01:06:09,555 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c89fc453-c662-4592-a932-1e5df796ff18', 'name': '', 'tenant_id': '4003b723a14943ab8c7ecf6de33bfb18', 'network_id': 'f388c86d-36e0-45bb-b94d-68476a0879c7', 'ip_version': 4, 'cidr': '40.12.58.192/26', 'allocation_pools': [{'start': '40.12.58.194', 'end': '40.12.58.254'}], 'gateway_ip': '40.12.58.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.12.58.194', 'tags': [], 'project_id': '4003b723a14943ab8c7ecf6de33bfb18'}} 2024-08-27 01:06:09,593 - INFO - Created VN ctest-vn-60580154 2024-08-27 01:06:09,650 - DEBUG - VN ctest-vn-60580154 UUID is f388c86d-36e0-45bb-b94d-68476a0879c7 2024-08-27 01:06:10,291 - DEBUG - Response for create_network : {'network': {'id': 'dc6bc57d-7f81-4b8f-87f1-bfc2b4fcfa48', 'name': 'ctest-vn-77942183', 'tenant_id': '4003b723a14943ab8c7ecf6de33bfb18', 'project_id': '4003b723a14943ab8c7ecf6de33bfb18', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38880541', 'ctest-vn-77942183'], 'port_security_enabled': True, 'description': ''}} 2024-08-27 01:06:10,506 - DEBUG - Response for create_subnet : {'subnet': {'id': '4896c128-8a64-490d-b2ab-111780c11923', 'name': '', 'tenant_id': '4003b723a14943ab8c7ecf6de33bfb18', 'network_id': 'dc6bc57d-7f81-4b8f-87f1-bfc2b4fcfa48', 'ip_version': 4, 'cidr': '66.15.71.0/26', 'allocation_pools': [{'start': '66.15.71.2', 'end': '66.15.71.62'}], 'gateway_ip': '66.15.71.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '66.15.71.2', 'tags': [], 'project_id': '4003b723a14943ab8c7ecf6de33bfb18'}} 2024-08-27 01:06:10,528 - INFO - Created VN ctest-vn-77942183 2024-08-27 01:06:10,582 - DEBUG - VN ctest-vn-77942183 UUID is dc6bc57d-7f81-4b8f-87f1-bfc2b4fcfa48 2024-08-27 01:06:10,745 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-38880541:ctest-vn-60580154, 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-38880541:ctest-vn-77942183, 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-08-27 01:06:11,279 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f388c86d-36e0-45bb-b94d-68476a0879c7', 'name': 'ctest-vn-60580154', 'tenant_id': '4003b723a14943ab8c7ecf6de33bfb18', 'project_id': '4003b723a14943ab8c7ecf6de33bfb18', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c89fc453-c662-4592-a932-1e5df796ff18'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38880541', 'ctest-vn-60580154'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38880541', 'ctest-policy-allow-all-13446046']], 'subnet_ipam': [{'subnet_cidr': '40.12.58.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-27 01:06:11,691 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dc6bc57d-7f81-4b8f-87f1-bfc2b4fcfa48', 'name': 'ctest-vn-77942183', 'tenant_id': '4003b723a14943ab8c7ecf6de33bfb18', 'project_id': '4003b723a14943ab8c7ecf6de33bfb18', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4896c128-8a64-490d-b2ab-111780c11923'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38880541', 'ctest-vn-77942183'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38880541', 'ctest-policy-allow-all-13446046']], 'subnet_ipam': [{'subnet_cidr': '66.15.71.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-27 01:06:11,838 - DEBUG - Requesting: http://10.0.0.69:8082/domains 2024-08-27 01:06:12,212 - DEBUG - Requesting: http://10.0.0.69:8082/domains 2024-08-27 01:06:12,364 - DEBUG - Requesting: http://10.0.0.69:8082/domain/f80ba839-1d23-40df-a7db-41d019257bf6 2024-08-27 01:06:12,396 - DEBUG - Requesting: http://10.0.0.69:8082/project/4003b723-a149-43ab-8c7e-cf6de33bfb18 2024-08-27 01:06:12,503 - DEBUG - Requesting: http://10.0.0.69:8082/virtual-network/f388c86d-36e0-45bb-b94d-68476a0879c7 2024-08-27 01:06:12,531 - DEBUG - Requesting: http://10.0.0.69:8082/virtual-network/f388c86d-36e0-45bb-b94d-68476a0879c7 2024-08-27 01:06:12,559 - DEBUG - Requesting: http://10.0.0.69:8082/routing-instance/6c32c886-182c-4e74-8146-6959984529d9 2024-08-27 01:06:12,583 - DEBUG - Requesting: http://10.0.0.69:8082/routing-instance/6c32c886-182c-4e74-8146-6959984529d9 2024-08-27 01:06:12,605 - DEBUG - Requesting: http://10.0.0.69:8082/route-target/741d6c3a-8740-491e-aaba-953aedc1656f 2024-08-27 01:06:12,624 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-27 01:06:12,624 - DEBUG - Requesting: http://10.0.0.69:8082/virtual-network/f388c86d-36e0-45bb-b94d-68476a0879c7 2024-08-27 01:06:12,645 - DEBUG - Requesting: http://10.0.0.69:8082/routing-instance/6c32c886-182c-4e74-8146-6959984529d9 2024-08-27 01:06:12,673 - INFO - Verified VN network id 7 for VN f388c86d-36e0-45bb-b94d-68476a0879c7 2024-08-27 01:06:12,673 - INFO - Verifications in API Server for VN ctest-vn-60580154 passed 2024-08-27 01:06:12,673 - DEBUG - Requesting: http://10.0.0.69:8082/virtual-network/f388c86d-36e0-45bb-b94d-68476a0879c7 2024-08-27 01:06:12,693 - DEBUG - Requesting: http://10.0.0.69:8082/routing-instance/6c32c886-182c-4e74-8146-6959984529d9 2024-08-27 01:06:12,708 - DEBUG - Requesting: http://10.0.0.69:8082/routing-instance/6c32c886-182c-4e74-8146-6959984529d9 2024-08-27 01:06:12,726 - DEBUG - Requesting: http://10.0.0.69:8082/route-target/741d6c3a-8740-491e-aaba-953aedc1656f 2024-08-27 01:06:12,766 - DEBUG - Control-node 10.0.0.69 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38880541:ctest-vn-60580154', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38880541', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17548496319446795707', 'uuid-lslong': '13352443126154295751'}, 'enable': 'true', 'created': '2024-08-27T01:06:09', 'last-modified': '2024-08-27T01:06:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.550033'} 2024-08-27 01:06:12,788 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-27 01:06:12,789 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60580154 passed 2024-08-27 01:06:12,789 - DEBUG - ====Verifying policy data for ctest-vn-60580154 in API_Server ====== 2024-08-27 01:06:12,789 - DEBUG - Requesting: http://10.0.0.69:8082/domains 2024-08-27 01:06:12,805 - DEBUG - Requesting: http://10.0.0.69:8082/domain/f80ba839-1d23-40df-a7db-41d019257bf6 2024-08-27 01:06:12,834 - DEBUG - Requesting: http://10.0.0.69:8082/project/4003b723-a149-43ab-8c7e-cf6de33bfb18 2024-08-27 01:06:12,942 - DEBUG - Requesting: http://10.0.0.69:8082/virtual-network/f388c86d-36e0-45bb-b94d-68476a0879c7 2024-08-27 01:06:12,958 - DEBUG - ==>Verifying data for policy with id: 2994070f-f7f9-4970-acaa-5d5a596e59c6, fqn: ['default-domain', 'ctest-TestBasicPolicy-38880541', 'ctest-policy-allow-all-13446046'] 2024-08-27 01:06:12,959 - INFO - VN ctest-vn-60580154 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-27 01:06:12,959 - DEBUG - Verifying the vn in opserver 2024-08-27 01:06:12,959 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38880541:ctest-vn-60580154 virtual network link through opserver 10.0.0.69 2024-08-27 01:06:12,959 - DEBUG - Requesting: http://10.0.0.69:8081/analytics/uves/virtual-networks 2024-08-27 01:06:13,277 - DEBUG - Requesting: http://10.0.0.69:8081/analytics/uves/virtual-networks 2024-08-27 01:06:13,398 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38880541:ctest-vn-60580154', 'href': 'http://10.0.0.69:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38880541:ctest-vn-60580154?flat'} 2024-08-27 01:06:13,398 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38880541:ctest-vn-60580154 is found in opserver 2024-08-27 01:06:13,437 - DEBUG - Do not have enough data to verify VN in agent 2024-08-27 01:06:13,453 - DEBUG - VRF ids for VN ctest-vn-60580154: {} 2024-08-27 01:06:13,453 - DEBUG - Requesting: http://10.0.0.69:8082/domains 2024-08-27 01:06:13,468 - DEBUG - Requesting: http://10.0.0.69:8082/domain/f80ba839-1d23-40df-a7db-41d019257bf6 2024-08-27 01:06:13,490 - DEBUG - Requesting: http://10.0.0.69:8082/project/4003b723-a149-43ab-8c7e-cf6de33bfb18 2024-08-27 01:06:13,577 - DEBUG - Requesting: http://10.0.0.69:8082/virtual-network/dc6bc57d-7f81-4b8f-87f1-bfc2b4fcfa48 2024-08-27 01:06:13,604 - DEBUG - Requesting: http://10.0.0.69:8082/virtual-network/dc6bc57d-7f81-4b8f-87f1-bfc2b4fcfa48 2024-08-27 01:06:13,624 - DEBUG - Requesting: http://10.0.0.69:8082/routing-instance/3c5b5aa8-50e3-45a1-84bc-edfe823c788c 2024-08-27 01:06:13,640 - DEBUG - Requesting: http://10.0.0.69:8082/routing-instance/3c5b5aa8-50e3-45a1-84bc-edfe823c788c 2024-08-27 01:06:13,652 - DEBUG - Requesting: http://10.0.0.69:8082/route-target/21bbef00-0caa-4e13-9047-95ee415fe362 2024-08-27 01:06:13,664 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-27 01:06:13,665 - DEBUG - Requesting: http://10.0.0.69:8082/virtual-network/dc6bc57d-7f81-4b8f-87f1-bfc2b4fcfa48 2024-08-27 01:06:13,679 - DEBUG - Requesting: http://10.0.0.69:8082/routing-instance/3c5b5aa8-50e3-45a1-84bc-edfe823c788c 2024-08-27 01:06:13,700 - INFO - Verified VN network id 8 for VN dc6bc57d-7f81-4b8f-87f1-bfc2b4fcfa48 2024-08-27 01:06:13,700 - INFO - Verifications in API Server for VN ctest-vn-77942183 passed 2024-08-27 01:06:13,700 - DEBUG - Requesting: http://10.0.0.69:8082/virtual-network/dc6bc57d-7f81-4b8f-87f1-bfc2b4fcfa48 2024-08-27 01:06:13,712 - DEBUG - Requesting: http://10.0.0.69:8082/routing-instance/3c5b5aa8-50e3-45a1-84bc-edfe823c788c 2024-08-27 01:06:13,723 - DEBUG - Requesting: http://10.0.0.69:8082/routing-instance/3c5b5aa8-50e3-45a1-84bc-edfe823c788c 2024-08-27 01:06:13,732 - DEBUG - Requesting: http://10.0.0.69:8082/route-target/21bbef00-0caa-4e13-9047-95ee415fe362 2024-08-27 01:06:13,753 - DEBUG - Control-node 10.0.0.69 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38880541:ctest-vn-77942183', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38880541', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15883005653652949903', 'uuid-lslong': '9795821507488578120'}, 'enable': 'true', 'created': '2024-08-27T01:06:10', 'last-modified': '2024-08-27T01:06:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.155959'} 2024-08-27 01:06:13,766 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-27 01:06:13,766 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77942183 passed 2024-08-27 01:06:13,766 - DEBUG - ====Verifying policy data for ctest-vn-77942183 in API_Server ====== 2024-08-27 01:06:13,766 - DEBUG - Requesting: http://10.0.0.69:8082/domains 2024-08-27 01:06:13,775 - DEBUG - Requesting: http://10.0.0.69:8082/domain/f80ba839-1d23-40df-a7db-41d019257bf6 2024-08-27 01:06:13,791 - DEBUG - Requesting: http://10.0.0.69:8082/project/4003b723-a149-43ab-8c7e-cf6de33bfb18 2024-08-27 01:06:13,899 - DEBUG - Requesting: http://10.0.0.69:8082/virtual-network/dc6bc57d-7f81-4b8f-87f1-bfc2b4fcfa48 2024-08-27 01:06:13,919 - DEBUG - ==>Verifying data for policy with id: 2994070f-f7f9-4970-acaa-5d5a596e59c6, fqn: ['default-domain', 'ctest-TestBasicPolicy-38880541', 'ctest-policy-allow-all-13446046'] 2024-08-27 01:06:13,919 - INFO - VN ctest-vn-77942183 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-27 01:06:13,919 - DEBUG - Verifying the vn in opserver 2024-08-27 01:06:13,920 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38880541:ctest-vn-77942183 virtual network link through opserver 10.0.0.69 2024-08-27 01:06:13,920 - DEBUG - Requesting: http://10.0.0.69:8081/analytics/uves/virtual-networks 2024-08-27 01:06:13,945 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38880541:ctest-vn-77942183', 'href': 'http://10.0.0.69:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38880541:ctest-vn-77942183?flat'} 2024-08-27 01:06:13,945 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38880541:ctest-vn-77942183 is found in opserver 2024-08-27 01:06:13,971 - DEBUG - Do not have enough data to verify VN in agent 2024-08-27 01:06:13,987 - DEBUG - VRF ids for VN ctest-vn-77942183: {} 2024-08-27 01:06:14,163 - DEBUG - Services list from nova: [, , ] 2024-08-27 01:06:15,843 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1784-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1784-1) 2024-08-27 01:06:17,461 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1784-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1784-1) 2024-08-27 01:06:17,462 - INFO - Waiting for VM ctest-TestBasicPolicy-38880541-65634867 to be up.. 2024-08-27 01:06:17,580 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-27 01:06:22,700 - DEBUG - VM is in ACTIVE state now 2024-08-27 01:06:22,700 - INFO - VM name : ctest-TestBasicPolicy-38880541-65634867 2024-08-27 01:06:22,818 - DEBUG - VM ctest-TestBasicPolicy-38880541-65634867 ID is 0573a93c-4d11-4bcb-99b4-147ad74a5e2f 2024-08-27 01:06:22,841 - DEBUG - VM ctest-TestBasicPolicy-38880541-65634867 launched on Node cn-jenkins-deploy-platform-ansible-os-1784-1 2024-08-27 01:06:22,999 - DEBUG - Requesting: http://10.0.0.69:8082/virtual-machine/0573a93c-4d11-4bcb-99b4-147ad74a5e2f 2024-08-27 01:06:23,016 - DEBUG - Requesting: http://10.0.0.69:8082/virtual-machine-interface/9149c54b-bcab-42f8-b181-a5b249379e6b 2024-08-27 01:06:26,301 - 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-08-27 01:06:26,302 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38880541-65634867 failed! 2024-08-27 01:06:26,370 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-38880541:ctest-vn-60580154 is 40.12.58.193 and allocation pool is NOT set 2024-08-27 01:06:28,452 - 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=7.76 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.54 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 1.539/4.650/7.762/3.111 ms') 2024-08-27 01:06:28,452 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38880541-65634867 passed 2024-08-27 01:06:28,618 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 01:06:28,618 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38880541-65634867, IP 40.12.58.195, Port 22 2024-08-27 01:06:28,684 - 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-08-27 01:06:28,791 - DEBUG - VM ctest-TestBasicPolicy-38880541-65634867 is NOT ready for SSH connections, VM status: ACTIVE 2024-08-27 01:06:33,793 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 01:06:33,793 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38880541-65634867, IP 40.12.58.195, Port 22 2024-08-27 01:06:34,000 - DEBUG - VM ctest-TestBasicPolicy-38880541-65634867 is ready for SSH connections 2024-08-27 01:06:34,000 - INFO - Waiting for VM ctest-TestBasicPolicy-38880541-21016747 to be up.. 2024-08-27 01:06:34,220 - DEBUG - VM is in ACTIVE state now 2024-08-27 01:06:34,220 - INFO - VM name : ctest-TestBasicPolicy-38880541-21016747 2024-08-27 01:06:34,410 - DEBUG - VM ctest-TestBasicPolicy-38880541-21016747 ID is 1d9b1d44-2e14-47b7-a0fa-6f46c2aa873d 2024-08-27 01:06:34,411 - DEBUG - VM ctest-TestBasicPolicy-38880541-21016747 launched on Node cn-jenkins-deploy-platform-ansible-os-1784-1 2024-08-27 01:06:34,539 - DEBUG - Requesting: http://10.0.0.69:8082/virtual-machine/1d9b1d44-2e14-47b7-a0fa-6f46c2aa873d 2024-08-27 01:06:34,552 - DEBUG - Requesting: http://10.0.0.69:8082/virtual-machine-interface/ae60c7ab-f259-4ef0-82c7-5317ce00af38 2024-08-27 01:06:35,853 - 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=9.41 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.583 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.583/4.998/9.414/4.415 ms') 2024-08-27 01:06:35,853 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-38880541-21016747 passed 2024-08-27 01:06:36,014 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 01:06:36,014 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38880541-21016747, IP 66.15.71.3, Port 22 2024-08-27 01:06:36,189 - DEBUG - VM ctest-TestBasicPolicy-38880541-21016747 is ready for SSH connections 2024-08-27 01:06:36,189 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 01:06:36,190 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 66.15.71.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.69, gateway password: c0ntrail123 2024-08-27 01:06:36,190 - DEBUG - ping -s 56 -c 3 -W 1 66.15.71.3 2024-08-27 01:06:40,498 - DEBUG - PING 66.15.71.3 (66.15.71.3): 56 data bytes 64 bytes from 66.15.71.3: seq=0 ttl=63 time=9.321 ms 64 bytes from 66.15.71.3: seq=1 ttl=63 time=2.025 ms 64 bytes from 66.15.71.3: seq=2 ttl=63 time=1.494 ms --- 66.15.71.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.494/4.280/9.321 ms 2024-08-27 01:06:40,498 - INFO - Ping to IP 66.15.71.3 from VM ctest-TestBasicPolicy-38880541-65634867 passed 2024-08-27 01:06:40,746 - DEBUG - Policy Update Response {"network-policy": {"uuid": "2994070f-f7f9-4970-acaa-5d5a596e59c6", "href": "http://10.0.0.69:8082/network-policy/2994070f-f7f9-4970-acaa-5d5a596e59c6"}} 2024-08-27 01:06:40,746 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 01:06:40,746 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 66.15.71.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.69, gateway password: c0ntrail123 2024-08-27 01:06:40,746 - DEBUG - ping -s 56 -c 3 -W 1 66.15.71.3 2024-08-27 01:06:43,977 - DEBUG - PING 66.15.71.3 (66.15.71.3): 56 data bytes --- 66.15.71.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-08-27 01:06:43,977 - WARNING - Ping to IP 66.15.71.3 from VM ctest-TestBasicPolicy-38880541-65634867 failed 2024-08-27 01:06:43,978 - INFO - Deleting VM ctest-TestBasicPolicy-38880541-21016747 2024-08-27 01:06:44,103 - INFO - Deleting VM ctest-TestBasicPolicy-38880541-65634867 2024-08-27 01:06:44,610 - INFO - Deleted policy ctest-policy-allow-all-13446046 2024-08-27 01:06:44,611 - INFO - Deleting VN ctest-vn-77942183 2024-08-27 01:06:44,658 - DEBUG - VN dc6bc57d-7f81-4b8f-87f1-bfc2b4fcfa48 still in use: Unable to complete operation on network dc6bc57d-7f81-4b8f-87f1-bfc2b4fcfa48. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c47d4975-d8f9-46d1-b6c2-3c3068c9e4ad'] 2024-08-27 01:06:44,659 - WARNING - Deleting VN ctest-vn-77942183 failed..Will retry 2024-08-27 01:06:46,891 - DEBUG - Response for deleting network () 2024-08-27 01:06:46,891 - DEBUG - Requesting: http://10.0.0.69:8082/routing-instance/3c5b5aa8-50e3-45a1-84bc-edfe823c788c 2024-08-27 01:06:46,902 - DEBUG - Response Code: 404 2024-08-27 01:06:46,903 - DEBUG - Requesting: http://10.0.0.69:8082/domains 2024-08-27 01:06:46,914 - DEBUG - Requesting: http://10.0.0.69:8082/domain/f80ba839-1d23-40df-a7db-41d019257bf6 2024-08-27 01:06:46,940 - DEBUG - Requesting: http://10.0.0.69:8082/project/4003b723-a149-43ab-8c7e-cf6de33bfb18 2024-08-27 01:06:47,027 - INFO - Validated that VN ctest-vn-77942183 is not found in API Server 2024-08-27 01:06:47,049 - DEBUG - VN ctest-vn-77942183 is not present in Agent 10.0.0.69 2024-08-27 01:06:47,049 - INFO - Validated that VN ctest-vn-77942183 is not in any agent 2024-08-27 01:06:47,073 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-77942183 info 2024-08-27 01:06:47,073 - INFO - Deleting VN ctest-vn-60580154 2024-08-27 01:06:47,255 - DEBUG - Response for deleting network () 2024-08-27 01:06:47,255 - DEBUG - Requesting: http://10.0.0.69:8082/routing-instance/6c32c886-182c-4e74-8146-6959984529d9 2024-08-27 01:06:47,264 - DEBUG - Response Code: 404 2024-08-27 01:06:47,265 - DEBUG - Requesting: http://10.0.0.69:8082/domains 2024-08-27 01:06:47,279 - DEBUG - Requesting: http://10.0.0.69:8082/domain/f80ba839-1d23-40df-a7db-41d019257bf6 2024-08-27 01:06:47,297 - DEBUG - Requesting: http://10.0.0.69:8082/project/4003b723-a149-43ab-8c7e-cf6de33bfb18 2024-08-27 01:06:47,394 - INFO - Validated that VN ctest-vn-60580154 is not found in API Server 2024-08-27 01:06:47,415 - DEBUG - VN ctest-vn-60580154 is not present in Agent 10.0.0.69 2024-08-27 01:06:47,415 - INFO - Validated that VN ctest-vn-60580154 is not in any agent 2024-08-27 01:06:47,444 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-60580154 info 2024-08-27 01:06:47,759 - DEBUG - No XMPP flaps were noticed during the test
2024-08-27 01:06:47,760 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:39]
2024-08-27 01:06:47,760 - INFO - -------------------------------------------------------------------------------- 2024-08-27 01:06:48,810 - INFO - Deleted project: ctest-TestBasicPolicy-38880541, ID : 4003b723-a149-43ab-8c7e-cf6de33bfb18