2024-10-25 17:56:48,359 - INFO - Domain Default found not creating 2024-10-25 17:56:48,574 - INFO - Project ctest-TestBasicPolicy-29124102 not found, creating it 2024-10-25 17:56:49,192 - INFO - Created Project:ctest-TestBasicPolicy-29124102, ID : 7cb62991-e54a-4835-ac48-219b0ec1f377 2024-10-25 17:56:51,636 - INFO - ================================================================================ 2024-10-25 17:56:51,637 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-25 17:56:51,637 - 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-10-25 17:56:51,896 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.11': '0'}} with 2024-10-25 17:56:51,896 - INFO - Initial checks done. Running the testcase now 2024-10-25 17:56:51,897 - INFO - 2024-10-25 17:56:52,550 - DEBUG - Response for create_network : {'network': {'id': '5e9a1114-ed86-4942-8f64-76f542615bc0', 'name': 'ctest-vn-14137049', 'tenant_id': '7cb62991e54a4835ac48219b0ec1f377', 'project_id': '7cb62991e54a4835ac48219b0ec1f377', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29124102', 'ctest-vn-14137049'], 'port_security_enabled': True, 'description': ''}} 2024-10-25 17:56:52,764 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aaf80da1-c60c-44a3-9a62-8213f505d889', 'name': '', 'tenant_id': '7cb62991e54a4835ac48219b0ec1f377', 'network_id': '5e9a1114-ed86-4942-8f64-76f542615bc0', 'ip_version': 4, 'cidr': '162.215.41.192/26', 'allocation_pools': [{'start': '162.215.41.194', 'end': '162.215.41.254'}], 'gateway_ip': '162.215.41.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '162.215.41.194', 'tags': [], 'project_id': '7cb62991e54a4835ac48219b0ec1f377'}} 2024-10-25 17:56:52,789 - INFO - Created VN ctest-vn-14137049 2024-10-25 17:56:52,849 - DEBUG - VN ctest-vn-14137049 UUID is 5e9a1114-ed86-4942-8f64-76f542615bc0 2024-10-25 17:56:53,248 - DEBUG - Response for create_network : {'network': {'id': '0c49d902-5126-4f96-a409-3204cee7fcf2', 'name': 'ctest-vn-23104212', 'tenant_id': '7cb62991e54a4835ac48219b0ec1f377', 'project_id': '7cb62991e54a4835ac48219b0ec1f377', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29124102', 'ctest-vn-23104212'], 'port_security_enabled': True, 'description': ''}} 2024-10-25 17:56:53,491 - DEBUG - Response for create_subnet : {'subnet': {'id': '75abac86-fbe3-4aa9-b783-de6e2a7bf7e0', 'name': '', 'tenant_id': '7cb62991e54a4835ac48219b0ec1f377', 'network_id': '0c49d902-5126-4f96-a409-3204cee7fcf2', 'ip_version': 4, 'cidr': '78.251.192.0/26', 'allocation_pools': [{'start': '78.251.192.2', 'end': '78.251.192.62'}], 'gateway_ip': '78.251.192.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '78.251.192.2', 'tags': [], 'project_id': '7cb62991e54a4835ac48219b0ec1f377'}} 2024-10-25 17:56:53,517 - INFO - Created VN ctest-vn-23104212 2024-10-25 17:56:53,577 - DEBUG - VN ctest-vn-23104212 UUID is 0c49d902-5126-4f96-a409-3204cee7fcf2 2024-10-25 17:56:53,730 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-29124102:ctest-vn-14137049, 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-29124102:ctest-vn-23104212, 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-10-25 17:56:54,096 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5e9a1114-ed86-4942-8f64-76f542615bc0', 'name': 'ctest-vn-14137049', 'tenant_id': '7cb62991e54a4835ac48219b0ec1f377', 'project_id': '7cb62991e54a4835ac48219b0ec1f377', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aaf80da1-c60c-44a3-9a62-8213f505d889'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29124102', 'ctest-vn-14137049'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29124102', 'ctest-policy-allow-all-85739645']], 'subnet_ipam': [{'subnet_cidr': '162.215.41.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-25 17:56:54,414 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0c49d902-5126-4f96-a409-3204cee7fcf2', 'name': 'ctest-vn-23104212', 'tenant_id': '7cb62991e54a4835ac48219b0ec1f377', 'project_id': '7cb62991e54a4835ac48219b0ec1f377', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['75abac86-fbe3-4aa9-b783-de6e2a7bf7e0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29124102', 'ctest-vn-23104212'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29124102', 'ctest-policy-allow-all-85739645']], 'subnet_ipam': [{'subnet_cidr': '78.251.192.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-25 17:56:54,581 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-10-25 17:56:54,896 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-10-25 17:56:54,935 - DEBUG - Requesting: http://10.0.0.28:8082/domain/9764e033-f80e-4d9e-8646-d666ef0eea36 2024-10-25 17:56:54,954 - DEBUG - Requesting: http://10.0.0.28:8082/project/7cb62991-e54a-4835-ac48-219b0ec1f377 2024-10-25 17:56:55,047 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/5e9a1114-ed86-4942-8f64-76f542615bc0 2024-10-25 17:56:55,097 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/5e9a1114-ed86-4942-8f64-76f542615bc0 2024-10-25 17:56:55,115 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/7422876c-e998-4642-98d9-7c1363e1d7ce 2024-10-25 17:56:55,127 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/7422876c-e998-4642-98d9-7c1363e1d7ce 2024-10-25 17:56:55,142 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/744ad55d-de20-43d0-ad16-fe617a51c0c5 2024-10-25 17:56:55,151 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-25 17:56:55,152 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/5e9a1114-ed86-4942-8f64-76f542615bc0 2024-10-25 17:56:55,168 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/7422876c-e998-4642-98d9-7c1363e1d7ce 2024-10-25 17:56:55,193 - INFO - Verified VN network id 8 for VN 5e9a1114-ed86-4942-8f64-76f542615bc0 2024-10-25 17:56:55,193 - INFO - Verifications in API Server for VN ctest-vn-14137049 passed 2024-10-25 17:56:55,193 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/5e9a1114-ed86-4942-8f64-76f542615bc0 2024-10-25 17:56:55,212 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/7422876c-e998-4642-98d9-7c1363e1d7ce 2024-10-25 17:56:55,223 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/7422876c-e998-4642-98d9-7c1363e1d7ce 2024-10-25 17:56:55,235 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/744ad55d-de20-43d0-ad16-fe617a51c0c5 2024-10-25 17:56:55,251 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29124102:ctest-vn-14137049', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29124102', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6816779767560685890', 'uuid-lslong': '10332514240847502272'}, 'enable': 'true', 'created': '2024-10-25T17:56:52', 'last-modified': '2024-10-25T17:56:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.191643'} 2024-10-25 17:56:55,260 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-25 17:56:55,260 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14137049 passed 2024-10-25 17:56:55,261 - DEBUG - ====Verifying policy data for ctest-vn-14137049 in API_Server ====== 2024-10-25 17:56:55,261 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-10-25 17:56:55,268 - DEBUG - Requesting: http://10.0.0.28:8082/domain/9764e033-f80e-4d9e-8646-d666ef0eea36 2024-10-25 17:56:55,284 - DEBUG - Requesting: http://10.0.0.28:8082/project/7cb62991-e54a-4835-ac48-219b0ec1f377 2024-10-25 17:56:55,381 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/5e9a1114-ed86-4942-8f64-76f542615bc0 2024-10-25 17:56:55,397 - DEBUG - ==>Verifying data for policy with id: 1f5c36bd-4a8b-41c3-b441-c1912b72d3c1, fqn: ['default-domain', 'ctest-TestBasicPolicy-29124102', 'ctest-policy-allow-all-85739645'] 2024-10-25 17:56:55,397 - INFO - VN ctest-vn-14137049 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-25 17:56:55,397 - DEBUG - Verifying the vn in opserver 2024-10-25 17:56:55,397 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29124102:ctest-vn-14137049 virtual network link through opserver 10.0.0.28 2024-10-25 17:56:55,397 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks 2024-10-25 17:56:55,707 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks 2024-10-25 17:56:55,786 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29124102:ctest-vn-14137049', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29124102:ctest-vn-14137049?flat'} 2024-10-25 17:56:55,786 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29124102:ctest-vn-14137049 is found in opserver 2024-10-25 17:56:55,799 - DEBUG - Do not have enough data to verify VN in agent 2024-10-25 17:56:55,806 - DEBUG - VRF ids for VN ctest-vn-14137049: {} 2024-10-25 17:56:55,806 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-10-25 17:56:55,814 - DEBUG - Requesting: http://10.0.0.28:8082/domain/9764e033-f80e-4d9e-8646-d666ef0eea36 2024-10-25 17:56:55,851 - DEBUG - Requesting: http://10.0.0.28:8082/project/7cb62991-e54a-4835-ac48-219b0ec1f377 2024-10-25 17:56:55,943 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/0c49d902-5126-4f96-a409-3204cee7fcf2 2024-10-25 17:56:55,963 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/0c49d902-5126-4f96-a409-3204cee7fcf2 2024-10-25 17:56:55,979 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/d81d5cd1-b9f0-4c6c-b775-d7d207367c0a 2024-10-25 17:56:55,990 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/d81d5cd1-b9f0-4c6c-b775-d7d207367c0a 2024-10-25 17:56:56,002 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/0d2ff57d-8a26-44d8-bcd0-b21af3052a7a 2024-10-25 17:56:56,012 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-25 17:56:56,012 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/0c49d902-5126-4f96-a409-3204cee7fcf2 2024-10-25 17:56:56,030 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/d81d5cd1-b9f0-4c6c-b775-d7d207367c0a 2024-10-25 17:56:56,062 - INFO - Verified VN network id 9 for VN 0c49d902-5126-4f96-a409-3204cee7fcf2 2024-10-25 17:56:56,062 - INFO - Verifications in API Server for VN ctest-vn-23104212 passed 2024-10-25 17:56:56,062 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/0c49d902-5126-4f96-a409-3204cee7fcf2 2024-10-25 17:56:56,079 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/d81d5cd1-b9f0-4c6c-b775-d7d207367c0a 2024-10-25 17:56:56,090 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/d81d5cd1-b9f0-4c6c-b775-d7d207367c0a 2024-10-25 17:56:56,102 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/0d2ff57d-8a26-44d8-bcd0-b21af3052a7a 2024-10-25 17:56:56,119 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29124102:ctest-vn-23104212', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29124102', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '885477405729640342', 'uuid-lslong': '11820033693243145458'}, 'enable': 'true', 'created': '2024-10-25T17:56:53', 'last-modified': '2024-10-25T17:56:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.780737'} 2024-10-25 17:56:56,126 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-25 17:56:56,126 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23104212 passed 2024-10-25 17:56:56,126 - DEBUG - ====Verifying policy data for ctest-vn-23104212 in API_Server ====== 2024-10-25 17:56:56,127 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-10-25 17:56:56,134 - DEBUG - Requesting: http://10.0.0.28:8082/domain/9764e033-f80e-4d9e-8646-d666ef0eea36 2024-10-25 17:56:56,150 - DEBUG - Requesting: http://10.0.0.28:8082/project/7cb62991-e54a-4835-ac48-219b0ec1f377 2024-10-25 17:56:56,256 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/0c49d902-5126-4f96-a409-3204cee7fcf2 2024-10-25 17:56:56,277 - DEBUG - ==>Verifying data for policy with id: 1f5c36bd-4a8b-41c3-b441-c1912b72d3c1, fqn: ['default-domain', 'ctest-TestBasicPolicy-29124102', 'ctest-policy-allow-all-85739645'] 2024-10-25 17:56:56,277 - INFO - VN ctest-vn-23104212 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-25 17:56:56,277 - DEBUG - Verifying the vn in opserver 2024-10-25 17:56:56,277 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29124102:ctest-vn-23104212 virtual network link through opserver 10.0.0.28 2024-10-25 17:56:56,277 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks 2024-10-25 17:56:56,293 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29124102:ctest-vn-23104212', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29124102:ctest-vn-23104212?flat'} 2024-10-25 17:56:56,293 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29124102:ctest-vn-23104212 is found in opserver 2024-10-25 17:56:56,305 - DEBUG - Do not have enough data to verify VN in agent 2024-10-25 17:56:56,311 - DEBUG - VRF ids for VN ctest-vn-23104212: {} 2024-10-25 17:56:56,382 - DEBUG - Services list from nova: [, , ] 2024-10-25 17:56:57,670 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2147-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2147-1) 2024-10-25 17:56:59,011 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2147-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2147-1) 2024-10-25 17:56:59,011 - INFO - Waiting for VM ctest-TestBasicPolicy-29124102-43611084 to be up.. 2024-10-25 17:56:59,118 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-25 17:57:04,245 - DEBUG - VM is in ACTIVE state now 2024-10-25 17:57:04,246 - INFO - VM name : ctest-TestBasicPolicy-29124102-43611084 2024-10-25 17:57:04,359 - DEBUG - VM ctest-TestBasicPolicy-29124102-43611084 ID is 18356587-ff33-4503-84d9-dd76abc35cec 2024-10-25 17:57:04,387 - DEBUG - VM ctest-TestBasicPolicy-29124102-43611084 launched on Node cn-jenkins-deploy-platform-ansible-os-2147-1 2024-10-25 17:57:04,495 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/18356587-ff33-4503-84d9-dd76abc35cec 2024-10-25 17:57:04,509 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/0038c2d4-1453-45e9-8984-2b61131df819 2024-10-25 17:57:07,790 - 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 1016ms') 2024-10-25 17:57:07,790 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-29124102-43611084 failed! 2024-10-25 17:57:07,857 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-29124102:ctest-vn-14137049 is 162.215.41.193 and allocation pool is NOT set 2024-10-25 17:57:09,930 - 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=8.71 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.492 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 = 0.492/4.599/8.706/4.107 ms') 2024-10-25 17:57:09,930 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-29124102-43611084 passed 2024-10-25 17:57:10,093 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-25 17:57:10,093 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-29124102-43611084, IP 162.215.41.195, Port 22 2024-10-25 17:57:10,265 - DEBUG - VM ctest-TestBasicPolicy-29124102-43611084 is ready for SSH connections 2024-10-25 17:57:10,265 - INFO - Waiting for VM ctest-TestBasicPolicy-29124102-28046257 to be up.. 2024-10-25 17:57:10,382 - DEBUG - VM is in ACTIVE state now 2024-10-25 17:57:10,382 - INFO - VM name : ctest-TestBasicPolicy-29124102-28046257 2024-10-25 17:57:10,490 - DEBUG - VM ctest-TestBasicPolicy-29124102-28046257 ID is 1055c79c-844e-49bb-b46e-9e7e6922fe2b 2024-10-25 17:57:10,490 - DEBUG - VM ctest-TestBasicPolicy-29124102-28046257 launched on Node cn-jenkins-deploy-platform-ansible-os-2147-1 2024-10-25 17:57:10,600 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/1055c79c-844e-49bb-b46e-9e7e6922fe2b 2024-10-25 17:57:10,616 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/bfec1115-f4b7-43bc-a749-64296482a8ad 2024-10-25 17:57:11,887 - 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.00 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.826 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.826/2.412/3.998/1.586 ms') 2024-10-25 17:57:11,887 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-29124102-28046257 passed 2024-10-25 17:57:12,053 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-25 17:57:12,053 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-29124102-28046257, IP 78.251.192.3, Port 22 2024-10-25 17:57:12,124 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-10-25 17:57:12,232 - DEBUG - VM ctest-TestBasicPolicy-29124102-28046257 is NOT ready for SSH connections, VM status: ACTIVE 2024-10-25 17:57:17,232 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-25 17:57:17,233 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-29124102-28046257, IP 78.251.192.3, Port 22 2024-10-25 17:57:17,399 - DEBUG - VM ctest-TestBasicPolicy-29124102-28046257 is ready for SSH connections 2024-10-25 17:57:17,400 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-25 17:57:17,400 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 78.251.192.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2024-10-25 17:57:17,400 - DEBUG - ping -s 56 -c 3 -W 1 78.251.192.3 2024-10-25 17:57:21,530 - DEBUG - PING 78.251.192.3 (78.251.192.3): 56 data bytes 64 bytes from 78.251.192.3: seq=0 ttl=63 time=5.432 ms 64 bytes from 78.251.192.3: seq=1 ttl=63 time=0.912 ms 64 bytes from 78.251.192.3: seq=2 ttl=63 time=1.097 ms --- 78.251.192.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.912/2.480/5.432 ms 2024-10-25 17:57:21,530 - INFO - Ping to IP 78.251.192.3 from VM ctest-TestBasicPolicy-29124102-43611084 passed 2024-10-25 17:57:21,741 - DEBUG - Policy Update Response {"network-policy": {"uuid": "1f5c36bd-4a8b-41c3-b441-c1912b72d3c1", "href": "http://10.0.0.28:8082/network-policy/1f5c36bd-4a8b-41c3-b441-c1912b72d3c1"}} 2024-10-25 17:57:21,741 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-25 17:57:21,741 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 78.251.192.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2024-10-25 17:57:21,741 - DEBUG - ping -s 56 -c 3 -W 1 78.251.192.3 2024-10-25 17:57:24,966 - DEBUG - PING 78.251.192.3 (78.251.192.3): 56 data bytes --- 78.251.192.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-25 17:57:24,966 - WARNING - Ping to IP 78.251.192.3 from VM ctest-TestBasicPolicy-29124102-43611084 failed 2024-10-25 17:57:24,967 - INFO - Deleting VM ctest-TestBasicPolicy-29124102-28046257 2024-10-25 17:57:25,074 - INFO - Deleting VM ctest-TestBasicPolicy-29124102-43611084 2024-10-25 17:57:25,654 - INFO - Deleted policy ctest-policy-allow-all-85739645 2024-10-25 17:57:25,655 - INFO - Deleting VN ctest-vn-23104212 2024-10-25 17:57:25,708 - DEBUG - VN 0c49d902-5126-4f96-a409-3204cee7fcf2 still in use: Unable to complete operation on network 0c49d902-5126-4f96-a409-3204cee7fcf2. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-4d9a1ab0-b6a6-4681-b100-89e713a6572f'] 2024-10-25 17:57:25,708 - WARNING - Deleting VN ctest-vn-23104212 failed..Will retry 2024-10-25 17:57:27,836 - DEBUG - Response for deleting network () 2024-10-25 17:57:27,837 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/d81d5cd1-b9f0-4c6c-b775-d7d207367c0a 2024-10-25 17:57:27,844 - DEBUG - Response Code: 404 2024-10-25 17:57:27,844 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-10-25 17:57:27,851 - DEBUG - Requesting: http://10.0.0.28:8082/domain/9764e033-f80e-4d9e-8646-d666ef0eea36 2024-10-25 17:57:27,912 - DEBUG - Requesting: http://10.0.0.28:8082/project/7cb62991-e54a-4835-ac48-219b0ec1f377 2024-10-25 17:57:27,998 - INFO - Validated that VN ctest-vn-23104212 is not found in API Server 2024-10-25 17:57:28,011 - DEBUG - VN ctest-vn-23104212 is not present in Agent 10.0.0.28 2024-10-25 17:57:28,011 - INFO - Validated that VN ctest-vn-23104212 is not in any agent 2024-10-25 17:57:28,030 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-23104212 info 2024-10-25 17:57:28,030 - INFO - Deleting VN ctest-vn-14137049 2024-10-25 17:57:28,179 - DEBUG - Response for deleting network () 2024-10-25 17:57:28,180 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/7422876c-e998-4642-98d9-7c1363e1d7ce 2024-10-25 17:57:28,190 - DEBUG - Response Code: 404 2024-10-25 17:57:28,190 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-10-25 17:57:28,202 - DEBUG - Requesting: http://10.0.0.28:8082/domain/9764e033-f80e-4d9e-8646-d666ef0eea36 2024-10-25 17:57:28,221 - DEBUG - Requesting: http://10.0.0.28:8082/project/7cb62991-e54a-4835-ac48-219b0ec1f377 2024-10-25 17:57:28,306 - INFO - Validated that VN ctest-vn-14137049 is not found in API Server 2024-10-25 17:57:28,320 - DEBUG - VN ctest-vn-14137049 is not present in Agent 10.0.0.28 2024-10-25 17:57:28,320 - INFO - Validated that VN ctest-vn-14137049 is not in any agent 2024-10-25 17:57:28,339 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-14137049 info 2024-10-25 17:57:28,612 - DEBUG - No XMPP flaps were noticed during the test
2024-10-25 17:57:28,613 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37]
2024-10-25 17:57:28,613 - INFO - -------------------------------------------------------------------------------- 2024-10-25 17:57:29,412 - INFO - Deleted project: ctest-TestBasicPolicy-29124102, ID : 7cb62991-e54a-4835-ac48-219b0ec1f377