2024-08-27 16:43:34,971 - INFO - Domain Default found not creating 2024-08-27 16:43:35,143 - INFO - Project ctest-TestBasicPolicy-43828776 not found, creating it 2024-08-27 16:43:35,624 - INFO - Created Project:ctest-TestBasicPolicy-43828776, ID : 549c53f3-b5d7-457b-9ed0-f27702f8e63a 2024-08-27 16:43:37,118 - INFO - ================================================================================ 2024-08-27 16:43:37,118 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-27 16:43:37,118 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2024-08-27 16:43:37,374 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.5': '0'}} with 2024-08-27 16:43:37,375 - INFO - Initial checks done. Running the testcase now 2024-08-27 16:43:37,375 - INFO - 2024-08-27 16:43:37,918 - DEBUG - Response for create_network : {'network': {'id': 'f25891dc-ca7c-4d30-bab3-12f8445790c7', 'name': 'ctest-vn-43220196', 'tenant_id': '549c53f3b5d7457b9ed0f27702f8e63a', 'project_id': '549c53f3b5d7457b9ed0f27702f8e63a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43828776', 'ctest-vn-43220196'], 'port_security_enabled': True, 'description': ''}} 2024-08-27 16:43:38,121 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b98c9a33-0286-4fce-bbb8-bf3165d33cf7', 'name': '', 'tenant_id': '549c53f3b5d7457b9ed0f27702f8e63a', 'network_id': 'f25891dc-ca7c-4d30-bab3-12f8445790c7', 'ip_version': 4, 'cidr': '165.167.151.128/26', 'allocation_pools': [{'start': '165.167.151.130', 'end': '165.167.151.190'}], 'gateway_ip': '165.167.151.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.167.151.130', 'tags': [], 'project_id': '549c53f3b5d7457b9ed0f27702f8e63a'}} 2024-08-27 16:43:38,140 - INFO - Created VN ctest-vn-43220196 2024-08-27 16:43:38,202 - DEBUG - VN ctest-vn-43220196 UUID is f25891dc-ca7c-4d30-bab3-12f8445790c7 2024-08-27 16:43:38,495 - DEBUG - Response for create_network : {'network': {'id': '6296ade6-65e3-4691-9ad7-401780259a24', 'name': 'ctest-vn-35824684', 'tenant_id': '549c53f3b5d7457b9ed0f27702f8e63a', 'project_id': '549c53f3b5d7457b9ed0f27702f8e63a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43828776', 'ctest-vn-35824684'], 'port_security_enabled': True, 'description': ''}} 2024-08-27 16:43:38,689 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f71d0654-d2d6-4bbd-9e8c-5ece0d719e42', 'name': '', 'tenant_id': '549c53f3b5d7457b9ed0f27702f8e63a', 'network_id': '6296ade6-65e3-4691-9ad7-401780259a24', 'ip_version': 4, 'cidr': '115.58.203.0/26', 'allocation_pools': [{'start': '115.58.203.2', 'end': '115.58.203.62'}], 'gateway_ip': '115.58.203.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '115.58.203.2', 'tags': [], 'project_id': '549c53f3b5d7457b9ed0f27702f8e63a'}} 2024-08-27 16:43:38,708 - INFO - Created VN ctest-vn-35824684 2024-08-27 16:43:38,761 - DEBUG - VN ctest-vn-35824684 UUID is 6296ade6-65e3-4691-9ad7-401780259a24 2024-08-27 16:43:38,870 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-43828776:ctest-vn-43220196, 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-43828776:ctest-vn-35824684, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2024-08-27 16:43:39,158 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f25891dc-ca7c-4d30-bab3-12f8445790c7', 'name': 'ctest-vn-43220196', 'tenant_id': '549c53f3b5d7457b9ed0f27702f8e63a', 'project_id': '549c53f3b5d7457b9ed0f27702f8e63a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b98c9a33-0286-4fce-bbb8-bf3165d33cf7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43828776', 'ctest-vn-43220196'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43828776', 'ctest-policy-allow-all-27231515']], 'subnet_ipam': [{'subnet_cidr': '165.167.151.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-27 16:43:39,400 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6296ade6-65e3-4691-9ad7-401780259a24', 'name': 'ctest-vn-35824684', 'tenant_id': '549c53f3b5d7457b9ed0f27702f8e63a', 'project_id': '549c53f3b5d7457b9ed0f27702f8e63a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f71d0654-d2d6-4bbd-9e8c-5ece0d719e42'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43828776', 'ctest-vn-35824684'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43828776', 'ctest-policy-allow-all-27231515']], 'subnet_ipam': [{'subnet_cidr': '115.58.203.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-27 16:43:39,561 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-08-27 16:43:39,854 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-08-27 16:43:39,886 - DEBUG - Requesting: http://10.0.0.23:8082/domain/aae2f8df-7888-426f-802c-550db83506fe 2024-08-27 16:43:39,900 - DEBUG - Requesting: http://10.0.0.23:8082/project/549c53f3-b5d7-457b-9ed0-f27702f8e63a 2024-08-27 16:43:39,969 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f25891dc-ca7c-4d30-bab3-12f8445790c7 2024-08-27 16:43:39,979 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f25891dc-ca7c-4d30-bab3-12f8445790c7 2024-08-27 16:43:39,987 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/0faae86c-d18c-4412-8c5c-d7108a26bdb4 2024-08-27 16:43:39,995 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/0faae86c-d18c-4412-8c5c-d7108a26bdb4 2024-08-27 16:43:40,003 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/d70f2bac-f599-4dff-bd8c-0d8ac89b0695 2024-08-27 16:43:40,010 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-27 16:43:40,010 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f25891dc-ca7c-4d30-bab3-12f8445790c7 2024-08-27 16:43:40,018 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/0faae86c-d18c-4412-8c5c-d7108a26bdb4 2024-08-27 16:43:40,033 - INFO - Verified VN network id 9 for VN f25891dc-ca7c-4d30-bab3-12f8445790c7 2024-08-27 16:43:40,033 - INFO - Verifications in API Server for VN ctest-vn-43220196 passed 2024-08-27 16:43:40,033 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f25891dc-ca7c-4d30-bab3-12f8445790c7 2024-08-27 16:43:40,041 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/0faae86c-d18c-4412-8c5c-d7108a26bdb4 2024-08-27 16:43:40,048 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/0faae86c-d18c-4412-8c5c-d7108a26bdb4 2024-08-27 16:43:40,055 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/d70f2bac-f599-4dff-bd8c-0d8ac89b0695 2024-08-27 16:43:40,068 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43828776:ctest-vn-43220196', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43828776', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17462867932605074736', 'uuid-lslong': '13453117369393582279'}, 'enable': 'true', 'created': '2024-08-27T16:43:37', 'last-modified': '2024-08-27T16:43:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.926916'} 2024-08-27 16:43:40,076 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-27 16:43:40,077 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43220196 passed 2024-08-27 16:43:40,077 - DEBUG - ====Verifying policy data for ctest-vn-43220196 in API_Server ====== 2024-08-27 16:43:40,077 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-08-27 16:43:40,084 - DEBUG - Requesting: http://10.0.0.23:8082/domain/aae2f8df-7888-426f-802c-550db83506fe 2024-08-27 16:43:40,097 - DEBUG - Requesting: http://10.0.0.23:8082/project/549c53f3-b5d7-457b-9ed0-f27702f8e63a 2024-08-27 16:43:40,169 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f25891dc-ca7c-4d30-bab3-12f8445790c7 2024-08-27 16:43:40,178 - DEBUG - ==>Verifying data for policy with id: 3b674156-c8f6-41d2-b685-e839cebd098e, fqn: ['default-domain', 'ctest-TestBasicPolicy-43828776', 'ctest-policy-allow-all-27231515'] 2024-08-27 16:43:40,178 - INFO - VN ctest-vn-43220196 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-27 16:43:40,178 - DEBUG - Verifying the vn in opserver 2024-08-27 16:43:40,178 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43828776:ctest-vn-43220196 virtual network link through opserver 10.0.0.23 2024-08-27 16:43:40,178 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2024-08-27 16:43:40,469 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2024-08-27 16:43:40,532 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43828776:ctest-vn-43220196', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43828776:ctest-vn-43220196?flat'} 2024-08-27 16:43:40,532 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43828776:ctest-vn-43220196 is found in opserver 2024-08-27 16:43:40,543 - DEBUG - Do not have enough data to verify VN in agent 2024-08-27 16:43:40,549 - DEBUG - VRF ids for VN ctest-vn-43220196: {} 2024-08-27 16:43:40,549 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-08-27 16:43:40,555 - DEBUG - Requesting: http://10.0.0.23:8082/domain/aae2f8df-7888-426f-802c-550db83506fe 2024-08-27 16:43:40,568 - DEBUG - Requesting: http://10.0.0.23:8082/project/549c53f3-b5d7-457b-9ed0-f27702f8e63a 2024-08-27 16:43:40,638 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/6296ade6-65e3-4691-9ad7-401780259a24 2024-08-27 16:43:40,648 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/6296ade6-65e3-4691-9ad7-401780259a24 2024-08-27 16:43:40,657 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/7feb2848-9f14-4901-8570-c9117d8ecace 2024-08-27 16:43:40,665 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/7feb2848-9f14-4901-8570-c9117d8ecace 2024-08-27 16:43:40,674 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/ea4bee2b-b895-4d06-bf19-a3d7188e5997 2024-08-27 16:43:40,682 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-27 16:43:40,682 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/6296ade6-65e3-4691-9ad7-401780259a24 2024-08-27 16:43:40,692 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/7feb2848-9f14-4901-8570-c9117d8ecace 2024-08-27 16:43:40,707 - INFO - Verified VN network id 10 for VN 6296ade6-65e3-4691-9ad7-401780259a24 2024-08-27 16:43:40,707 - INFO - Verifications in API Server for VN ctest-vn-35824684 passed 2024-08-27 16:43:40,707 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/6296ade6-65e3-4691-9ad7-401780259a24 2024-08-27 16:43:40,716 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/7feb2848-9f14-4901-8570-c9117d8ecace 2024-08-27 16:43:40,723 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/7feb2848-9f14-4901-8570-c9117d8ecace 2024-08-27 16:43:40,731 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/ea4bee2b-b895-4d06-bf19-a3d7188e5997 2024-08-27 16:43:40,745 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43828776:ctest-vn-35824684', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43828776', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7104056667287013009', 'uuid-lslong': '11157457071512066596'}, 'enable': 'true', 'created': '2024-08-27T16:43:38', 'last-modified': '2024-08-27T16:43:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.373048'} 2024-08-27 16:43:40,753 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-27 16:43:40,753 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35824684 passed 2024-08-27 16:43:40,753 - DEBUG - ====Verifying policy data for ctest-vn-35824684 in API_Server ====== 2024-08-27 16:43:40,753 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-08-27 16:43:40,759 - DEBUG - Requesting: http://10.0.0.23:8082/domain/aae2f8df-7888-426f-802c-550db83506fe 2024-08-27 16:43:40,772 - DEBUG - Requesting: http://10.0.0.23:8082/project/549c53f3-b5d7-457b-9ed0-f27702f8e63a 2024-08-27 16:43:40,843 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/6296ade6-65e3-4691-9ad7-401780259a24 2024-08-27 16:43:40,853 - DEBUG - ==>Verifying data for policy with id: 3b674156-c8f6-41d2-b685-e839cebd098e, fqn: ['default-domain', 'ctest-TestBasicPolicy-43828776', 'ctest-policy-allow-all-27231515'] 2024-08-27 16:43:40,853 - INFO - VN ctest-vn-35824684 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-27 16:43:40,853 - DEBUG - Verifying the vn in opserver 2024-08-27 16:43:40,853 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43828776:ctest-vn-35824684 virtual network link through opserver 10.0.0.23 2024-08-27 16:43:40,853 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2024-08-27 16:43:40,866 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43828776:ctest-vn-35824684', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43828776:ctest-vn-35824684?flat'} 2024-08-27 16:43:40,866 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43828776:ctest-vn-35824684 is found in opserver 2024-08-27 16:43:40,879 - DEBUG - Do not have enough data to verify VN in agent 2024-08-27 16:43:40,885 - DEBUG - VRF ids for VN ctest-vn-35824684: {} 2024-08-27 16:43:40,942 - DEBUG - Services list from nova: [, , ] 2024-08-27 16:43:42,038 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1799-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1799-1) 2024-08-27 16:43:43,278 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1799-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1799-1) 2024-08-27 16:43:43,279 - INFO - Waiting for VM ctest-TestBasicPolicy-43828776-30617117 to be up.. 2024-08-27 16:43:43,362 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-27 16:43:48,445 - DEBUG - VM is in ACTIVE state now 2024-08-27 16:43:48,445 - INFO - VM name : ctest-TestBasicPolicy-43828776-30617117 2024-08-27 16:43:48,520 - DEBUG - VM ctest-TestBasicPolicy-43828776-30617117 ID is 2ab0b1fc-86e7-4256-87b6-eccf21a8c12a 2024-08-27 16:43:48,543 - DEBUG - VM ctest-TestBasicPolicy-43828776-30617117 launched on Node cn-jenkins-deploy-platform-ansible-os-1799-1 2024-08-27 16:43:48,620 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/2ab0b1fc-86e7-4256-87b6-eccf21a8c12a 2024-08-27 16:43:48,628 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/887367e6-a760-4f24-b768-b2677246d217 2024-08-27 16:43:51,870 - 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 1015ms') 2024-08-27 16:43:51,870 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-43828776-30617117 failed! 2024-08-27 16:43:51,925 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-43828776:ctest-vn-43220196 is 165.167.151.129 and allocation pool is NOT set 2024-08-27 16:43:53,981 - 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.28 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.638 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.638/1.957/3.276/1.319 ms') 2024-08-27 16:43:53,981 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-43828776-30617117 passed 2024-08-27 16:43:54,129 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 16:43:54,129 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-43828776-30617117, IP 165.167.151.131, Port 22 2024-08-27 16:43:54,294 - DEBUG - VM ctest-TestBasicPolicy-43828776-30617117 is ready for SSH connections 2024-08-27 16:43:54,294 - INFO - Waiting for VM ctest-TestBasicPolicy-43828776-00391633 to be up.. 2024-08-27 16:43:54,375 - DEBUG - VM is in ACTIVE state now 2024-08-27 16:43:54,375 - INFO - VM name : ctest-TestBasicPolicy-43828776-00391633 2024-08-27 16:43:54,461 - DEBUG - VM ctest-TestBasicPolicy-43828776-00391633 ID is 62f0c56f-2b6c-4b17-a91f-61ee760dd0cb 2024-08-27 16:43:54,461 - DEBUG - VM ctest-TestBasicPolicy-43828776-00391633 launched on Node cn-jenkins-deploy-platform-ansible-os-1799-1 2024-08-27 16:43:54,540 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/62f0c56f-2b6c-4b17-a91f-61ee760dd0cb 2024-08-27 16:43:54,550 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/2c5c2cbf-c7ae-4967-820b-3e780dac03ba 2024-08-27 16:43:55,781 - 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.50 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.423 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.423/1.460/2.498/1.037 ms') 2024-08-27 16:43:55,781 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-43828776-00391633 passed 2024-08-27 16:43:55,929 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 16:43:55,929 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-43828776-00391633, IP 115.58.203.3, Port 22 2024-08-27 16:43:56,085 - DEBUG - VM ctest-TestBasicPolicy-43828776-00391633 is ready for SSH connections 2024-08-27 16:43:56,085 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 16:43:56,085 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 115.58.203.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2024-08-27 16:43:56,085 - DEBUG - ping -s 56 -c 3 -W 1 115.58.203.3 2024-08-27 16:44:00,064 - DEBUG - PING 115.58.203.3 (115.58.203.3): 56 data bytes 64 bytes from 115.58.203.3: seq=0 ttl=63 time=3.699 ms 64 bytes from 115.58.203.3: seq=1 ttl=63 time=0.918 ms 64 bytes from 115.58.203.3: seq=2 ttl=63 time=0.751 ms --- 115.58.203.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.751/1.789/3.699 ms 2024-08-27 16:44:00,064 - INFO - Ping to IP 115.58.203.3 from VM ctest-TestBasicPolicy-43828776-30617117 passed 2024-08-27 16:44:00,244 - DEBUG - Policy Update Response {"network-policy": {"uuid": "3b674156-c8f6-41d2-b685-e839cebd098e", "href": "http://10.0.0.23:8082/network-policy/3b674156-c8f6-41d2-b685-e839cebd098e"}} 2024-08-27 16:44:00,245 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 16:44:00,245 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 115.58.203.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2024-08-27 16:44:00,245 - DEBUG - ping -s 56 -c 3 -W 1 115.58.203.3 2024-08-27 16:44:03,447 - DEBUG - PING 115.58.203.3 (115.58.203.3): 56 data bytes 64 bytes from 115.58.203.3: seq=0 ttl=63 time=1.402 ms --- 115.58.203.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.402/1.402/1.402 ms 2024-08-27 16:44:03,447 - WARNING - Ping to IP 115.58.203.3 from VM ctest-TestBasicPolicy-43828776-30617117 failed 2024-08-27 16:44:03,447 - INFO - Deleting VM ctest-TestBasicPolicy-43828776-00391633 2024-08-27 16:44:03,524 - INFO - Deleting VM ctest-TestBasicPolicy-43828776-30617117 2024-08-27 16:44:03,913 - INFO - Deleted policy ctest-policy-allow-all-27231515 2024-08-27 16:44:03,913 - INFO - Deleting VN ctest-vn-35824684 2024-08-27 16:44:03,954 - DEBUG - VN 6296ade6-65e3-4691-9ad7-401780259a24 still in use: Unable to complete operation on network 6296ade6-65e3-4691-9ad7-401780259a24. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-33181490-cb49-4e40-afb5-0a893be0875a'] 2024-08-27 16:44:03,955 - WARNING - Deleting VN ctest-vn-35824684 failed..Will retry 2024-08-27 16:44:06,261 - DEBUG - Response for deleting network () 2024-08-27 16:44:06,261 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/7feb2848-9f14-4901-8570-c9117d8ecace 2024-08-27 16:44:06,268 - DEBUG - Response Code: 404 2024-08-27 16:44:06,268 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-08-27 16:44:06,275 - DEBUG - Requesting: http://10.0.0.23:8082/domain/aae2f8df-7888-426f-802c-550db83506fe 2024-08-27 16:44:06,340 - DEBUG - Requesting: http://10.0.0.23:8082/project/549c53f3-b5d7-457b-9ed0-f27702f8e63a 2024-08-27 16:44:06,417 - INFO - Validated that VN ctest-vn-35824684 is not found in API Server 2024-08-27 16:44:06,428 - DEBUG - VN ctest-vn-35824684 is not present in Agent 10.0.0.23 2024-08-27 16:44:06,428 - INFO - Validated that VN ctest-vn-35824684 is not in any agent 2024-08-27 16:44:06,447 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-35824684 info 2024-08-27 16:44:06,447 - INFO - Deleting VN ctest-vn-43220196 2024-08-27 16:44:06,555 - DEBUG - Response for deleting network () 2024-08-27 16:44:06,555 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/0faae86c-d18c-4412-8c5c-d7108a26bdb4 2024-08-27 16:44:06,566 - DEBUG - Response Code: 404 2024-08-27 16:44:06,566 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-08-27 16:44:06,575 - DEBUG - Requesting: http://10.0.0.23:8082/domain/aae2f8df-7888-426f-802c-550db83506fe 2024-08-27 16:44:06,630 - DEBUG - Requesting: http://10.0.0.23:8082/project/549c53f3-b5d7-457b-9ed0-f27702f8e63a 2024-08-27 16:44:06,703 - INFO - Validated that VN ctest-vn-43220196 is not found in API Server 2024-08-27 16:44:06,715 - DEBUG - VN ctest-vn-43220196 is not present in Agent 10.0.0.23 2024-08-27 16:44:06,715 - INFO - Validated that VN ctest-vn-43220196 is not in any agent 2024-08-27 16:44:06,732 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-43220196 info 2024-08-27 16:44:06,988 - DEBUG - No XMPP flaps were noticed during the test
2024-08-27 16:44:06,988 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:29]
2024-08-27 16:44:06,988 - INFO - -------------------------------------------------------------------------------- 2024-08-27 16:44:07,677 - INFO - Deleted project: ctest-TestBasicPolicy-43828776, ID : 549c53f3-b5d7-457b-9ed0-f27702f8e63a