2024-10-28 17:32:17,654 - INFO - Domain Default found not creating 2024-10-28 17:32:17,845 - INFO - Project ctest-TestBasicPolicy-01515961 not found, creating it 2024-10-28 17:32:18,358 - INFO - Created Project:ctest-TestBasicPolicy-01515961, ID : 20672c27-c1e8-4463-8a4e-bb8c68b4dbbf 2024-10-28 17:32:20,034 - INFO - ================================================================================ 2024-10-28 17:32:20,035 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-28 17:32:20,035 - 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-28 17:32:20,311 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.20.0.22': '0'}} with 2024-10-28 17:32:20,312 - INFO - Initial checks done. Running the testcase now 2024-10-28 17:32:20,312 - INFO - 2024-10-28 17:32:20,928 - DEBUG - Response for create_network : {'network': {'id': 'ad78c636-27cc-453a-b61e-e15ca48c27de', 'name': 'ctest-vn-35631471', 'tenant_id': '20672c27c1e844638a4ebb8c68b4dbbf', 'project_id': '20672c27c1e844638a4ebb8c68b4dbbf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01515961', 'ctest-vn-35631471'], 'port_security_enabled': True, 'description': ''}} 2024-10-28 17:32:21,158 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aebfded7-9bca-42fd-a9ec-bedfbfc35a53', 'name': '', 'tenant_id': '20672c27c1e844638a4ebb8c68b4dbbf', 'network_id': 'ad78c636-27cc-453a-b61e-e15ca48c27de', 'ip_version': 4, 'cidr': '176.32.74.192/26', 'allocation_pools': [{'start': '176.32.74.194', 'end': '176.32.74.254'}], 'gateway_ip': '176.32.74.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '176.32.74.194', 'tags': [], 'project_id': '20672c27c1e844638a4ebb8c68b4dbbf'}} 2024-10-28 17:32:21,179 - INFO - Created VN ctest-vn-35631471 2024-10-28 17:32:21,238 - DEBUG - VN ctest-vn-35631471 UUID is ad78c636-27cc-453a-b61e-e15ca48c27de 2024-10-28 17:32:21,596 - DEBUG - Response for create_network : {'network': {'id': '19f60bb0-8a59-4418-8700-a508cfedb18d', 'name': 'ctest-vn-06359809', 'tenant_id': '20672c27c1e844638a4ebb8c68b4dbbf', 'project_id': '20672c27c1e844638a4ebb8c68b4dbbf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01515961', 'ctest-vn-06359809'], 'port_security_enabled': True, 'description': ''}} 2024-10-28 17:32:21,837 - DEBUG - Response for create_subnet : {'subnet': {'id': '2568e122-2209-4faf-a86c-83f160c093af', 'name': '', 'tenant_id': '20672c27c1e844638a4ebb8c68b4dbbf', 'network_id': '19f60bb0-8a59-4418-8700-a508cfedb18d', 'ip_version': 4, 'cidr': '158.159.205.0/26', 'allocation_pools': [{'start': '158.159.205.2', 'end': '158.159.205.62'}], 'gateway_ip': '158.159.205.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '158.159.205.2', 'tags': [], 'project_id': '20672c27c1e844638a4ebb8c68b4dbbf'}} 2024-10-28 17:32:21,859 - INFO - Created VN ctest-vn-06359809 2024-10-28 17:32:21,918 - DEBUG - VN ctest-vn-06359809 UUID is 19f60bb0-8a59-4418-8700-a508cfedb18d 2024-10-28 17:32:22,053 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-01515961:ctest-vn-35631471, 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-01515961:ctest-vn-06359809, 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-28 17:32:22,412 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ad78c636-27cc-453a-b61e-e15ca48c27de', 'name': 'ctest-vn-35631471', 'tenant_id': '20672c27c1e844638a4ebb8c68b4dbbf', 'project_id': '20672c27c1e844638a4ebb8c68b4dbbf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aebfded7-9bca-42fd-a9ec-bedfbfc35a53'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01515961', 'ctest-vn-35631471'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01515961', 'ctest-policy-allow-all-84426652']], 'subnet_ipam': [{'subnet_cidr': '176.32.74.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-28 17:32:22,674 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '19f60bb0-8a59-4418-8700-a508cfedb18d', 'name': 'ctest-vn-06359809', 'tenant_id': '20672c27c1e844638a4ebb8c68b4dbbf', 'project_id': '20672c27c1e844638a4ebb8c68b4dbbf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2568e122-2209-4faf-a86c-83f160c093af'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01515961', 'ctest-vn-06359809'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01515961', 'ctest-policy-allow-all-84426652']], 'subnet_ipam': [{'subnet_cidr': '158.159.205.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-28 17:32:22,862 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-10-28 17:32:23,163 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-10-28 17:32:23,208 - DEBUG - Requesting: http://10.0.0.30:8082/domain/408ff40b-c2a4-4b7e-9eec-15489fc0b427 2024-10-28 17:32:23,225 - DEBUG - Requesting: http://10.0.0.30:8082/project/20672c27-c1e8-4463-8a4e-bb8c68b4dbbf 2024-10-28 17:32:23,320 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/ad78c636-27cc-453a-b61e-e15ca48c27de 2024-10-28 17:32:23,339 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/ad78c636-27cc-453a-b61e-e15ca48c27de 2024-10-28 17:32:23,356 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/6dae510d-c073-407a-8996-fa5ebddeb152 2024-10-28 17:32:23,366 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/6dae510d-c073-407a-8996-fa5ebddeb152 2024-10-28 17:32:23,379 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/cce48c09-a278-4488-9bb9-25e6b91f7c17 2024-10-28 17:32:23,389 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-28 17:32:23,389 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/ad78c636-27cc-453a-b61e-e15ca48c27de 2024-10-28 17:32:23,405 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/6dae510d-c073-407a-8996-fa5ebddeb152 2024-10-28 17:32:23,427 - INFO - Verified VN network id 8 for VN ad78c636-27cc-453a-b61e-e15ca48c27de 2024-10-28 17:32:23,427 - INFO - Verifications in API Server for VN ctest-vn-35631471 passed 2024-10-28 17:32:23,427 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/ad78c636-27cc-453a-b61e-e15ca48c27de 2024-10-28 17:32:23,443 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/6dae510d-c073-407a-8996-fa5ebddeb152 2024-10-28 17:32:23,454 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/6dae510d-c073-407a-8996-fa5ebddeb152 2024-10-28 17:32:23,463 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/cce48c09-a278-4488-9bb9-25e6b91f7c17 2024-10-28 17:32:23,478 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01515961:ctest-vn-35631471', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01515961', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12499958701665043770', 'uuid-lslong': '13123174152218093534'}, 'enable': 'true', 'created': '2024-10-28T17:32:20', 'last-modified': '2024-10-28T17:32:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.095118'} 2024-10-28 17:32:23,485 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-28 17:32:23,485 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35631471 passed 2024-10-28 17:32:23,486 - DEBUG - ====Verifying policy data for ctest-vn-35631471 in API_Server ====== 2024-10-28 17:32:23,486 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-10-28 17:32:23,492 - DEBUG - Requesting: http://10.0.0.30:8082/domain/408ff40b-c2a4-4b7e-9eec-15489fc0b427 2024-10-28 17:32:23,508 - DEBUG - Requesting: http://10.0.0.30:8082/project/20672c27-c1e8-4463-8a4e-bb8c68b4dbbf 2024-10-28 17:32:23,591 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/ad78c636-27cc-453a-b61e-e15ca48c27de 2024-10-28 17:32:23,606 - DEBUG - ==>Verifying data for policy with id: a4201557-f83b-49bd-9f43-00231d722626, fqn: ['default-domain', 'ctest-TestBasicPolicy-01515961', 'ctest-policy-allow-all-84426652'] 2024-10-28 17:32:23,606 - INFO - VN ctest-vn-35631471 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-28 17:32:23,606 - DEBUG - Verifying the vn in opserver 2024-10-28 17:32:23,606 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01515961:ctest-vn-35631471 virtual network link through opserver 10.0.0.30 2024-10-28 17:32:23,606 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2024-10-28 17:32:23,902 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2024-10-28 17:32:23,971 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01515961:ctest-vn-35631471', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01515961:ctest-vn-35631471?flat'} 2024-10-28 17:32:23,971 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01515961:ctest-vn-35631471 is found in opserver 2024-10-28 17:32:23,983 - DEBUG - Do not have enough data to verify VN in agent 2024-10-28 17:32:23,988 - DEBUG - VRF ids for VN ctest-vn-35631471: {} 2024-10-28 17:32:23,988 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-10-28 17:32:23,995 - DEBUG - Requesting: http://10.0.0.30:8082/domain/408ff40b-c2a4-4b7e-9eec-15489fc0b427 2024-10-28 17:32:24,010 - DEBUG - Requesting: http://10.0.0.30:8082/project/20672c27-c1e8-4463-8a4e-bb8c68b4dbbf 2024-10-28 17:32:24,097 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/19f60bb0-8a59-4418-8700-a508cfedb18d 2024-10-28 17:32:24,118 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/19f60bb0-8a59-4418-8700-a508cfedb18d 2024-10-28 17:32:24,135 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/6dbb6b02-5617-4dc9-9982-98d996320366 2024-10-28 17:32:24,147 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/6dbb6b02-5617-4dc9-9982-98d996320366 2024-10-28 17:32:24,156 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/ec08e426-3912-4c7e-9251-f67d5e940075 2024-10-28 17:32:24,164 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-28 17:32:24,164 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/19f60bb0-8a59-4418-8700-a508cfedb18d 2024-10-28 17:32:24,178 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/6dbb6b02-5617-4dc9-9982-98d996320366 2024-10-28 17:32:24,198 - INFO - Verified VN network id 9 for VN 19f60bb0-8a59-4418-8700-a508cfedb18d 2024-10-28 17:32:24,198 - INFO - Verifications in API Server for VN ctest-vn-06359809 passed 2024-10-28 17:32:24,198 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/19f60bb0-8a59-4418-8700-a508cfedb18d 2024-10-28 17:32:24,213 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/6dbb6b02-5617-4dc9-9982-98d996320366 2024-10-28 17:32:24,223 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/6dbb6b02-5617-4dc9-9982-98d996320366 2024-10-28 17:32:24,232 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/ec08e426-3912-4c7e-9251-f67d5e940075 2024-10-28 17:32:24,246 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01515961:ctest-vn-06359809', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01515961', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1870695548082275352', 'uuid-lslong': '9727956652387053965'}, 'enable': 'true', 'created': '2024-10-28T17:32:21', 'last-modified': '2024-10-28T17:32:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.605229'} 2024-10-28 17:32:24,252 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-28 17:32:24,253 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06359809 passed 2024-10-28 17:32:24,253 - DEBUG - ====Verifying policy data for ctest-vn-06359809 in API_Server ====== 2024-10-28 17:32:24,253 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-10-28 17:32:24,259 - DEBUG - Requesting: http://10.0.0.30:8082/domain/408ff40b-c2a4-4b7e-9eec-15489fc0b427 2024-10-28 17:32:24,272 - DEBUG - Requesting: http://10.0.0.30:8082/project/20672c27-c1e8-4463-8a4e-bb8c68b4dbbf 2024-10-28 17:32:24,352 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/19f60bb0-8a59-4418-8700-a508cfedb18d 2024-10-28 17:32:24,371 - DEBUG - ==>Verifying data for policy with id: a4201557-f83b-49bd-9f43-00231d722626, fqn: ['default-domain', 'ctest-TestBasicPolicy-01515961', 'ctest-policy-allow-all-84426652'] 2024-10-28 17:32:24,371 - INFO - VN ctest-vn-06359809 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-28 17:32:24,371 - DEBUG - Verifying the vn in opserver 2024-10-28 17:32:24,371 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01515961:ctest-vn-06359809 virtual network link through opserver 10.0.0.30 2024-10-28 17:32:24,371 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2024-10-28 17:32:24,384 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01515961:ctest-vn-06359809', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01515961:ctest-vn-06359809?flat'} 2024-10-28 17:32:24,384 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01515961:ctest-vn-06359809 is found in opserver 2024-10-28 17:32:24,395 - DEBUG - Do not have enough data to verify VN in agent 2024-10-28 17:32:24,401 - DEBUG - VRF ids for VN ctest-vn-06359809: {} 2024-10-28 17:32:24,463 - DEBUG - Services list from nova: [, , ] 2024-10-28 17:32:25,543 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2172-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2172-1) 2024-10-28 17:32:26,888 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2172-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2172-1) 2024-10-28 17:32:26,889 - INFO - Waiting for VM ctest-TestBasicPolicy-01515961-09190925 to be up.. 2024-10-28 17:32:27,007 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-28 17:32:32,108 - DEBUG - VM is in ACTIVE state now 2024-10-28 17:32:32,108 - INFO - VM name : ctest-TestBasicPolicy-01515961-09190925 2024-10-28 17:32:32,225 - DEBUG - VM ctest-TestBasicPolicy-01515961-09190925 ID is 7eb04f9d-e778-4961-9de6-5d0a9b18beaa 2024-10-28 17:32:32,251 - DEBUG - VM ctest-TestBasicPolicy-01515961-09190925 launched on Node cn-jenkins-deploy-platform-ansible-os-2172-1 2024-10-28 17:32:32,353 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/7eb04f9d-e778-4961-9de6-5d0a9b18beaa 2024-10-28 17:32:32,365 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/67a4cac6-6ced-4267-aae8-3e62efe4b8dd 2024-10-28 17:32:35,629 - 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 1007ms') 2024-10-28 17:32:35,629 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-01515961-09190925 failed! 2024-10-28 17:32:35,690 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-01515961:ctest-vn-35631471 is 176.32.74.193 and allocation pool is NOT set 2024-10-28 17:32:37,763 - 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=7.16 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.460 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.460/3.810/7.160/3.350 ms') 2024-10-28 17:32:37,763 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-01515961-09190925 passed 2024-10-28 17:32:37,934 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 17:32:37,934 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-01515961-09190925, IP 176.32.74.195, Port 22 2024-10-28 17:32:38,094 - DEBUG - VM ctest-TestBasicPolicy-01515961-09190925 is ready for SSH connections 2024-10-28 17:32:38,094 - INFO - Waiting for VM ctest-TestBasicPolicy-01515961-95144606 to be up.. 2024-10-28 17:32:38,187 - DEBUG - VM is in ACTIVE state now 2024-10-28 17:32:38,187 - INFO - VM name : ctest-TestBasicPolicy-01515961-95144606 2024-10-28 17:32:38,300 - DEBUG - VM ctest-TestBasicPolicy-01515961-95144606 ID is 24e1cc1c-853e-42de-a7ef-795812697593 2024-10-28 17:32:38,300 - DEBUG - VM ctest-TestBasicPolicy-01515961-95144606 launched on Node cn-jenkins-deploy-platform-ansible-os-2172-1 2024-10-28 17:32:38,393 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/24e1cc1c-853e-42de-a7ef-795812697593 2024-10-28 17:32:38,413 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/0215ec8a-5327-4f96-be32-d723a21393c9 2024-10-28 17:32:39,714 - 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.87 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.645 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.645/1.756/2.868/1.111 ms') 2024-10-28 17:32:39,714 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-01515961-95144606 passed 2024-10-28 17:32:39,874 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 17:32:39,874 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-01515961-95144606, IP 158.159.205.3, Port 22 2024-10-28 17:32:40,030 - DEBUG - VM ctest-TestBasicPolicy-01515961-95144606 is ready for SSH connections 2024-10-28 17:32:40,030 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 17:32:40,031 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 158.159.205.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.30, gateway password: c0ntrail123 2024-10-28 17:32:40,031 - DEBUG - ping -s 56 -c 3 -W 1 158.159.205.3 2024-10-28 17:32:44,054 - DEBUG - PING 158.159.205.3 (158.159.205.3): 56 data bytes 64 bytes from 158.159.205.3: seq=0 ttl=63 time=4.834 ms 64 bytes from 158.159.205.3: seq=1 ttl=63 time=1.289 ms 64 bytes from 158.159.205.3: seq=2 ttl=63 time=1.165 ms --- 158.159.205.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.165/2.429/4.834 ms 2024-10-28 17:32:44,054 - INFO - Ping to IP 158.159.205.3 from VM ctest-TestBasicPolicy-01515961-09190925 passed 2024-10-28 17:32:44,258 - DEBUG - Policy Update Response {"network-policy": {"uuid": "a4201557-f83b-49bd-9f43-00231d722626", "href": "http://10.0.0.30:8082/network-policy/a4201557-f83b-49bd-9f43-00231d722626"}} 2024-10-28 17:32:44,258 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 17:32:44,258 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 158.159.205.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.30, gateway password: c0ntrail123 2024-10-28 17:32:44,258 - DEBUG - ping -s 56 -c 3 -W 1 158.159.205.3 2024-10-28 17:32:47,479 - DEBUG - PING 158.159.205.3 (158.159.205.3): 56 data bytes 64 bytes from 158.159.205.3: seq=0 ttl=63 time=2.475 ms --- 158.159.205.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.475/2.475/2.475 ms 2024-10-28 17:32:47,479 - WARNING - Ping to IP 158.159.205.3 from VM ctest-TestBasicPolicy-01515961-09190925 failed 2024-10-28 17:32:47,480 - INFO - Deleting VM ctest-TestBasicPolicy-01515961-95144606 2024-10-28 17:32:47,575 - INFO - Deleting VM ctest-TestBasicPolicy-01515961-09190925 2024-10-28 17:32:48,081 - INFO - Deleted policy ctest-policy-allow-all-84426652 2024-10-28 17:32:48,082 - INFO - Deleting VN ctest-vn-06359809 2024-10-28 17:32:48,134 - DEBUG - VN 19f60bb0-8a59-4418-8700-a508cfedb18d still in use: Unable to complete operation on network 19f60bb0-8a59-4418-8700-a508cfedb18d. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-671c1fda-fc70-48fb-952f-8146da5aa139'] 2024-10-28 17:32:48,134 - WARNING - Deleting VN ctest-vn-06359809 failed..Will retry 2024-10-28 17:32:50,379 - DEBUG - Response for deleting network () 2024-10-28 17:32:50,379 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/6dbb6b02-5617-4dc9-9982-98d996320366 2024-10-28 17:32:50,386 - DEBUG - Response Code: 404 2024-10-28 17:32:50,386 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-10-28 17:32:50,392 - DEBUG - Requesting: http://10.0.0.30:8082/domain/408ff40b-c2a4-4b7e-9eec-15489fc0b427 2024-10-28 17:32:50,457 - DEBUG - Requesting: http://10.0.0.30:8082/project/20672c27-c1e8-4463-8a4e-bb8c68b4dbbf 2024-10-28 17:32:50,536 - INFO - Validated that VN ctest-vn-06359809 is not found in API Server 2024-10-28 17:32:50,548 - DEBUG - VN ctest-vn-06359809 is not present in Agent 10.0.0.30 2024-10-28 17:32:50,549 - INFO - Validated that VN ctest-vn-06359809 is not in any agent 2024-10-28 17:32:50,565 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-06359809 info 2024-10-28 17:32:50,565 - INFO - Deleting VN ctest-vn-35631471 2024-10-28 17:32:50,689 - DEBUG - Response for deleting network () 2024-10-28 17:32:50,689 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/6dae510d-c073-407a-8996-fa5ebddeb152 2024-10-28 17:32:50,696 - DEBUG - Response Code: 404 2024-10-28 17:32:50,696 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-10-28 17:32:50,703 - DEBUG - Requesting: http://10.0.0.30:8082/domain/408ff40b-c2a4-4b7e-9eec-15489fc0b427 2024-10-28 17:32:50,761 - DEBUG - Requesting: http://10.0.0.30:8082/project/20672c27-c1e8-4463-8a4e-bb8c68b4dbbf 2024-10-28 17:32:50,840 - INFO - Validated that VN ctest-vn-35631471 is not found in API Server 2024-10-28 17:32:50,854 - DEBUG - VN ctest-vn-35631471 is not present in Agent 10.0.0.30 2024-10-28 17:32:50,854 - INFO - Validated that VN ctest-vn-35631471 is not in any agent 2024-10-28 17:32:50,874 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-35631471 info 2024-10-28 17:32:51,143 - DEBUG - No XMPP flaps were noticed during the test
2024-10-28 17:32:51,143 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31]
2024-10-28 17:32:51,143 - INFO - -------------------------------------------------------------------------------- 2024-10-28 17:32:52,083 - INFO - Deleted project: ctest-TestBasicPolicy-01515961, ID : 20672c27-c1e8-4463-8a4e-bb8c68b4dbbf