2024-09-16 22:07:12,838 - INFO - Domain Default found not creating 2024-09-16 22:07:13,061 - INFO - Project ctest-TestBasicPolicy-30605619 not found, creating it 2024-09-16 22:07:13,819 - INFO - Created Project:ctest-TestBasicPolicy-30605619, ID : 819dd6c9-be6d-49d9-9e8d-e75eadb067ef 2024-09-16 22:07:15,291 - INFO - ================================================================================ 2024-09-16 22:07:15,291 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-16 22:07:15,291 - 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-09-16 22:07:15,545 - DEBUG - Nothing to compare xmpp stats {'10.0.0.47': {'10.20.0.22': '0'}} with 2024-09-16 22:07:15,545 - INFO - Initial checks done. Running the testcase now 2024-09-16 22:07:15,545 - INFO - 2024-09-16 22:07:16,122 - DEBUG - Response for create_network : {'network': {'id': 'df5a85ce-99ca-4a5d-ab53-ce30a259af6e', 'name': 'ctest-vn-59290888', 'tenant_id': '819dd6c9be6d49d99e8de75eadb067ef', 'project_id': '819dd6c9be6d49d99e8de75eadb067ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30605619', 'ctest-vn-59290888'], 'port_security_enabled': True, 'description': ''}} 2024-09-16 22:07:16,326 - DEBUG - Response for create_subnet : {'subnet': {'id': '3dee2cab-eb60-4888-a68d-c985d6a093d3', 'name': '', 'tenant_id': '819dd6c9be6d49d99e8de75eadb067ef', 'network_id': 'df5a85ce-99ca-4a5d-ab53-ce30a259af6e', 'ip_version': 4, 'cidr': '166.176.105.0/26', 'allocation_pools': [{'start': '166.176.105.2', 'end': '166.176.105.62'}], 'gateway_ip': '166.176.105.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.176.105.2', 'tags': [], 'project_id': '819dd6c9be6d49d99e8de75eadb067ef'}} 2024-09-16 22:07:16,344 - INFO - Created VN ctest-vn-59290888 2024-09-16 22:07:16,399 - DEBUG - VN ctest-vn-59290888 UUID is df5a85ce-99ca-4a5d-ab53-ce30a259af6e 2024-09-16 22:07:16,697 - DEBUG - Response for create_network : {'network': {'id': 'b348196e-acb8-45b6-9da9-36ac61d8c2d6', 'name': 'ctest-vn-16254861', 'tenant_id': '819dd6c9be6d49d99e8de75eadb067ef', 'project_id': '819dd6c9be6d49d99e8de75eadb067ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30605619', 'ctest-vn-16254861'], 'port_security_enabled': True, 'description': ''}} 2024-09-16 22:07:16,919 - DEBUG - Response for create_subnet : {'subnet': {'id': '3c20976f-7b11-49ed-b398-f27db8a54d1c', 'name': '', 'tenant_id': '819dd6c9be6d49d99e8de75eadb067ef', 'network_id': 'b348196e-acb8-45b6-9da9-36ac61d8c2d6', 'ip_version': 4, 'cidr': '71.225.249.64/26', 'allocation_pools': [{'start': '71.225.249.66', 'end': '71.225.249.126'}], 'gateway_ip': '71.225.249.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '71.225.249.66', 'tags': [], 'project_id': '819dd6c9be6d49d99e8de75eadb067ef'}} 2024-09-16 22:07:16,941 - INFO - Created VN ctest-vn-16254861 2024-09-16 22:07:17,003 - DEBUG - VN ctest-vn-16254861 UUID is b348196e-acb8-45b6-9da9-36ac61d8c2d6 2024-09-16 22:07:17,118 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-30605619:ctest-vn-59290888, 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-30605619:ctest-vn-16254861, 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-09-16 22:07:17,437 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'df5a85ce-99ca-4a5d-ab53-ce30a259af6e', 'name': 'ctest-vn-59290888', 'tenant_id': '819dd6c9be6d49d99e8de75eadb067ef', 'project_id': '819dd6c9be6d49d99e8de75eadb067ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3dee2cab-eb60-4888-a68d-c985d6a093d3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30605619', 'ctest-vn-59290888'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30605619', 'ctest-policy-allow-all-10498788']], 'subnet_ipam': [{'subnet_cidr': '166.176.105.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-16 22:07:17,683 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b348196e-acb8-45b6-9da9-36ac61d8c2d6', 'name': 'ctest-vn-16254861', 'tenant_id': '819dd6c9be6d49d99e8de75eadb067ef', 'project_id': '819dd6c9be6d49d99e8de75eadb067ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3c20976f-7b11-49ed-b398-f27db8a54d1c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30605619', 'ctest-vn-16254861'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30605619', 'ctest-policy-allow-all-10498788']], 'subnet_ipam': [{'subnet_cidr': '71.225.249.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-16 22:07:17,867 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-09-16 22:07:18,163 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-09-16 22:07:18,193 - DEBUG - Requesting: http://10.0.0.47:8082/domain/af8599bc-d41b-40c1-938f-1d8f0c770c90 2024-09-16 22:07:18,208 - DEBUG - Requesting: http://10.0.0.47:8082/project/819dd6c9-be6d-49d9-9e8d-e75eadb067ef 2024-09-16 22:07:18,288 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/df5a85ce-99ca-4a5d-ab53-ce30a259af6e 2024-09-16 22:07:18,303 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/df5a85ce-99ca-4a5d-ab53-ce30a259af6e 2024-09-16 22:07:18,316 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/a9810d05-cbc3-4b1e-a562-fc7a83f3a4bb 2024-09-16 22:07:18,325 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/a9810d05-cbc3-4b1e-a562-fc7a83f3a4bb 2024-09-16 22:07:18,332 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/ea99eb13-f684-404d-aebc-5daa543f7b6f 2024-09-16 22:07:18,339 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-16 22:07:18,339 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/df5a85ce-99ca-4a5d-ab53-ce30a259af6e 2024-09-16 22:07:18,351 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/a9810d05-cbc3-4b1e-a562-fc7a83f3a4bb 2024-09-16 22:07:18,370 - INFO - Verified VN network id 8 for VN df5a85ce-99ca-4a5d-ab53-ce30a259af6e 2024-09-16 22:07:18,370 - INFO - Verifications in API Server for VN ctest-vn-59290888 passed 2024-09-16 22:07:18,370 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/df5a85ce-99ca-4a5d-ab53-ce30a259af6e 2024-09-16 22:07:18,384 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/a9810d05-cbc3-4b1e-a562-fc7a83f3a4bb 2024-09-16 22:07:18,392 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/a9810d05-cbc3-4b1e-a562-fc7a83f3a4bb 2024-09-16 22:07:18,399 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/ea99eb13-f684-404d-aebc-5daa543f7b6f 2024-09-16 22:07:18,411 - DEBUG - Control-node 10.0.0.47 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30605619:ctest-vn-59290888', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30605619', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16094323340751817309', 'uuid-lslong': '12345437711830200174'}, 'enable': 'true', 'created': '2024-09-16T22:07:16', 'last-modified': '2024-09-16T22:07:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.003570'} 2024-09-16 22:07:18,417 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-16 22:07:18,417 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59290888 passed 2024-09-16 22:07:18,417 - DEBUG - ====Verifying policy data for ctest-vn-59290888 in API_Server ====== 2024-09-16 22:07:18,417 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-09-16 22:07:18,422 - DEBUG - Requesting: http://10.0.0.47:8082/domain/af8599bc-d41b-40c1-938f-1d8f0c770c90 2024-09-16 22:07:18,434 - DEBUG - Requesting: http://10.0.0.47:8082/project/819dd6c9-be6d-49d9-9e8d-e75eadb067ef 2024-09-16 22:07:18,514 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/df5a85ce-99ca-4a5d-ab53-ce30a259af6e 2024-09-16 22:07:18,531 - DEBUG - ==>Verifying data for policy with id: 8c3b969b-13b0-46f5-b69e-56fb1d8c2af9, fqn: ['default-domain', 'ctest-TestBasicPolicy-30605619', 'ctest-policy-allow-all-10498788'] 2024-09-16 22:07:18,531 - INFO - VN ctest-vn-59290888 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-16 22:07:18,532 - DEBUG - Verifying the vn in opserver 2024-09-16 22:07:18,532 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30605619:ctest-vn-59290888 virtual network link through opserver 10.0.0.47 2024-09-16 22:07:18,532 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks 2024-09-16 22:07:19,088 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks 2024-09-16 22:07:19,167 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30605619:ctest-vn-59290888', 'href': 'http://10.0.0.47:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30605619:ctest-vn-59290888?flat'} 2024-09-16 22:07:19,167 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30605619:ctest-vn-59290888 is found in opserver 2024-09-16 22:07:19,180 - DEBUG - Do not have enough data to verify VN in agent 2024-09-16 22:07:19,185 - DEBUG - VRF ids for VN ctest-vn-59290888: {} 2024-09-16 22:07:19,185 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-09-16 22:07:19,190 - DEBUG - Requesting: http://10.0.0.47:8082/domain/af8599bc-d41b-40c1-938f-1d8f0c770c90 2024-09-16 22:07:19,203 - DEBUG - Requesting: http://10.0.0.47:8082/project/819dd6c9-be6d-49d9-9e8d-e75eadb067ef 2024-09-16 22:07:19,287 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/b348196e-acb8-45b6-9da9-36ac61d8c2d6 2024-09-16 22:07:19,308 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/b348196e-acb8-45b6-9da9-36ac61d8c2d6 2024-09-16 22:07:19,322 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/2e82c15f-5d6b-4d75-932f-272a830aa1c1 2024-09-16 22:07:19,330 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/2e82c15f-5d6b-4d75-932f-272a830aa1c1 2024-09-16 22:07:19,338 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/90e0de68-000f-4ec3-92cd-d987da3cd538 2024-09-16 22:07:19,345 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-16 22:07:19,345 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/b348196e-acb8-45b6-9da9-36ac61d8c2d6 2024-09-16 22:07:19,359 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/2e82c15f-5d6b-4d75-932f-272a830aa1c1 2024-09-16 22:07:19,378 - INFO - Verified VN network id 9 for VN b348196e-acb8-45b6-9da9-36ac61d8c2d6 2024-09-16 22:07:19,378 - INFO - Verifications in API Server for VN ctest-vn-16254861 passed 2024-09-16 22:07:19,378 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/b348196e-acb8-45b6-9da9-36ac61d8c2d6 2024-09-16 22:07:19,392 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/2e82c15f-5d6b-4d75-932f-272a830aa1c1 2024-09-16 22:07:19,400 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/2e82c15f-5d6b-4d75-932f-272a830aa1c1 2024-09-16 22:07:19,409 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/90e0de68-000f-4ec3-92cd-d987da3cd538 2024-09-16 22:07:19,422 - DEBUG - Control-node 10.0.0.47 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30605619:ctest-vn-16254861', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30605619', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12918603494247122358', 'uuid-lslong': '11360671649022657238'}, 'enable': 'true', 'created': '2024-09-16T22:07:16', 'last-modified': '2024-09-16T22:07:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.766871'} 2024-09-16 22:07:19,428 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-16 22:07:19,429 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16254861 passed 2024-09-16 22:07:19,429 - DEBUG - ====Verifying policy data for ctest-vn-16254861 in API_Server ====== 2024-09-16 22:07:19,429 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-09-16 22:07:19,434 - DEBUG - Requesting: http://10.0.0.47:8082/domain/af8599bc-d41b-40c1-938f-1d8f0c770c90 2024-09-16 22:07:19,446 - DEBUG - Requesting: http://10.0.0.47:8082/project/819dd6c9-be6d-49d9-9e8d-e75eadb067ef 2024-09-16 22:07:19,526 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/b348196e-acb8-45b6-9da9-36ac61d8c2d6 2024-09-16 22:07:19,541 - DEBUG - ==>Verifying data for policy with id: 8c3b969b-13b0-46f5-b69e-56fb1d8c2af9, fqn: ['default-domain', 'ctest-TestBasicPolicy-30605619', 'ctest-policy-allow-all-10498788'] 2024-09-16 22:07:19,541 - INFO - VN ctest-vn-16254861 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-16 22:07:19,541 - DEBUG - Verifying the vn in opserver 2024-09-16 22:07:19,541 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30605619:ctest-vn-16254861 virtual network link through opserver 10.0.0.47 2024-09-16 22:07:19,541 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks 2024-09-16 22:07:19,554 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30605619:ctest-vn-16254861', 'href': 'http://10.0.0.47:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30605619:ctest-vn-16254861?flat'} 2024-09-16 22:07:19,554 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30605619:ctest-vn-16254861 is found in opserver 2024-09-16 22:07:19,565 - DEBUG - Do not have enough data to verify VN in agent 2024-09-16 22:07:19,570 - DEBUG - VRF ids for VN ctest-vn-16254861: {} 2024-09-16 22:07:19,628 - DEBUG - Services list from nova: [, , ] 2024-09-16 22:07:20,638 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1948-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1948-1) 2024-09-16 22:07:21,822 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1948-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1948-1) 2024-09-16 22:07:21,823 - INFO - Waiting for VM ctest-TestBasicPolicy-30605619-31178607 to be up.. 2024-09-16 22:07:21,926 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-16 22:07:27,008 - DEBUG - VM is in ACTIVE state now 2024-09-16 22:07:27,008 - INFO - VM name : ctest-TestBasicPolicy-30605619-31178607 2024-09-16 22:07:27,091 - DEBUG - VM ctest-TestBasicPolicy-30605619-31178607 ID is ac8948ce-7b5d-4147-8206-7d5762f8e4b7 2024-09-16 22:07:27,113 - DEBUG - VM ctest-TestBasicPolicy-30605619-31178607 launched on Node cn-jenkins-deploy-platform-ansible-os-1948-1 2024-09-16 22:07:27,191 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine/ac8948ce-7b5d-4147-8206-7d5762f8e4b7 2024-09-16 22:07:27,201 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine-interface/25dc182a-b875-40b9-8c5a-3981ade63752 2024-09-16 22:07:30,451 - 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 1003ms') 2024-09-16 22:07:30,451 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-30605619-31178607 failed! 2024-09-16 22:07:30,514 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-30605619:ctest-vn-59290888 is 166.176.105.1 and allocation pool is NOT set 2024-09-16 22:07:32,576 - 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=3.11 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.454 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 = 0.454/1.779/3.105/1.325 ms') 2024-09-16 22:07:32,576 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-30605619-31178607 passed 2024-09-16 22:07:32,735 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-16 22:07:32,735 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-30605619-31178607, IP 166.176.105.3, Port 22 2024-09-16 22:07:32,890 - DEBUG - VM ctest-TestBasicPolicy-30605619-31178607 is ready for SSH connections 2024-09-16 22:07:32,891 - INFO - Waiting for VM ctest-TestBasicPolicy-30605619-93047071 to be up.. 2024-09-16 22:07:32,977 - DEBUG - VM is in ACTIVE state now 2024-09-16 22:07:32,977 - INFO - VM name : ctest-TestBasicPolicy-30605619-93047071 2024-09-16 22:07:33,066 - DEBUG - VM ctest-TestBasicPolicy-30605619-93047071 ID is 1f946da6-b43b-4a0f-be40-748e12525461 2024-09-16 22:07:33,066 - DEBUG - VM ctest-TestBasicPolicy-30605619-93047071 launched on Node cn-jenkins-deploy-platform-ansible-os-1948-1 2024-09-16 22:07:33,151 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine/1f946da6-b43b-4a0f-be40-748e12525461 2024-09-16 22:07:33,161 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine-interface/868bd565-080f-4d0c-8b6b-2d806eef2fc2 2024-09-16 22:07:34,415 - 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.86 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.383 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.383/1.623/2.864/1.240 ms') 2024-09-16 22:07:34,415 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-30605619-93047071 passed 2024-09-16 22:07:34,571 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-16 22:07:34,571 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-30605619-93047071, IP 71.225.249.67, Port 22 2024-09-16 22:07:34,726 - DEBUG - VM ctest-TestBasicPolicy-30605619-93047071 is ready for SSH connections 2024-09-16 22:07:34,726 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-16 22:07:34,726 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 71.225.249.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.47, gateway password: c0ntrail123 2024-09-16 22:07:34,726 - DEBUG - ping -s 56 -c 3 -W 1 71.225.249.67 2024-09-16 22:07:38,411 - DEBUG - PING 71.225.249.67 (71.225.249.67): 56 data bytes 64 bytes from 71.225.249.67: seq=0 ttl=63 time=3.200 ms 64 bytes from 71.225.249.67: seq=1 ttl=63 time=0.845 ms 64 bytes from 71.225.249.67: seq=2 ttl=63 time=0.907 ms --- 71.225.249.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.845/1.650/3.200 ms 2024-09-16 22:07:38,411 - INFO - Ping to IP 71.225.249.67 from VM ctest-TestBasicPolicy-30605619-31178607 passed 2024-09-16 22:07:38,603 - DEBUG - Policy Update Response {"network-policy": {"uuid": "8c3b969b-13b0-46f5-b69e-56fb1d8c2af9", "href": "http://10.0.0.47:8082/network-policy/8c3b969b-13b0-46f5-b69e-56fb1d8c2af9"}} 2024-09-16 22:07:38,603 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-16 22:07:38,603 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 71.225.249.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.47, gateway password: c0ntrail123 2024-09-16 22:07:38,603 - DEBUG - ping -s 56 -c 3 -W 1 71.225.249.67 2024-09-16 22:07:41,804 - DEBUG - PING 71.225.249.67 (71.225.249.67): 56 data bytes 64 bytes from 71.225.249.67: seq=0 ttl=63 time=1.761 ms --- 71.225.249.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.761/1.761/1.761 ms 2024-09-16 22:07:41,804 - WARNING - Ping to IP 71.225.249.67 from VM ctest-TestBasicPolicy-30605619-31178607 failed 2024-09-16 22:07:41,805 - INFO - Deleting VM ctest-TestBasicPolicy-30605619-93047071 2024-09-16 22:07:41,864 - INFO - Deleting VM ctest-TestBasicPolicy-30605619-31178607 2024-09-16 22:07:42,277 - INFO - Deleted policy ctest-policy-allow-all-10498788 2024-09-16 22:07:42,277 - INFO - Deleting VN ctest-vn-16254861 2024-09-16 22:07:42,323 - DEBUG - VN b348196e-acb8-45b6-9da9-36ac61d8c2d6 still in use: Unable to complete operation on network b348196e-acb8-45b6-9da9-36ac61d8c2d6. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b2d0ea81-62a8-4c9f-8f2b-47f88635e68e'] 2024-09-16 22:07:42,323 - WARNING - Deleting VN ctest-vn-16254861 failed..Will retry 2024-09-16 22:07:44,434 - DEBUG - Response for deleting network () 2024-09-16 22:07:44,434 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/2e82c15f-5d6b-4d75-932f-272a830aa1c1 2024-09-16 22:07:44,441 - DEBUG - Response Code: 404 2024-09-16 22:07:44,441 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-09-16 22:07:44,448 - DEBUG - Requesting: http://10.0.0.47:8082/domain/af8599bc-d41b-40c1-938f-1d8f0c770c90 2024-09-16 22:07:44,505 - DEBUG - Requesting: http://10.0.0.47:8082/project/819dd6c9-be6d-49d9-9e8d-e75eadb067ef 2024-09-16 22:07:44,585 - INFO - Validated that VN ctest-vn-16254861 is not found in API Server 2024-09-16 22:07:44,595 - DEBUG - VN ctest-vn-16254861 is not present in Agent 10.0.0.47 2024-09-16 22:07:44,595 - INFO - Validated that VN ctest-vn-16254861 is not in any agent 2024-09-16 22:07:44,611 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-16254861 info 2024-09-16 22:07:44,611 - INFO - Deleting VN ctest-vn-59290888 2024-09-16 22:07:44,730 - DEBUG - Response for deleting network () 2024-09-16 22:07:44,730 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/a9810d05-cbc3-4b1e-a562-fc7a83f3a4bb 2024-09-16 22:07:44,736 - DEBUG - Response Code: 404 2024-09-16 22:07:44,736 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-09-16 22:07:44,743 - DEBUG - Requesting: http://10.0.0.47:8082/domain/af8599bc-d41b-40c1-938f-1d8f0c770c90 2024-09-16 22:07:44,797 - DEBUG - Requesting: http://10.0.0.47:8082/project/819dd6c9-be6d-49d9-9e8d-e75eadb067ef 2024-09-16 22:07:44,879 - INFO - Validated that VN ctest-vn-59290888 is not found in API Server 2024-09-16 22:07:44,890 - DEBUG - VN ctest-vn-59290888 is not present in Agent 10.0.0.47 2024-09-16 22:07:44,890 - INFO - Validated that VN ctest-vn-59290888 is not in any agent 2024-09-16 22:07:44,908 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-59290888 info 2024-09-16 22:07:45,160 - DEBUG - No XMPP flaps were noticed during the test 2024-09-16 22:07:45,160 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30] 2024-09-16 22:07:45,160 - INFO - -------------------------------------------------------------------------------- 2024-09-16 22:07:45,871 - INFO - Deleted project: ctest-TestBasicPolicy-30605619, ID : 819dd6c9-be6d-49d9-9e8d-e75eadb067ef