2024-08-26 21:22:11,809 - INFO - Domain Default found not creating 2024-08-26 21:22:11,982 - INFO - Project ctest-TestBasicPolicy-82828795 not found, creating it 2024-08-26 21:22:12,454 - INFO - Created Project:ctest-TestBasicPolicy-82828795, ID : c4b3a63e-56bd-4e72-a37a-a9a268542c5e 2024-08-26 21:22:13,978 - INFO - ================================================================================ 2024-08-26 21:22:13,978 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-26 21:22:13,978 - 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-26 21:22:14,236 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.20': '0'}} with 2024-08-26 21:22:14,236 - INFO - Initial checks done. Running the testcase now 2024-08-26 21:22:14,236 - INFO - 2024-08-26 21:22:14,820 - DEBUG - Response for create_network : {'network': {'id': 'b5b30045-e7e5-44dc-85e7-297f3dd0a2cd', 'name': 'ctest-vn-25048577', 'tenant_id': 'c4b3a63e56bd4e72a37aa9a268542c5e', 'project_id': 'c4b3a63e56bd4e72a37aa9a268542c5e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82828795', 'ctest-vn-25048577'], 'port_security_enabled': True, 'description': ''}} 2024-08-26 21:22:15,025 - DEBUG - Response for create_subnet : {'subnet': {'id': '1d115dc5-bf7b-478e-b213-bb9839303783', 'name': '', 'tenant_id': 'c4b3a63e56bd4e72a37aa9a268542c5e', 'network_id': 'b5b30045-e7e5-44dc-85e7-297f3dd0a2cd', 'ip_version': 4, 'cidr': '165.135.148.192/26', 'allocation_pools': [{'start': '165.135.148.194', 'end': '165.135.148.254'}], 'gateway_ip': '165.135.148.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.135.148.194', 'tags': [], 'project_id': 'c4b3a63e56bd4e72a37aa9a268542c5e'}} 2024-08-26 21:22:15,050 - INFO - Created VN ctest-vn-25048577 2024-08-26 21:22:15,101 - DEBUG - VN ctest-vn-25048577 UUID is b5b30045-e7e5-44dc-85e7-297f3dd0a2cd 2024-08-26 21:22:15,462 - DEBUG - Response for create_network : {'network': {'id': '970eb7e8-5556-4f2a-a903-87189fbdeed4', 'name': 'ctest-vn-38739226', 'tenant_id': 'c4b3a63e56bd4e72a37aa9a268542c5e', 'project_id': 'c4b3a63e56bd4e72a37aa9a268542c5e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82828795', 'ctest-vn-38739226'], 'port_security_enabled': True, 'description': ''}} 2024-08-26 21:22:15,706 - DEBUG - Response for create_subnet : {'subnet': {'id': 'df21d1a3-dfa5-47bc-a72e-f5743291762d', 'name': '', 'tenant_id': 'c4b3a63e56bd4e72a37aa9a268542c5e', 'network_id': '970eb7e8-5556-4f2a-a903-87189fbdeed4', 'ip_version': 4, 'cidr': '142.163.2.0/26', 'allocation_pools': [{'start': '142.163.2.2', 'end': '142.163.2.62'}], 'gateway_ip': '142.163.2.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '142.163.2.2', 'tags': [], 'project_id': 'c4b3a63e56bd4e72a37aa9a268542c5e'}} 2024-08-26 21:22:15,731 - INFO - Created VN ctest-vn-38739226 2024-08-26 21:22:15,785 - DEBUG - VN ctest-vn-38739226 UUID is 970eb7e8-5556-4f2a-a903-87189fbdeed4 2024-08-26 21:22:15,906 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-82828795:ctest-vn-25048577, 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-82828795:ctest-vn-38739226, 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-26 21:22:16,217 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b5b30045-e7e5-44dc-85e7-297f3dd0a2cd', 'name': 'ctest-vn-25048577', 'tenant_id': 'c4b3a63e56bd4e72a37aa9a268542c5e', 'project_id': 'c4b3a63e56bd4e72a37aa9a268542c5e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1d115dc5-bf7b-478e-b213-bb9839303783'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82828795', 'ctest-vn-25048577'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82828795', 'ctest-policy-allow-all-14582312']], 'subnet_ipam': [{'subnet_cidr': '165.135.148.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-26 21:22:16,444 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '970eb7e8-5556-4f2a-a903-87189fbdeed4', 'name': 'ctest-vn-38739226', 'tenant_id': 'c4b3a63e56bd4e72a37aa9a268542c5e', 'project_id': 'c4b3a63e56bd4e72a37aa9a268542c5e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['df21d1a3-dfa5-47bc-a72e-f5743291762d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82828795', 'ctest-vn-38739226'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82828795', 'ctest-policy-allow-all-14582312']], 'subnet_ipam': [{'subnet_cidr': '142.163.2.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-26 21:22:16,589 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-08-26 21:22:16,892 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-08-26 21:22:16,925 - DEBUG - Requesting: http://10.0.0.12:8082/domain/484ee31c-c355-4bdf-97fc-d19048c83f13 2024-08-26 21:22:16,939 - DEBUG - Requesting: http://10.0.0.12:8082/project/c4b3a63e-56bd-4e72-a37a-a9a268542c5e 2024-08-26 21:22:17,011 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/b5b30045-e7e5-44dc-85e7-297f3dd0a2cd 2024-08-26 21:22:17,023 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/b5b30045-e7e5-44dc-85e7-297f3dd0a2cd 2024-08-26 21:22:17,032 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/c232a75f-279c-4a4c-9499-7a78d121c47b 2024-08-26 21:22:17,039 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/c232a75f-279c-4a4c-9499-7a78d121c47b 2024-08-26 21:22:17,047 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/654c410e-0b3e-431a-b9d9-d971a3b12564 2024-08-26 21:22:17,054 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-26 21:22:17,054 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/b5b30045-e7e5-44dc-85e7-297f3dd0a2cd 2024-08-26 21:22:17,062 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/c232a75f-279c-4a4c-9499-7a78d121c47b 2024-08-26 21:22:17,076 - INFO - Verified VN network id 8 for VN b5b30045-e7e5-44dc-85e7-297f3dd0a2cd 2024-08-26 21:22:17,076 - INFO - Verifications in API Server for VN ctest-vn-25048577 passed 2024-08-26 21:22:17,076 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/b5b30045-e7e5-44dc-85e7-297f3dd0a2cd 2024-08-26 21:22:17,085 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/c232a75f-279c-4a4c-9499-7a78d121c47b 2024-08-26 21:22:17,092 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/c232a75f-279c-4a4c-9499-7a78d121c47b 2024-08-26 21:22:17,099 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/654c410e-0b3e-431a-b9d9-d971a3b12564 2024-08-26 21:22:17,111 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82828795:ctest-vn-25048577', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82828795', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13092808841939469532', 'uuid-lslong': '9648726353139245773'}, 'enable': 'true', 'created': '2024-08-26T21:22:14', 'last-modified': '2024-08-26T21:22:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.926548'} 2024-08-26 21:22:17,119 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-26 21:22:17,119 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25048577 passed 2024-08-26 21:22:17,119 - DEBUG - ====Verifying policy data for ctest-vn-25048577 in API_Server ====== 2024-08-26 21:22:17,119 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-08-26 21:22:17,126 - DEBUG - Requesting: http://10.0.0.12:8082/domain/484ee31c-c355-4bdf-97fc-d19048c83f13 2024-08-26 21:22:17,138 - DEBUG - Requesting: http://10.0.0.12:8082/project/c4b3a63e-56bd-4e72-a37a-a9a268542c5e 2024-08-26 21:22:17,211 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/b5b30045-e7e5-44dc-85e7-297f3dd0a2cd 2024-08-26 21:22:17,219 - DEBUG - ==>Verifying data for policy with id: e9040023-752e-4862-8979-55dfe5be78a3, fqn: ['default-domain', 'ctest-TestBasicPolicy-82828795', 'ctest-policy-allow-all-14582312'] 2024-08-26 21:22:17,220 - INFO - VN ctest-vn-25048577 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-26 21:22:17,220 - DEBUG - Verifying the vn in opserver 2024-08-26 21:22:17,220 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82828795:ctest-vn-25048577 virtual network link through opserver 10.0.0.12 2024-08-26 21:22:17,220 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2024-08-26 21:22:17,514 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2024-08-26 21:22:17,576 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82828795:ctest-vn-25048577', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82828795:ctest-vn-25048577?flat'} 2024-08-26 21:22:17,576 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82828795:ctest-vn-25048577 is found in opserver 2024-08-26 21:22:17,587 - DEBUG - Do not have enough data to verify VN in agent 2024-08-26 21:22:17,592 - DEBUG - VRF ids for VN ctest-vn-25048577: {} 2024-08-26 21:22:17,593 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-08-26 21:22:17,598 - DEBUG - Requesting: http://10.0.0.12:8082/domain/484ee31c-c355-4bdf-97fc-d19048c83f13 2024-08-26 21:22:17,610 - DEBUG - Requesting: http://10.0.0.12:8082/project/c4b3a63e-56bd-4e72-a37a-a9a268542c5e 2024-08-26 21:22:17,680 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/970eb7e8-5556-4f2a-a903-87189fbdeed4 2024-08-26 21:22:17,690 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/970eb7e8-5556-4f2a-a903-87189fbdeed4 2024-08-26 21:22:17,699 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/1b2d8d93-7549-45d7-9d1d-43b04af7a9cc 2024-08-26 21:22:17,706 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/1b2d8d93-7549-45d7-9d1d-43b04af7a9cc 2024-08-26 21:22:17,713 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/2bcff4c1-6d71-4213-a731-b04ce02e1385 2024-08-26 21:22:17,720 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-26 21:22:17,720 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/970eb7e8-5556-4f2a-a903-87189fbdeed4 2024-08-26 21:22:17,728 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/1b2d8d93-7549-45d7-9d1d-43b04af7a9cc 2024-08-26 21:22:17,740 - INFO - Verified VN network id 9 for VN 970eb7e8-5556-4f2a-a903-87189fbdeed4 2024-08-26 21:22:17,741 - INFO - Verifications in API Server for VN ctest-vn-38739226 passed 2024-08-26 21:22:17,741 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/970eb7e8-5556-4f2a-a903-87189fbdeed4 2024-08-26 21:22:17,749 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/1b2d8d93-7549-45d7-9d1d-43b04af7a9cc 2024-08-26 21:22:17,756 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/1b2d8d93-7549-45d7-9d1d-43b04af7a9cc 2024-08-26 21:22:17,763 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/2bcff4c1-6d71-4213-a731-b04ce02e1385 2024-08-26 21:22:17,775 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82828795:ctest-vn-38739226', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82828795', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10884839557893082922', 'uuid-lslong': '12178726357168942804'}, 'enable': 'true', 'created': '2024-08-26T21:22:15', 'last-modified': '2024-08-26T21:22:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.352536'} 2024-08-26 21:22:17,782 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-26 21:22:17,782 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38739226 passed 2024-08-26 21:22:17,782 - DEBUG - ====Verifying policy data for ctest-vn-38739226 in API_Server ====== 2024-08-26 21:22:17,782 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-08-26 21:22:17,789 - DEBUG - Requesting: http://10.0.0.12:8082/domain/484ee31c-c355-4bdf-97fc-d19048c83f13 2024-08-26 21:22:17,801 - DEBUG - Requesting: http://10.0.0.12:8082/project/c4b3a63e-56bd-4e72-a37a-a9a268542c5e 2024-08-26 21:22:17,874 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/970eb7e8-5556-4f2a-a903-87189fbdeed4 2024-08-26 21:22:17,883 - DEBUG - ==>Verifying data for policy with id: e9040023-752e-4862-8979-55dfe5be78a3, fqn: ['default-domain', 'ctest-TestBasicPolicy-82828795', 'ctest-policy-allow-all-14582312'] 2024-08-26 21:22:17,883 - INFO - VN ctest-vn-38739226 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-26 21:22:17,883 - DEBUG - Verifying the vn in opserver 2024-08-26 21:22:17,883 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82828795:ctest-vn-38739226 virtual network link through opserver 10.0.0.12 2024-08-26 21:22:17,883 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2024-08-26 21:22:17,894 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82828795:ctest-vn-38739226', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82828795:ctest-vn-38739226?flat'} 2024-08-26 21:22:17,894 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82828795:ctest-vn-38739226 is found in opserver 2024-08-26 21:22:17,906 - DEBUG - Do not have enough data to verify VN in agent 2024-08-26 21:22:17,911 - DEBUG - VRF ids for VN ctest-vn-38739226: {} 2024-08-26 21:22:17,966 - DEBUG - Services list from nova: [, , ] 2024-08-26 21:22:18,978 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1774-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1774-1) 2024-08-26 21:22:20,239 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1774-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1774-1) 2024-08-26 21:22:20,240 - INFO - Waiting for VM ctest-TestBasicPolicy-82828795-51198421 to be up.. 2024-08-26 21:22:20,331 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-26 21:22:25,443 - DEBUG - VM is in ACTIVE state now 2024-08-26 21:22:25,443 - INFO - VM name : ctest-TestBasicPolicy-82828795-51198421 2024-08-26 21:22:25,534 - DEBUG - VM ctest-TestBasicPolicy-82828795-51198421 ID is ab2db0d5-98c0-47df-a93a-502e8a8f2629 2024-08-26 21:22:25,553 - DEBUG - VM ctest-TestBasicPolicy-82828795-51198421 launched on Node cn-jenkins-deploy-platform-ansible-os-1774-1 2024-08-26 21:22:25,633 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/ab2db0d5-98c0-47df-a93a-502e8a8f2629 2024-08-26 21:22:25,644 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/e1403551-d951-4582-912f-8f10ba6fe352 2024-08-26 21:22:28,917 - 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 1026ms') 2024-08-26 21:22:28,917 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-82828795-51198421 failed! 2024-08-26 21:22:28,969 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-82828795:ctest-vn-25048577 is 165.135.148.193 and allocation pool is NOT set 2024-08-26 21:22:31,033 - 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=4.48 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.26 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.260/3.369/4.479/1.109 ms') 2024-08-26 21:22:31,033 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-82828795-51198421 passed 2024-08-26 21:22:31,189 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 21:22:31,189 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-82828795-51198421, IP 165.135.148.195, Port 22 2024-08-26 21:22:31,256 - 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-26 21:22:31,402 - DEBUG - VM ctest-TestBasicPolicy-82828795-51198421 is NOT ready for SSH connections, VM status: ACTIVE 2024-08-26 21:22:36,403 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 21:22:36,403 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-82828795-51198421, IP 165.135.148.195, Port 22 2024-08-26 21:22:36,560 - DEBUG - VM ctest-TestBasicPolicy-82828795-51198421 is ready for SSH connections 2024-08-26 21:22:36,560 - INFO - Waiting for VM ctest-TestBasicPolicy-82828795-35027738 to be up.. 2024-08-26 21:22:36,641 - DEBUG - VM is in ACTIVE state now 2024-08-26 21:22:36,642 - INFO - VM name : ctest-TestBasicPolicy-82828795-35027738 2024-08-26 21:22:36,724 - DEBUG - VM ctest-TestBasicPolicy-82828795-35027738 ID is ea15b6c0-646d-4be6-811d-1a0e83a2093a 2024-08-26 21:22:36,724 - DEBUG - VM ctest-TestBasicPolicy-82828795-35027738 launched on Node cn-jenkins-deploy-platform-ansible-os-1774-1 2024-08-26 21:22:36,806 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/ea15b6c0-646d-4be6-811d-1a0e83a2093a 2024-08-26 21:22:36,818 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/78b7b4c2-8179-4865-823a-ca6975a0faf0 2024-08-26 21:22:38,054 - 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=2.77 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.372 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.372/1.569/2.766/1.197 ms') 2024-08-26 21:22:38,054 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-82828795-35027738 passed 2024-08-26 21:22:38,205 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 21:22:38,205 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-82828795-35027738, IP 142.163.2.3, Port 22 2024-08-26 21:22:38,356 - DEBUG - VM ctest-TestBasicPolicy-82828795-35027738 is ready for SSH connections 2024-08-26 21:22:38,357 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 21:22:38,357 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 142.163.2.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2024-08-26 21:22:38,357 - DEBUG - ping -s 56 -c 3 -W 1 142.163.2.3 2024-08-26 21:22:42,322 - DEBUG - PING 142.163.2.3 (142.163.2.3): 56 data bytes 64 bytes from 142.163.2.3: seq=0 ttl=63 time=3.712 ms 64 bytes from 142.163.2.3: seq=1 ttl=63 time=0.937 ms 64 bytes from 142.163.2.3: seq=2 ttl=63 time=0.854 ms --- 142.163.2.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.854/1.834/3.712 ms 2024-08-26 21:22:42,341 - INFO - Ping to IP 142.163.2.3 from VM ctest-TestBasicPolicy-82828795-51198421 passed 2024-08-26 21:22:42,517 - DEBUG - Policy Update Response {"network-policy": {"uuid": "e9040023-752e-4862-8979-55dfe5be78a3", "href": "http://10.0.0.12:8082/network-policy/e9040023-752e-4862-8979-55dfe5be78a3"}} 2024-08-26 21:22:42,517 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-26 21:22:42,517 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 142.163.2.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2024-08-26 21:22:42,517 - DEBUG - ping -s 56 -c 3 -W 1 142.163.2.3 2024-08-26 21:22:45,722 - DEBUG - PING 142.163.2.3 (142.163.2.3): 56 data bytes 64 bytes from 142.163.2.3: seq=0 ttl=63 time=1.500 ms --- 142.163.2.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.500/1.500/1.500 ms 2024-08-26 21:22:45,723 - WARNING - Ping to IP 142.163.2.3 from VM ctest-TestBasicPolicy-82828795-51198421 failed 2024-08-26 21:22:45,723 - INFO - Deleting VM ctest-TestBasicPolicy-82828795-35027738 2024-08-26 21:22:45,796 - INFO - Deleting VM ctest-TestBasicPolicy-82828795-51198421 2024-08-26 21:22:47,549 - INFO - Deleted policy ctest-policy-allow-all-14582312 2024-08-26 21:22:47,549 - INFO - Deleting VN ctest-vn-38739226 2024-08-26 21:22:47,682 - DEBUG - Response for deleting network () 2024-08-26 21:22:47,682 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/1b2d8d93-7549-45d7-9d1d-43b04af7a9cc 2024-08-26 21:22:47,692 - DEBUG - Response Code: 404 2024-08-26 21:22:47,693 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-08-26 21:22:47,707 - DEBUG - Requesting: http://10.0.0.12:8082/domain/484ee31c-c355-4bdf-97fc-d19048c83f13 2024-08-26 21:22:47,729 - DEBUG - Requesting: http://10.0.0.12:8082/project/c4b3a63e-56bd-4e72-a37a-a9a268542c5e 2024-08-26 21:22:47,811 - INFO - Validated that VN ctest-vn-38739226 is not found in API Server 2024-08-26 21:22:47,823 - DEBUG - VN ctest-vn-38739226 is not present in Agent 10.0.0.12 2024-08-26 21:22:47,823 - INFO - Validated that VN ctest-vn-38739226 is not in any agent 2024-08-26 21:22:47,839 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-38739226 info 2024-08-26 21:22:47,839 - INFO - Deleting VN ctest-vn-25048577 2024-08-26 21:22:47,877 - DEBUG - VN b5b30045-e7e5-44dc-85e7-297f3dd0a2cd still in use: Unable to complete operation on network b5b30045-e7e5-44dc-85e7-297f3dd0a2cd. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-514540f8-6c05-4282-9ebc-aae73f2aa841'] 2024-08-26 21:22:47,877 - WARNING - Deleting VN ctest-vn-25048577 failed..Will retry 2024-08-26 21:22:50,773 - DEBUG - Response for deleting network () 2024-08-26 21:22:50,773 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/c232a75f-279c-4a4c-9499-7a78d121c47b 2024-08-26 21:22:50,781 - DEBUG - Response Code: 404 2024-08-26 21:22:50,781 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-08-26 21:22:50,788 - DEBUG - Requesting: http://10.0.0.12:8082/domain/484ee31c-c355-4bdf-97fc-d19048c83f13 2024-08-26 21:22:50,842 - DEBUG - Requesting: http://10.0.0.12:8082/project/c4b3a63e-56bd-4e72-a37a-a9a268542c5e 2024-08-26 21:22:50,914 - INFO - Validated that VN ctest-vn-25048577 is not found in API Server 2024-08-26 21:22:50,926 - DEBUG - VN ctest-vn-25048577 is not present in Agent 10.0.0.12 2024-08-26 21:22:50,926 - INFO - Validated that VN ctest-vn-25048577 is not in any agent 2024-08-26 21:22:50,942 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-25048577 info 2024-08-26 21:22:51,195 - DEBUG - No XMPP flaps were noticed during the test 2024-08-26 21:22:51,195 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:38] 2024-08-26 21:22:51,195 - INFO - -------------------------------------------------------------------------------- 2024-08-26 21:22:51,857 - INFO - Deleted project: ctest-TestBasicPolicy-82828795, ID : c4b3a63e-56bd-4e72-a37a-a9a268542c5e