2024-10-29 11:16:28,553 - INFO - Domain Default found not creating 2024-10-29 11:16:28,737 - INFO - Project ctest-TestBasicPolicy-61035929 not found, creating it 2024-10-29 11:16:29,238 - INFO - Created Project:ctest-TestBasicPolicy-61035929, ID : 7a9f62ee-3a34-4cd8-a67b-5c1b2d47bc66 2024-10-29 11:16:30,843 - INFO - ================================================================================ 2024-10-29 11:16:30,844 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-29 11:16:30,845 - 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-29 11:16:31,110 - DEBUG - Nothing to compare xmpp stats {'10.0.0.43': {'10.20.0.5': '0'}} with 2024-10-29 11:16:31,110 - INFO - Initial checks done. Running the testcase now 2024-10-29 11:16:31,110 - INFO - 2024-10-29 11:16:31,769 - DEBUG - Response for create_network : {'network': {'id': '4049bdfb-20b4-4f79-910e-74de6fe43c6a', 'name': 'ctest-vn-15436115', 'tenant_id': '7a9f62ee3a344cd8a67b5c1b2d47bc66', 'project_id': '7a9f62ee3a344cd8a67b5c1b2d47bc66', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61035929', 'ctest-vn-15436115'], 'port_security_enabled': True, 'description': ''}} 2024-10-29 11:16:32,006 - DEBUG - Response for create_subnet : {'subnet': {'id': '980d5b9e-ddc5-4b17-9e83-0327580666f0', 'name': '', 'tenant_id': '7a9f62ee3a344cd8a67b5c1b2d47bc66', 'network_id': '4049bdfb-20b4-4f79-910e-74de6fe43c6a', 'ip_version': 4, 'cidr': '116.106.87.64/26', 'allocation_pools': [{'start': '116.106.87.66', 'end': '116.106.87.126'}], 'gateway_ip': '116.106.87.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '116.106.87.66', 'tags': [], 'project_id': '7a9f62ee3a344cd8a67b5c1b2d47bc66'}} 2024-10-29 11:16:32,026 - INFO - Created VN ctest-vn-15436115 2024-10-29 11:16:32,086 - DEBUG - VN ctest-vn-15436115 UUID is 4049bdfb-20b4-4f79-910e-74de6fe43c6a 2024-10-29 11:16:32,405 - DEBUG - Response for create_network : {'network': {'id': '3484d6fa-d3a9-4abd-8aca-2543d867586c', 'name': 'ctest-vn-94829662', 'tenant_id': '7a9f62ee3a344cd8a67b5c1b2d47bc66', 'project_id': '7a9f62ee3a344cd8a67b5c1b2d47bc66', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61035929', 'ctest-vn-94829662'], 'port_security_enabled': True, 'description': ''}} 2024-10-29 11:16:32,590 - DEBUG - Response for create_subnet : {'subnet': {'id': '5ac1071b-d3cc-4e39-9b8c-74278ef51d5c', 'name': '', 'tenant_id': '7a9f62ee3a344cd8a67b5c1b2d47bc66', 'network_id': '3484d6fa-d3a9-4abd-8aca-2543d867586c', 'ip_version': 4, 'cidr': '125.51.22.128/26', 'allocation_pools': [{'start': '125.51.22.130', 'end': '125.51.22.190'}], 'gateway_ip': '125.51.22.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.51.22.130', 'tags': [], 'project_id': '7a9f62ee3a344cd8a67b5c1b2d47bc66'}} 2024-10-29 11:16:32,608 - INFO - Created VN ctest-vn-94829662 2024-10-29 11:16:32,665 - DEBUG - VN ctest-vn-94829662 UUID is 3484d6fa-d3a9-4abd-8aca-2543d867586c 2024-10-29 11:16:32,796 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-61035929:ctest-vn-15436115, 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-61035929:ctest-vn-94829662, 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-29 11:16:33,104 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4049bdfb-20b4-4f79-910e-74de6fe43c6a', 'name': 'ctest-vn-15436115', 'tenant_id': '7a9f62ee3a344cd8a67b5c1b2d47bc66', 'project_id': '7a9f62ee3a344cd8a67b5c1b2d47bc66', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['980d5b9e-ddc5-4b17-9e83-0327580666f0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61035929', 'ctest-vn-15436115'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61035929', 'ctest-policy-allow-all-42596811']], 'subnet_ipam': [{'subnet_cidr': '116.106.87.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-29 11:16:33,384 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3484d6fa-d3a9-4abd-8aca-2543d867586c', 'name': 'ctest-vn-94829662', 'tenant_id': '7a9f62ee3a344cd8a67b5c1b2d47bc66', 'project_id': '7a9f62ee3a344cd8a67b5c1b2d47bc66', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5ac1071b-d3cc-4e39-9b8c-74278ef51d5c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61035929', 'ctest-vn-94829662'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61035929', 'ctest-policy-allow-all-42596811']], 'subnet_ipam': [{'subnet_cidr': '125.51.22.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-29 11:16:33,545 - DEBUG - Requesting: http://10.0.0.43:8082/domains 2024-10-29 11:16:33,862 - DEBUG - Requesting: http://10.0.0.43:8082/domains 2024-10-29 11:16:33,894 - DEBUG - Requesting: http://10.0.0.43:8082/domain/2d6d052d-104d-4115-9fdd-74b49d3d0261 2024-10-29 11:16:33,909 - DEBUG - Requesting: http://10.0.0.43:8082/project/7a9f62ee-3a34-4cd8-a67b-5c1b2d47bc66 2024-10-29 11:16:33,998 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/4049bdfb-20b4-4f79-910e-74de6fe43c6a 2024-10-29 11:16:34,016 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/4049bdfb-20b4-4f79-910e-74de6fe43c6a 2024-10-29 11:16:34,035 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/2d104fa2-2751-4a37-9c60-cef3c1b324b7 2024-10-29 11:16:34,045 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/2d104fa2-2751-4a37-9c60-cef3c1b324b7 2024-10-29 11:16:34,056 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/ae0cebd0-d353-4ddc-9143-abe6bf211435 2024-10-29 11:16:34,065 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-29 11:16:34,065 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/4049bdfb-20b4-4f79-910e-74de6fe43c6a 2024-10-29 11:16:34,081 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/2d104fa2-2751-4a37-9c60-cef3c1b324b7 2024-10-29 11:16:34,100 - INFO - Verified VN network id 9 for VN 4049bdfb-20b4-4f79-910e-74de6fe43c6a 2024-10-29 11:16:34,101 - INFO - Verifications in API Server for VN ctest-vn-15436115 passed 2024-10-29 11:16:34,101 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/4049bdfb-20b4-4f79-910e-74de6fe43c6a 2024-10-29 11:16:34,115 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/2d104fa2-2751-4a37-9c60-cef3c1b324b7 2024-10-29 11:16:34,127 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/2d104fa2-2751-4a37-9c60-cef3c1b324b7 2024-10-29 11:16:34,136 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/ae0cebd0-d353-4ddc-9143-abe6bf211435 2024-10-29 11:16:34,151 - DEBUG - Control-node 10.0.0.43 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61035929:ctest-vn-15436115', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61035929', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4632442578010394489', 'uuid-lslong': '10452420283882290282'}, 'enable': 'true', 'created': '2024-10-29T11:16:31', 'last-modified': '2024-10-29T11:16:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.066336'} 2024-10-29 11:16:34,157 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-29 11:16:34,157 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15436115 passed 2024-10-29 11:16:34,158 - DEBUG - ====Verifying policy data for ctest-vn-15436115 in API_Server ====== 2024-10-29 11:16:34,158 - DEBUG - Requesting: http://10.0.0.43:8082/domains 2024-10-29 11:16:34,165 - DEBUG - Requesting: http://10.0.0.43:8082/domain/2d6d052d-104d-4115-9fdd-74b49d3d0261 2024-10-29 11:16:34,180 - DEBUG - Requesting: http://10.0.0.43:8082/project/7a9f62ee-3a34-4cd8-a67b-5c1b2d47bc66 2024-10-29 11:16:34,267 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/4049bdfb-20b4-4f79-910e-74de6fe43c6a 2024-10-29 11:16:34,282 - DEBUG - ==>Verifying data for policy with id: 45ce065f-bea0-4280-b009-9292721d367a, fqn: ['default-domain', 'ctest-TestBasicPolicy-61035929', 'ctest-policy-allow-all-42596811'] 2024-10-29 11:16:34,282 - INFO - VN ctest-vn-15436115 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-29 11:16:34,282 - DEBUG - Verifying the vn in opserver 2024-10-29 11:16:34,282 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61035929:ctest-vn-15436115 virtual network link through opserver 10.0.0.43 2024-10-29 11:16:34,283 - DEBUG - Requesting: http://10.0.0.43:8081/analytics/uves/virtual-networks 2024-10-29 11:16:34,580 - DEBUG - Requesting: http://10.0.0.43:8081/analytics/uves/virtual-networks 2024-10-29 11:16:34,648 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61035929:ctest-vn-15436115', 'href': 'http://10.0.0.43:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61035929:ctest-vn-15436115?flat'} 2024-10-29 11:16:34,648 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61035929:ctest-vn-15436115 is found in opserver 2024-10-29 11:16:34,661 - DEBUG - Do not have enough data to verify VN in agent 2024-10-29 11:16:34,667 - DEBUG - VRF ids for VN ctest-vn-15436115: {} 2024-10-29 11:16:34,667 - DEBUG - Requesting: http://10.0.0.43:8082/domains 2024-10-29 11:16:34,674 - DEBUG - Requesting: http://10.0.0.43:8082/domain/2d6d052d-104d-4115-9fdd-74b49d3d0261 2024-10-29 11:16:34,690 - DEBUG - Requesting: http://10.0.0.43:8082/project/7a9f62ee-3a34-4cd8-a67b-5c1b2d47bc66 2024-10-29 11:16:34,781 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/3484d6fa-d3a9-4abd-8aca-2543d867586c 2024-10-29 11:16:34,799 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/3484d6fa-d3a9-4abd-8aca-2543d867586c 2024-10-29 11:16:34,815 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/c65be15d-524c-462e-bb2c-855e93c0bb53 2024-10-29 11:16:34,825 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/c65be15d-524c-462e-bb2c-855e93c0bb53 2024-10-29 11:16:34,834 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/808093ea-c930-45af-996e-e5972bc8c611 2024-10-29 11:16:34,842 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-29 11:16:34,842 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/3484d6fa-d3a9-4abd-8aca-2543d867586c 2024-10-29 11:16:34,858 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/c65be15d-524c-462e-bb2c-855e93c0bb53 2024-10-29 11:16:34,879 - INFO - Verified VN network id 10 for VN 3484d6fa-d3a9-4abd-8aca-2543d867586c 2024-10-29 11:16:34,879 - INFO - Verifications in API Server for VN ctest-vn-94829662 passed 2024-10-29 11:16:34,879 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/3484d6fa-d3a9-4abd-8aca-2543d867586c 2024-10-29 11:16:34,896 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/c65be15d-524c-462e-bb2c-855e93c0bb53 2024-10-29 11:16:34,907 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/c65be15d-524c-462e-bb2c-855e93c0bb53 2024-10-29 11:16:34,918 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/808093ea-c930-45af-996e-e5972bc8c611 2024-10-29 11:16:34,934 - DEBUG - Control-node 10.0.0.43 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61035929:ctest-vn-94829662', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61035929', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3784385959679314621', 'uuid-lslong': '10000846895853295724'}, 'enable': 'true', 'created': '2024-10-29T11:16:32', 'last-modified': '2024-10-29T11:16:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.615211'} 2024-10-29 11:16:34,942 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-29 11:16:34,942 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94829662 passed 2024-10-29 11:16:34,942 - DEBUG - ====Verifying policy data for ctest-vn-94829662 in API_Server ====== 2024-10-29 11:16:34,942 - DEBUG - Requesting: http://10.0.0.43:8082/domains 2024-10-29 11:16:34,948 - DEBUG - Requesting: http://10.0.0.43:8082/domain/2d6d052d-104d-4115-9fdd-74b49d3d0261 2024-10-29 11:16:34,960 - DEBUG - Requesting: http://10.0.0.43:8082/project/7a9f62ee-3a34-4cd8-a67b-5c1b2d47bc66 2024-10-29 11:16:35,044 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/3484d6fa-d3a9-4abd-8aca-2543d867586c 2024-10-29 11:16:35,062 - DEBUG - ==>Verifying data for policy with id: 45ce065f-bea0-4280-b009-9292721d367a, fqn: ['default-domain', 'ctest-TestBasicPolicy-61035929', 'ctest-policy-allow-all-42596811'] 2024-10-29 11:16:35,062 - INFO - VN ctest-vn-94829662 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-29 11:16:35,062 - DEBUG - Verifying the vn in opserver 2024-10-29 11:16:35,062 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61035929:ctest-vn-94829662 virtual network link through opserver 10.0.0.43 2024-10-29 11:16:35,062 - DEBUG - Requesting: http://10.0.0.43:8081/analytics/uves/virtual-networks 2024-10-29 11:16:35,074 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61035929:ctest-vn-94829662', 'href': 'http://10.0.0.43:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61035929:ctest-vn-94829662?flat'} 2024-10-29 11:16:35,074 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61035929:ctest-vn-94829662 is found in opserver 2024-10-29 11:16:35,086 - DEBUG - Do not have enough data to verify VN in agent 2024-10-29 11:16:35,092 - DEBUG - VRF ids for VN ctest-vn-94829662: {} 2024-10-29 11:16:35,147 - DEBUG - Services list from nova: [, , ] 2024-10-29 11:16:36,473 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2173-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2173-1) 2024-10-29 11:16:37,774 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2173-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2173-1) 2024-10-29 11:16:37,774 - INFO - Waiting for VM ctest-TestBasicPolicy-61035929-40186900 to be up.. 2024-10-29 11:16:37,865 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-29 11:16:42,958 - DEBUG - VM is in ACTIVE state now 2024-10-29 11:16:42,959 - INFO - VM name : ctest-TestBasicPolicy-61035929-40186900 2024-10-29 11:16:43,045 - DEBUG - VM ctest-TestBasicPolicy-61035929-40186900 ID is dc12bfca-2d5a-4171-9953-517f4323b749 2024-10-29 11:16:43,064 - DEBUG - VM ctest-TestBasicPolicy-61035929-40186900 launched on Node cn-jenkins-deploy-platform-ansible-os-2173-1 2024-10-29 11:16:43,157 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine/dc12bfca-2d5a-4171-9953-517f4323b749 2024-10-29 11:16:43,173 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine-interface/a38b8bc9-5e67-423d-a0ca-a33ae266664c 2024-10-29 11:16:46,456 - 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 1013ms') 2024-10-29 11:16:46,456 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-61035929-40186900 failed! 2024-10-29 11:16:46,518 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-61035929:ctest-vn-15436115 is 116.106.87.65 and allocation pool is NOT set 2024-10-29 11:16:48,583 - 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.76 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.73 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.729/5.245/8.762/3.516 ms') 2024-10-29 11:16:48,583 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-61035929-40186900 passed 2024-10-29 11:16:48,749 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-29 11:16:48,750 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-61035929-40186900, IP 116.106.87.67, Port 22 2024-10-29 11:16:48,915 - DEBUG - VM ctest-TestBasicPolicy-61035929-40186900 is ready for SSH connections 2024-10-29 11:16:48,915 - INFO - Waiting for VM ctest-TestBasicPolicy-61035929-87086433 to be up.. 2024-10-29 11:16:49,012 - DEBUG - VM is in ACTIVE state now 2024-10-29 11:16:49,012 - INFO - VM name : ctest-TestBasicPolicy-61035929-87086433 2024-10-29 11:16:49,102 - DEBUG - VM ctest-TestBasicPolicy-61035929-87086433 ID is eae3c060-6fa9-43a4-9896-dc9cfb0f98d2 2024-10-29 11:16:49,102 - DEBUG - VM ctest-TestBasicPolicy-61035929-87086433 launched on Node cn-jenkins-deploy-platform-ansible-os-2173-1 2024-10-29 11:16:49,189 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine/eae3c060-6fa9-43a4-9896-dc9cfb0f98d2 2024-10-29 11:16:49,201 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-machine-interface/6e18dd76-ff92-41a5-b358-df8f6c04c1f0 2024-10-29 11:16:50,458 - 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=3.16 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.849 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.849/2.005/3.161/1.156 ms') 2024-10-29 11:16:50,459 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-61035929-87086433 passed 2024-10-29 11:16:50,622 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-29 11:16:50,622 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-61035929-87086433, IP 125.51.22.131, Port 22 2024-10-29 11:16:50,677 - 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-29 11:16:50,761 - DEBUG - VM ctest-TestBasicPolicy-61035929-87086433 is NOT ready for SSH connections, VM status: ACTIVE 2024-10-29 11:16:55,761 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-29 11:16:55,762 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-61035929-87086433, IP 125.51.22.131, Port 22 2024-10-29 11:16:55,917 - DEBUG - VM ctest-TestBasicPolicy-61035929-87086433 is ready for SSH connections 2024-10-29 11:16:55,917 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-29 11:16:55,917 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 125.51.22.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.43, gateway password: c0ntrail123 2024-10-29 11:16:55,917 - DEBUG - ping -s 56 -c 3 -W 1 125.51.22.131 2024-10-29 11:16:59,930 - DEBUG - PING 125.51.22.131 (125.51.22.131): 56 data bytes 64 bytes from 125.51.22.131: seq=0 ttl=63 time=3.657 ms 64 bytes from 125.51.22.131: seq=1 ttl=63 time=0.839 ms 64 bytes from 125.51.22.131: seq=2 ttl=63 time=3.289 ms --- 125.51.22.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.839/2.595/3.657 ms 2024-10-29 11:16:59,930 - INFO - Ping to IP 125.51.22.131 from VM ctest-TestBasicPolicy-61035929-40186900 passed 2024-10-29 11:17:00,133 - DEBUG - Policy Update Response {"network-policy": {"uuid": "45ce065f-bea0-4280-b009-9292721d367a", "href": "http://10.0.0.43:8082/network-policy/45ce065f-bea0-4280-b009-9292721d367a"}} 2024-10-29 11:17:00,133 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-29 11:17:00,134 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 125.51.22.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.43, gateway password: c0ntrail123 2024-10-29 11:17:00,134 - DEBUG - ping -s 56 -c 3 -W 1 125.51.22.131 2024-10-29 11:17:03,347 - DEBUG - PING 125.51.22.131 (125.51.22.131): 56 data bytes 64 bytes from 125.51.22.131: seq=0 ttl=63 time=1.791 ms --- 125.51.22.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.791/1.791/1.791 ms 2024-10-29 11:17:03,348 - WARNING - Ping to IP 125.51.22.131 from VM ctest-TestBasicPolicy-61035929-40186900 failed 2024-10-29 11:17:03,348 - INFO - Deleting VM ctest-TestBasicPolicy-61035929-87086433 2024-10-29 11:17:03,423 - INFO - Deleting VM ctest-TestBasicPolicy-61035929-40186900 2024-10-29 11:17:03,878 - INFO - Deleted policy ctest-policy-allow-all-42596811 2024-10-29 11:17:03,879 - INFO - Deleting VN ctest-vn-94829662 2024-10-29 11:17:03,928 - DEBUG - VN 3484d6fa-d3a9-4abd-8aca-2543d867586c still in use: Unable to complete operation on network 3484d6fa-d3a9-4abd-8aca-2543d867586c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-38e4577e-ac76-4029-848b-185fd352f2ef'] 2024-10-29 11:17:03,928 - WARNING - Deleting VN ctest-vn-94829662 failed..Will retry 2024-10-29 11:17:06,051 - DEBUG - Response for deleting network () 2024-10-29 11:17:06,051 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/c65be15d-524c-462e-bb2c-855e93c0bb53 2024-10-29 11:17:06,059 - DEBUG - Response Code: 404 2024-10-29 11:17:06,059 - DEBUG - Requesting: http://10.0.0.43:8082/domains 2024-10-29 11:17:06,070 - DEBUG - Requesting: http://10.0.0.43:8082/domain/2d6d052d-104d-4115-9fdd-74b49d3d0261 2024-10-29 11:17:06,128 - DEBUG - Requesting: http://10.0.0.43:8082/project/7a9f62ee-3a34-4cd8-a67b-5c1b2d47bc66 2024-10-29 11:17:06,213 - INFO - Validated that VN ctest-vn-94829662 is not found in API Server 2024-10-29 11:17:06,225 - DEBUG - VN ctest-vn-94829662 is not present in Agent 10.0.0.43 2024-10-29 11:17:06,225 - INFO - Validated that VN ctest-vn-94829662 is not in any agent 2024-10-29 11:17:06,241 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-94829662 info 2024-10-29 11:17:06,241 - INFO - Deleting VN ctest-vn-15436115 2024-10-29 11:17:06,363 - DEBUG - Response for deleting network () 2024-10-29 11:17:06,363 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/2d104fa2-2751-4a37-9c60-cef3c1b324b7 2024-10-29 11:17:06,371 - DEBUG - Response Code: 404 2024-10-29 11:17:06,371 - DEBUG - Requesting: http://10.0.0.43:8082/domains 2024-10-29 11:17:06,379 - DEBUG - Requesting: http://10.0.0.43:8082/domain/2d6d052d-104d-4115-9fdd-74b49d3d0261 2024-10-29 11:17:06,453 - DEBUG - Requesting: http://10.0.0.43:8082/project/7a9f62ee-3a34-4cd8-a67b-5c1b2d47bc66 2024-10-29 11:17:06,538 - INFO - Validated that VN ctest-vn-15436115 is not found in API Server 2024-10-29 11:17:06,549 - DEBUG - VN ctest-vn-15436115 is not present in Agent 10.0.0.43 2024-10-29 11:17:06,549 - INFO - Validated that VN ctest-vn-15436115 is not in any agent 2024-10-29 11:17:06,564 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-15436115 info 2024-10-29 11:17:06,820 - DEBUG - No XMPP flaps were noticed during the test
2024-10-29 11:17:06,821 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2024-10-29 11:17:06,821 - INFO - -------------------------------------------------------------------------------- 2024-10-29 11:17:07,509 - INFO - Deleted project: ctest-TestBasicPolicy-61035929, ID : 7a9f62ee-3a34-4cd8-a67b-5c1b2d47bc66