2024-10-22 09:54:19,989 - INFO - Domain Default found not creating 2024-10-22 09:54:20,154 - INFO - Project ctest-TestBasicPolicy-32007047 not found, creating it 2024-10-22 09:54:20,622 - INFO - Created Project:ctest-TestBasicPolicy-32007047, ID : d27899ef-ce7a-4d6b-b05a-2a25bb917fad 2024-10-22 09:54:22,180 - INFO - ================================================================================ 2024-10-22 09:54:22,181 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-22 09:54:22,181 - 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-22 09:54:22,435 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.5': '0'}} with 2024-10-22 09:54:22,435 - INFO - Initial checks done. Running the testcase now 2024-10-22 09:54:22,435 - INFO - 2024-10-22 09:54:23,393 - DEBUG - Response for create_network : {'network': {'id': 'b87328c6-2ed3-4b00-a2c3-04ba4698d080', 'name': 'ctest-vn-57519322', 'tenant_id': 'd27899efce7a4d6bb05a2a25bb917fad', 'project_id': 'd27899efce7a4d6bb05a2a25bb917fad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32007047', 'ctest-vn-57519322'], 'port_security_enabled': True, 'description': ''}} 2024-10-22 09:54:23,587 - DEBUG - Response for create_subnet : {'subnet': {'id': '46f05916-b312-4685-ba77-cc0149047aef', 'name': '', 'tenant_id': 'd27899efce7a4d6bb05a2a25bb917fad', 'network_id': 'b87328c6-2ed3-4b00-a2c3-04ba4698d080', 'ip_version': 4, 'cidr': '99.175.148.192/26', 'allocation_pools': [{'start': '99.175.148.194', 'end': '99.175.148.254'}], 'gateway_ip': '99.175.148.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.175.148.194', 'tags': [], 'project_id': 'd27899efce7a4d6bb05a2a25bb917fad'}} 2024-10-22 09:54:23,607 - INFO - Created VN ctest-vn-57519322 2024-10-22 09:54:23,664 - DEBUG - VN ctest-vn-57519322 UUID is b87328c6-2ed3-4b00-a2c3-04ba4698d080 2024-10-22 09:54:23,990 - DEBUG - Response for create_network : {'network': {'id': 'fa435de0-5b0d-4cf2-a178-b373364954ef', 'name': 'ctest-vn-54096689', 'tenant_id': 'd27899efce7a4d6bb05a2a25bb917fad', 'project_id': 'd27899efce7a4d6bb05a2a25bb917fad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32007047', 'ctest-vn-54096689'], 'port_security_enabled': True, 'description': ''}} 2024-10-22 09:54:24,219 - DEBUG - Response for create_subnet : {'subnet': {'id': '0b1ca2d6-4ec2-4566-9fac-f8e97a827efe', 'name': '', 'tenant_id': 'd27899efce7a4d6bb05a2a25bb917fad', 'network_id': 'fa435de0-5b0d-4cf2-a178-b373364954ef', 'ip_version': 4, 'cidr': '11.37.139.64/26', 'allocation_pools': [{'start': '11.37.139.66', 'end': '11.37.139.126'}], 'gateway_ip': '11.37.139.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.37.139.66', 'tags': [], 'project_id': 'd27899efce7a4d6bb05a2a25bb917fad'}} 2024-10-22 09:54:24,238 - INFO - Created VN ctest-vn-54096689 2024-10-22 09:54:24,296 - DEBUG - VN ctest-vn-54096689 UUID is fa435de0-5b0d-4cf2-a178-b373364954ef 2024-10-22 09:54:24,415 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-32007047:ctest-vn-57519322, 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-32007047:ctest-vn-54096689, 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-22 09:54:24,734 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b87328c6-2ed3-4b00-a2c3-04ba4698d080', 'name': 'ctest-vn-57519322', 'tenant_id': 'd27899efce7a4d6bb05a2a25bb917fad', 'project_id': 'd27899efce7a4d6bb05a2a25bb917fad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['46f05916-b312-4685-ba77-cc0149047aef'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32007047', 'ctest-vn-57519322'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32007047', 'ctest-policy-allow-all-96285044']], 'subnet_ipam': [{'subnet_cidr': '99.175.148.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-22 09:54:25,042 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fa435de0-5b0d-4cf2-a178-b373364954ef', 'name': 'ctest-vn-54096689', 'tenant_id': 'd27899efce7a4d6bb05a2a25bb917fad', 'project_id': 'd27899efce7a4d6bb05a2a25bb917fad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0b1ca2d6-4ec2-4566-9fac-f8e97a827efe'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32007047', 'ctest-vn-54096689'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32007047', 'ctest-policy-allow-all-96285044']], 'subnet_ipam': [{'subnet_cidr': '11.37.139.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-22 09:54:25,197 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-10-22 09:54:25,502 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-10-22 09:54:25,538 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f68841ca-5433-4033-afff-aea86022c976 2024-10-22 09:54:25,553 - DEBUG - Requesting: http://10.0.0.27:8082/project/d27899ef-ce7a-4d6b-b05a-2a25bb917fad 2024-10-22 09:54:25,647 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b87328c6-2ed3-4b00-a2c3-04ba4698d080 2024-10-22 09:54:25,663 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b87328c6-2ed3-4b00-a2c3-04ba4698d080 2024-10-22 09:54:25,678 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1be45f98-9246-4652-98aa-db98fa7f7c12 2024-10-22 09:54:25,686 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1be45f98-9246-4652-98aa-db98fa7f7c12 2024-10-22 09:54:25,695 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/2d8632a5-14dd-4d52-8c20-2a3f7be084a6 2024-10-22 09:54:25,703 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-22 09:54:25,703 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b87328c6-2ed3-4b00-a2c3-04ba4698d080 2024-10-22 09:54:25,717 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1be45f98-9246-4652-98aa-db98fa7f7c12 2024-10-22 09:54:25,738 - INFO - Verified VN network id 8 for VN b87328c6-2ed3-4b00-a2c3-04ba4698d080 2024-10-22 09:54:25,738 - INFO - Verifications in API Server for VN ctest-vn-57519322 passed 2024-10-22 09:54:25,738 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b87328c6-2ed3-4b00-a2c3-04ba4698d080 2024-10-22 09:54:25,754 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1be45f98-9246-4652-98aa-db98fa7f7c12 2024-10-22 09:54:25,763 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1be45f98-9246-4652-98aa-db98fa7f7c12 2024-10-22 09:54:25,772 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/2d8632a5-14dd-4d52-8c20-2a3f7be084a6 2024-10-22 09:54:25,785 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32007047:ctest-vn-57519322', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32007047', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13291011756954700544', 'uuid-lslong': '11728223052697751680'}, 'enable': 'true', 'created': '2024-10-22T09:54:23', 'last-modified': '2024-10-22T09:54:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.074113'} 2024-10-22 09:54:25,792 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-22 09:54:25,793 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57519322 passed 2024-10-22 09:54:25,793 - DEBUG - ====Verifying policy data for ctest-vn-57519322 in API_Server ====== 2024-10-22 09:54:25,793 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-10-22 09:54:25,799 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f68841ca-5433-4033-afff-aea86022c976 2024-10-22 09:54:25,812 - DEBUG - Requesting: http://10.0.0.27:8082/project/d27899ef-ce7a-4d6b-b05a-2a25bb917fad 2024-10-22 09:54:25,901 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b87328c6-2ed3-4b00-a2c3-04ba4698d080 2024-10-22 09:54:25,915 - DEBUG - ==>Verifying data for policy with id: d06c9493-c8d1-46f4-9dcf-7c9d1975c682, fqn: ['default-domain', 'ctest-TestBasicPolicy-32007047', 'ctest-policy-allow-all-96285044'] 2024-10-22 09:54:25,915 - INFO - VN ctest-vn-57519322 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-22 09:54:25,915 - DEBUG - Verifying the vn in opserver 2024-10-22 09:54:25,915 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32007047:ctest-vn-57519322 virtual network link through opserver 10.0.0.27 2024-10-22 09:54:25,915 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2024-10-22 09:54:26,222 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2024-10-22 09:54:26,287 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32007047:ctest-vn-57519322', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32007047:ctest-vn-57519322?flat'} 2024-10-22 09:54:26,287 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32007047:ctest-vn-57519322 is found in opserver 2024-10-22 09:54:26,299 - DEBUG - Do not have enough data to verify VN in agent 2024-10-22 09:54:26,305 - DEBUG - VRF ids for VN ctest-vn-57519322: {} 2024-10-22 09:54:26,305 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-10-22 09:54:26,312 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f68841ca-5433-4033-afff-aea86022c976 2024-10-22 09:54:26,327 - DEBUG - Requesting: http://10.0.0.27:8082/project/d27899ef-ce7a-4d6b-b05a-2a25bb917fad 2024-10-22 09:54:26,407 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/fa435de0-5b0d-4cf2-a178-b373364954ef 2024-10-22 09:54:26,423 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/fa435de0-5b0d-4cf2-a178-b373364954ef 2024-10-22 09:54:26,437 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/bcbb845e-83b4-4268-9d54-58ac8aa517cf 2024-10-22 09:54:26,446 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/bcbb845e-83b4-4268-9d54-58ac8aa517cf 2024-10-22 09:54:26,454 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/4a33586a-2190-4be2-b51a-51229dba945f 2024-10-22 09:54:26,462 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-22 09:54:26,462 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/fa435de0-5b0d-4cf2-a178-b373364954ef 2024-10-22 09:54:26,478 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/bcbb845e-83b4-4268-9d54-58ac8aa517cf 2024-10-22 09:54:26,500 - INFO - Verified VN network id 9 for VN fa435de0-5b0d-4cf2-a178-b373364954ef 2024-10-22 09:54:26,500 - INFO - Verifications in API Server for VN ctest-vn-54096689 passed 2024-10-22 09:54:26,500 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/fa435de0-5b0d-4cf2-a178-b373364954ef 2024-10-22 09:54:26,516 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/bcbb845e-83b4-4268-9d54-58ac8aa517cf 2024-10-22 09:54:26,525 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/bcbb845e-83b4-4268-9d54-58ac8aa517cf 2024-10-22 09:54:26,534 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/4a33586a-2190-4be2-b51a-51229dba945f 2024-10-22 09:54:26,547 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32007047:ctest-vn-54096689', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32007047', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18033360551103253746', 'uuid-lslong': '11635246944725062895'}, 'enable': 'true', 'created': '2024-10-22T09:54:23', 'last-modified': '2024-10-22T09:54:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.578706'} 2024-10-22 09:54:26,554 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-22 09:54:26,554 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54096689 passed 2024-10-22 09:54:26,554 - DEBUG - ====Verifying policy data for ctest-vn-54096689 in API_Server ====== 2024-10-22 09:54:26,554 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-10-22 09:54:26,560 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f68841ca-5433-4033-afff-aea86022c976 2024-10-22 09:54:26,573 - DEBUG - Requesting: http://10.0.0.27:8082/project/d27899ef-ce7a-4d6b-b05a-2a25bb917fad 2024-10-22 09:54:26,655 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/fa435de0-5b0d-4cf2-a178-b373364954ef 2024-10-22 09:54:26,669 - DEBUG - ==>Verifying data for policy with id: d06c9493-c8d1-46f4-9dcf-7c9d1975c682, fqn: ['default-domain', 'ctest-TestBasicPolicy-32007047', 'ctest-policy-allow-all-96285044'] 2024-10-22 09:54:26,669 - INFO - VN ctest-vn-54096689 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-22 09:54:26,669 - DEBUG - Verifying the vn in opserver 2024-10-22 09:54:26,669 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32007047:ctest-vn-54096689 virtual network link through opserver 10.0.0.27 2024-10-22 09:54:26,669 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2024-10-22 09:54:26,681 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32007047:ctest-vn-54096689', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32007047:ctest-vn-54096689?flat'} 2024-10-22 09:54:26,681 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32007047:ctest-vn-54096689 is found in opserver 2024-10-22 09:54:26,691 - DEBUG - Do not have enough data to verify VN in agent 2024-10-22 09:54:26,696 - DEBUG - VRF ids for VN ctest-vn-54096689: {} 2024-10-22 09:54:26,750 - DEBUG - Services list from nova: [, , ] 2024-10-22 09:54:27,906 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2124-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2124-1) 2024-10-22 09:54:29,097 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2124-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2124-1) 2024-10-22 09:54:29,097 - INFO - Waiting for VM ctest-TestBasicPolicy-32007047-90106116 to be up.. 2024-10-22 09:54:29,188 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-22 09:54:34,268 - DEBUG - VM is in ACTIVE state now 2024-10-22 09:54:34,268 - INFO - VM name : ctest-TestBasicPolicy-32007047-90106116 2024-10-22 09:54:34,362 - DEBUG - VM ctest-TestBasicPolicy-32007047-90106116 ID is 423eab2b-e05e-4d83-a7bf-d6fe4152bd54 2024-10-22 09:54:34,381 - DEBUG - VM ctest-TestBasicPolicy-32007047-90106116 launched on Node cn-jenkins-deploy-platform-ansible-os-2124-1 2024-10-22 09:54:34,475 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/423eab2b-e05e-4d83-a7bf-d6fe4152bd54 2024-10-22 09:54:34,485 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/c20f309a-b0bf-4a1e-bcf1-7b0c5944fdd6 2024-10-22 09:54:37,754 - 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 1011ms') 2024-10-22 09:54:37,754 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-32007047-90106116 failed! 2024-10-22 09:54:37,812 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-32007047:ctest-vn-57519322 is 99.175.148.193 and allocation pool is NOT set 2024-10-22 09:54:39,868 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=3.11 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.453 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.453/1.783/3.114/1.330 ms') 2024-10-22 09:54:39,868 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-32007047-90106116 passed 2024-10-22 09:54:40,028 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-22 09:54:40,028 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-32007047-90106116, IP 99.175.148.195, Port 22 2024-10-22 09:54:40,193 - DEBUG - VM ctest-TestBasicPolicy-32007047-90106116 is ready for SSH connections 2024-10-22 09:54:40,194 - INFO - Waiting for VM ctest-TestBasicPolicy-32007047-78407542 to be up.. 2024-10-22 09:54:40,286 - DEBUG - VM is in ACTIVE state now 2024-10-22 09:54:40,286 - INFO - VM name : ctest-TestBasicPolicy-32007047-78407542 2024-10-22 09:54:40,395 - DEBUG - VM ctest-TestBasicPolicy-32007047-78407542 ID is 7562d96c-d6b0-4194-8541-87518def2af5 2024-10-22 09:54:40,395 - DEBUG - VM ctest-TestBasicPolicy-32007047-78407542 launched on Node cn-jenkins-deploy-platform-ansible-os-2124-1 2024-10-22 09:54:40,494 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/7562d96c-d6b0-4194-8541-87518def2af5 2024-10-22 09:54:40,507 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/120f2730-5b5d-4942-a4d3-34312bf27851 2024-10-22 09:54:41,770 - 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.63 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.457 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.457/1.543/2.630/1.086 ms') 2024-10-22 09:54:41,770 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-32007047-78407542 passed 2024-10-22 09:54:41,928 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-22 09:54:41,928 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-32007047-78407542, IP 11.37.139.67, Port 22 2024-10-22 09:54:42,083 - DEBUG - VM ctest-TestBasicPolicy-32007047-78407542 is ready for SSH connections 2024-10-22 09:54:42,083 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-22 09:54:42,084 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 11.37.139.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-10-22 09:54:42,084 - DEBUG - ping -s 56 -c 3 -W 1 11.37.139.67 2024-10-22 09:54:45,813 - DEBUG - PING 11.37.139.67 (11.37.139.67): 56 data bytes 64 bytes from 11.37.139.67: seq=0 ttl=63 time=3.697 ms 64 bytes from 11.37.139.67: seq=1 ttl=63 time=0.996 ms 64 bytes from 11.37.139.67: seq=2 ttl=63 time=0.926 ms --- 11.37.139.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.926/1.873/3.697 ms 2024-10-22 09:54:45,813 - INFO - Ping to IP 11.37.139.67 from VM ctest-TestBasicPolicy-32007047-90106116 passed 2024-10-22 09:54:46,008 - DEBUG - Policy Update Response {"network-policy": {"uuid": "d06c9493-c8d1-46f4-9dcf-7c9d1975c682", "href": "http://10.0.0.27:8082/network-policy/d06c9493-c8d1-46f4-9dcf-7c9d1975c682"}} 2024-10-22 09:54:46,008 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-22 09:54:46,009 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 11.37.139.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-10-22 09:54:46,009 - DEBUG - ping -s 56 -c 3 -W 1 11.37.139.67 2024-10-22 09:54:49,211 - DEBUG - PING 11.37.139.67 (11.37.139.67): 56 data bytes 64 bytes from 11.37.139.67: seq=0 ttl=63 time=1.471 ms --- 11.37.139.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.471/1.471/1.471 ms 2024-10-22 09:54:49,211 - WARNING - Ping to IP 11.37.139.67 from VM ctest-TestBasicPolicy-32007047-90106116 failed 2024-10-22 09:54:49,212 - INFO - Deleting VM ctest-TestBasicPolicy-32007047-78407542 2024-10-22 09:54:49,283 - INFO - Deleting VM ctest-TestBasicPolicy-32007047-90106116 2024-10-22 09:54:49,757 - INFO - Deleted policy ctest-policy-allow-all-96285044 2024-10-22 09:54:49,758 - INFO - Deleting VN ctest-vn-54096689 2024-10-22 09:54:49,804 - DEBUG - VN fa435de0-5b0d-4cf2-a178-b373364954ef still in use: Unable to complete operation on network fa435de0-5b0d-4cf2-a178-b373364954ef. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-a2133de0-93a4-495e-af3b-66d3e1a8e22c'] 2024-10-22 09:54:49,805 - WARNING - Deleting VN ctest-vn-54096689 failed..Will retry 2024-10-22 09:54:51,919 - DEBUG - Response for deleting network () 2024-10-22 09:54:51,919 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/bcbb845e-83b4-4268-9d54-58ac8aa517cf 2024-10-22 09:54:51,926 - DEBUG - Response Code: 404 2024-10-22 09:54:51,926 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-10-22 09:54:51,931 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f68841ca-5433-4033-afff-aea86022c976 2024-10-22 09:54:51,991 - DEBUG - Requesting: http://10.0.0.27:8082/project/d27899ef-ce7a-4d6b-b05a-2a25bb917fad 2024-10-22 09:54:52,076 - INFO - Validated that VN ctest-vn-54096689 is not found in API Server 2024-10-22 09:54:52,098 - DEBUG - VN ctest-vn-54096689 is not present in Agent 10.0.0.27 2024-10-22 09:54:52,098 - INFO - Validated that VN ctest-vn-54096689 is not in any agent 2024-10-22 09:54:52,116 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-54096689 info 2024-10-22 09:54:52,116 - INFO - Deleting VN ctest-vn-57519322 2024-10-22 09:54:52,241 - DEBUG - Response for deleting network () 2024-10-22 09:54:52,241 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1be45f98-9246-4652-98aa-db98fa7f7c12 2024-10-22 09:54:52,247 - DEBUG - Response Code: 404 2024-10-22 09:54:52,248 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-10-22 09:54:52,253 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f68841ca-5433-4033-afff-aea86022c976 2024-10-22 09:54:52,314 - DEBUG - Requesting: http://10.0.0.27:8082/project/d27899ef-ce7a-4d6b-b05a-2a25bb917fad 2024-10-22 09:54:52,396 - INFO - Validated that VN ctest-vn-57519322 is not found in API Server 2024-10-22 09:54:52,407 - DEBUG - VN ctest-vn-57519322 is not present in Agent 10.0.0.27 2024-10-22 09:54:52,407 - INFO - Validated that VN ctest-vn-57519322 is not in any agent 2024-10-22 09:54:52,423 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-57519322 info 2024-10-22 09:54:52,678 - DEBUG - No XMPP flaps were noticed during the test
2024-10-22 09:54:52,678 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-10-22 09:54:52,678 - INFO - -------------------------------------------------------------------------------- 2024-10-22 09:54:53,407 - INFO - Deleted project: ctest-TestBasicPolicy-32007047, ID : d27899ef-ce7a-4d6b-b05a-2a25bb917fad