2024-11-07 08:42:00,187 - INFO - Domain Default found not creating 2024-11-07 08:42:00,386 - INFO - Project ctest-TestBasicPolicy-54857728 not found, creating it 2024-11-07 08:42:00,899 - INFO - Created Project:ctest-TestBasicPolicy-54857728, ID : e4824b4f-7596-46d5-bb93-bdf18a7baf8d 2024-11-07 08:42:02,490 - INFO - ================================================================================ 2024-11-07 08:42:02,490 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-07 08:42:02,490 - 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-11-07 08:42:02,746 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.7': '0'}} with 2024-11-07 08:42:02,746 - INFO - Initial checks done. Running the testcase now 2024-11-07 08:42:02,746 - INFO - 2024-11-07 08:42:03,356 - DEBUG - Response for create_network : {'network': {'id': '0adfec60-7b36-4f4d-adc3-974f42ea6e73', 'name': 'ctest-vn-10193737', 'tenant_id': 'e4824b4f759646d5bb93bdf18a7baf8d', 'project_id': 'e4824b4f759646d5bb93bdf18a7baf8d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54857728', 'ctest-vn-10193737'], 'port_security_enabled': True, 'description': ''}} 2024-11-07 08:42:03,542 - DEBUG - Response for create_subnet : {'subnet': {'id': '436119d9-1a70-48e9-b9b4-a65fd4d10db7', 'name': '', 'tenant_id': 'e4824b4f759646d5bb93bdf18a7baf8d', 'network_id': '0adfec60-7b36-4f4d-adc3-974f42ea6e73', 'ip_version': 4, 'cidr': '216.25.110.64/26', 'allocation_pools': [{'start': '216.25.110.66', 'end': '216.25.110.126'}], 'gateway_ip': '216.25.110.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '216.25.110.66', 'tags': [], 'project_id': 'e4824b4f759646d5bb93bdf18a7baf8d'}} 2024-11-07 08:42:03,566 - INFO - Created VN ctest-vn-10193737 2024-11-07 08:42:03,628 - DEBUG - VN ctest-vn-10193737 UUID is 0adfec60-7b36-4f4d-adc3-974f42ea6e73 2024-11-07 08:42:03,959 - DEBUG - Response for create_network : {'network': {'id': '6355177d-a7e8-4d7e-b713-baf9c1a995cb', 'name': 'ctest-vn-69502485', 'tenant_id': 'e4824b4f759646d5bb93bdf18a7baf8d', 'project_id': 'e4824b4f759646d5bb93bdf18a7baf8d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54857728', 'ctest-vn-69502485'], 'port_security_enabled': True, 'description': ''}} 2024-11-07 08:42:04,120 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ad98a182-6194-42da-a0be-04fcf02a45b3', 'name': '', 'tenant_id': 'e4824b4f759646d5bb93bdf18a7baf8d', 'network_id': '6355177d-a7e8-4d7e-b713-baf9c1a995cb', 'ip_version': 4, 'cidr': '116.204.57.192/26', 'allocation_pools': [{'start': '116.204.57.194', 'end': '116.204.57.254'}], 'gateway_ip': '116.204.57.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '116.204.57.194', 'tags': [], 'project_id': 'e4824b4f759646d5bb93bdf18a7baf8d'}} 2024-11-07 08:42:04,139 - INFO - Created VN ctest-vn-69502485 2024-11-07 08:42:04,196 - DEBUG - VN ctest-vn-69502485 UUID is 6355177d-a7e8-4d7e-b713-baf9c1a995cb 2024-11-07 08:42:04,331 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-54857728:ctest-vn-10193737, 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-54857728:ctest-vn-69502485, 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-11-07 08:42:04,662 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0adfec60-7b36-4f4d-adc3-974f42ea6e73', 'name': 'ctest-vn-10193737', 'tenant_id': 'e4824b4f759646d5bb93bdf18a7baf8d', 'project_id': 'e4824b4f759646d5bb93bdf18a7baf8d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['436119d9-1a70-48e9-b9b4-a65fd4d10db7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54857728', 'ctest-vn-10193737'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54857728', 'ctest-policy-allow-all-42341487']], 'subnet_ipam': [{'subnet_cidr': '216.25.110.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-07 08:42:04,929 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6355177d-a7e8-4d7e-b713-baf9c1a995cb', 'name': 'ctest-vn-69502485', 'tenant_id': 'e4824b4f759646d5bb93bdf18a7baf8d', 'project_id': 'e4824b4f759646d5bb93bdf18a7baf8d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ad98a182-6194-42da-a0be-04fcf02a45b3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54857728', 'ctest-vn-69502485'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54857728', 'ctest-policy-allow-all-42341487']], 'subnet_ipam': [{'subnet_cidr': '116.204.57.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-07 08:42:05,104 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-11-07 08:42:05,397 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-11-07 08:42:05,431 - DEBUG - Requesting: http://10.0.0.12:8082/domain/68045652-5c67-4ec6-a65d-4750cb2c4873 2024-11-07 08:42:05,447 - DEBUG - Requesting: http://10.0.0.12:8082/project/e4824b4f-7596-46d5-bb93-bdf18a7baf8d 2024-11-07 08:42:05,527 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/0adfec60-7b36-4f4d-adc3-974f42ea6e73 2024-11-07 08:42:05,543 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/0adfec60-7b36-4f4d-adc3-974f42ea6e73 2024-11-07 08:42:05,559 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/227ee419-b883-4c81-9d7a-50d3c6265bad 2024-11-07 08:42:05,570 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/227ee419-b883-4c81-9d7a-50d3c6265bad 2024-11-07 08:42:05,579 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/5a7cd0a4-c43c-4d72-8f15-e377700c66fe 2024-11-07 08:42:05,587 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-07 08:42:05,587 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/0adfec60-7b36-4f4d-adc3-974f42ea6e73 2024-11-07 08:42:05,602 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/227ee419-b883-4c81-9d7a-50d3c6265bad 2024-11-07 08:42:05,623 - INFO - Verified VN network id 8 for VN 0adfec60-7b36-4f4d-adc3-974f42ea6e73 2024-11-07 08:42:05,623 - INFO - Verifications in API Server for VN ctest-vn-10193737 passed 2024-11-07 08:42:05,624 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/0adfec60-7b36-4f4d-adc3-974f42ea6e73 2024-11-07 08:42:05,640 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/227ee419-b883-4c81-9d7a-50d3c6265bad 2024-11-07 08:42:05,650 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/227ee419-b883-4c81-9d7a-50d3c6265bad 2024-11-07 08:42:05,659 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/5a7cd0a4-c43c-4d72-8f15-e377700c66fe 2024-11-07 08:42:05,673 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54857728:ctest-vn-10193737', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54857728', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '783604759313928013', 'uuid-lslong': '12521017755700981363'}, 'enable': 'true', 'created': '2024-11-07T08:42:03', 'last-modified': '2024-11-07T08:42:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.037482'} 2024-11-07 08:42:05,680 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-07 08:42:05,680 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10193737 passed 2024-11-07 08:42:05,680 - DEBUG - ====Verifying policy data for ctest-vn-10193737 in API_Server ====== 2024-11-07 08:42:05,680 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-11-07 08:42:05,687 - DEBUG - Requesting: http://10.0.0.12:8082/domain/68045652-5c67-4ec6-a65d-4750cb2c4873 2024-11-07 08:42:05,700 - DEBUG - Requesting: http://10.0.0.12:8082/project/e4824b4f-7596-46d5-bb93-bdf18a7baf8d 2024-11-07 08:42:05,790 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/0adfec60-7b36-4f4d-adc3-974f42ea6e73 2024-11-07 08:42:05,805 - DEBUG - ==>Verifying data for policy with id: 474b651b-4e85-402c-83c9-8d95b52e986c, fqn: ['default-domain', 'ctest-TestBasicPolicy-54857728', 'ctest-policy-allow-all-42341487'] 2024-11-07 08:42:05,805 - INFO - VN ctest-vn-10193737 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-07 08:42:05,805 - DEBUG - Verifying the vn in opserver 2024-11-07 08:42:05,805 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54857728:ctest-vn-10193737 virtual network link through opserver 10.0.0.12 2024-11-07 08:42:05,806 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2024-11-07 08:42:06,106 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2024-11-07 08:42:06,173 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54857728:ctest-vn-10193737', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54857728:ctest-vn-10193737?flat'} 2024-11-07 08:42:06,173 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54857728:ctest-vn-10193737 is found in opserver 2024-11-07 08:42:06,184 - DEBUG - Do not have enough data to verify VN in agent 2024-11-07 08:42:06,189 - DEBUG - VRF ids for VN ctest-vn-10193737: {} 2024-11-07 08:42:06,189 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-11-07 08:42:06,196 - DEBUG - Requesting: http://10.0.0.12:8082/domain/68045652-5c67-4ec6-a65d-4750cb2c4873 2024-11-07 08:42:06,212 - DEBUG - Requesting: http://10.0.0.12:8082/project/e4824b4f-7596-46d5-bb93-bdf18a7baf8d 2024-11-07 08:42:06,311 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/6355177d-a7e8-4d7e-b713-baf9c1a995cb 2024-11-07 08:42:06,334 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/6355177d-a7e8-4d7e-b713-baf9c1a995cb 2024-11-07 08:42:06,354 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/9a186afe-0df9-4da2-919a-efce0b341660 2024-11-07 08:42:06,365 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/9a186afe-0df9-4da2-919a-efce0b341660 2024-11-07 08:42:06,374 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/a0e66739-4a9b-49f5-94ca-c6c25a7e45af 2024-11-07 08:42:06,382 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-07 08:42:06,383 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/6355177d-a7e8-4d7e-b713-baf9c1a995cb 2024-11-07 08:42:06,402 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/9a186afe-0df9-4da2-919a-efce0b341660 2024-11-07 08:42:06,425 - INFO - Verified VN network id 9 for VN 6355177d-a7e8-4d7e-b713-baf9c1a995cb 2024-11-07 08:42:06,425 - INFO - Verifications in API Server for VN ctest-vn-69502485 passed 2024-11-07 08:42:06,425 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/6355177d-a7e8-4d7e-b713-baf9c1a995cb 2024-11-07 08:42:06,443 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/9a186afe-0df9-4da2-919a-efce0b341660 2024-11-07 08:42:06,455 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/9a186afe-0df9-4da2-919a-efce0b341660 2024-11-07 08:42:06,464 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/a0e66739-4a9b-49f5-94ca-c6c25a7e45af 2024-11-07 08:42:06,479 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54857728:ctest-vn-69502485', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54857728', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7157653011230641534', 'uuid-lslong': '13192093315357054411'}, 'enable': 'true', 'created': '2024-11-07T08:42:03', 'last-modified': '2024-11-07T08:42:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.580199'} 2024-11-07 08:42:06,486 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-07 08:42:06,487 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69502485 passed 2024-11-07 08:42:06,487 - DEBUG - ====Verifying policy data for ctest-vn-69502485 in API_Server ====== 2024-11-07 08:42:06,487 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-11-07 08:42:06,495 - DEBUG - Requesting: http://10.0.0.12:8082/domain/68045652-5c67-4ec6-a65d-4750cb2c4873 2024-11-07 08:42:06,509 - DEBUG - Requesting: http://10.0.0.12:8082/project/e4824b4f-7596-46d5-bb93-bdf18a7baf8d 2024-11-07 08:42:06,602 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/6355177d-a7e8-4d7e-b713-baf9c1a995cb 2024-11-07 08:42:06,616 - DEBUG - ==>Verifying data for policy with id: 474b651b-4e85-402c-83c9-8d95b52e986c, fqn: ['default-domain', 'ctest-TestBasicPolicy-54857728', 'ctest-policy-allow-all-42341487'] 2024-11-07 08:42:06,616 - INFO - VN ctest-vn-69502485 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-07 08:42:06,617 - DEBUG - Verifying the vn in opserver 2024-11-07 08:42:06,617 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54857728:ctest-vn-69502485 virtual network link through opserver 10.0.0.12 2024-11-07 08:42:06,617 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2024-11-07 08:42:06,629 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54857728:ctest-vn-69502485', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54857728:ctest-vn-69502485?flat'} 2024-11-07 08:42:06,629 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54857728:ctest-vn-69502485 is found in opserver 2024-11-07 08:42:06,641 - DEBUG - Do not have enough data to verify VN in agent 2024-11-07 08:42:06,647 - DEBUG - VRF ids for VN ctest-vn-69502485: {} 2024-11-07 08:42:06,714 - DEBUG - Services list from nova: [, , ] 2024-11-07 08:42:07,888 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2213-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2213-1) 2024-11-07 08:42:09,191 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2213-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2213-1) 2024-11-07 08:42:09,191 - INFO - Waiting for VM ctest-TestBasicPolicy-54857728-07651228 to be up.. 2024-11-07 08:42:09,290 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-07 08:42:14,390 - DEBUG - VM is in ACTIVE state now 2024-11-07 08:42:14,390 - INFO - VM name : ctest-TestBasicPolicy-54857728-07651228 2024-11-07 08:42:14,500 - DEBUG - VM ctest-TestBasicPolicy-54857728-07651228 ID is fa7e1823-dad0-4f70-b0bf-c2195daf14ac 2024-11-07 08:42:14,537 - DEBUG - VM ctest-TestBasicPolicy-54857728-07651228 launched on Node cn-jenkins-deploy-platform-ansible-os-2213-1 2024-11-07 08:42:14,624 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/fa7e1823-dad0-4f70-b0bf-c2195daf14ac 2024-11-07 08:42:14,636 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/342c26f9-33b8-4435-a569-d617ca0f8c9e 2024-11-07 08:42:17,909 - 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-11-07 08:42:17,910 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-54857728-07651228 failed! 2024-11-07 08:42:17,972 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-54857728:ctest-vn-10193737 is 216.25.110.65 and allocation pool is NOT set 2024-11-07 08:42:20,042 - 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.52 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.424 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.424/3.971/7.518/3.547 ms') 2024-11-07 08:42:20,042 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-54857728-07651228 passed 2024-11-07 08:42:20,200 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 08:42:20,200 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-54857728-07651228, IP 216.25.110.67, Port 22 2024-11-07 08:42:20,366 - DEBUG - VM ctest-TestBasicPolicy-54857728-07651228 is ready for SSH connections 2024-11-07 08:42:20,366 - INFO - Waiting for VM ctest-TestBasicPolicy-54857728-14559365 to be up.. 2024-11-07 08:42:20,446 - DEBUG - VM is in ACTIVE state now 2024-11-07 08:42:20,446 - INFO - VM name : ctest-TestBasicPolicy-54857728-14559365 2024-11-07 08:42:20,536 - DEBUG - VM ctest-TestBasicPolicy-54857728-14559365 ID is 2ce59e8b-9514-42a5-aa6e-5d8214df56e4 2024-11-07 08:42:20,536 - DEBUG - VM ctest-TestBasicPolicy-54857728-14559365 launched on Node cn-jenkins-deploy-platform-ansible-os-2213-1 2024-11-07 08:42:20,631 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/2ce59e8b-9514-42a5-aa6e-5d8214df56e4 2024-11-07 08:42:20,645 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/8b6e69d9-a7f9-42cf-ab9f-6483bd43e7de 2024-11-07 08:42:21,912 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=4.70 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.19 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 = 2.192/3.447/4.702/1.255 ms') 2024-11-07 08:42:21,913 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-54857728-14559365 passed 2024-11-07 08:42:22,076 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 08:42:22,077 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-54857728-14559365, IP 116.204.57.195, Port 22 2024-11-07 08:42:22,235 - DEBUG - VM ctest-TestBasicPolicy-54857728-14559365 is ready for SSH connections 2024-11-07 08:42:22,236 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 08:42:22,236 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 116.204.57.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2024-11-07 08:42:22,236 - DEBUG - ping -s 56 -c 3 -W 1 116.204.57.195 2024-11-07 08:42:26,295 - DEBUG - PING 116.204.57.195 (116.204.57.195): 56 data bytes 64 bytes from 116.204.57.195: seq=0 ttl=63 time=4.182 ms 64 bytes from 116.204.57.195: seq=1 ttl=63 time=1.034 ms 64 bytes from 116.204.57.195: seq=2 ttl=63 time=0.839 ms --- 116.204.57.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.839/2.018/4.182 ms 2024-11-07 08:42:26,295 - INFO - Ping to IP 116.204.57.195 from VM ctest-TestBasicPolicy-54857728-07651228 passed 2024-11-07 08:42:26,487 - DEBUG - Policy Update Response {"network-policy": {"uuid": "474b651b-4e85-402c-83c9-8d95b52e986c", "href": "http://10.0.0.12:8082/network-policy/474b651b-4e85-402c-83c9-8d95b52e986c"}} 2024-11-07 08:42:26,488 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 08:42:26,488 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 116.204.57.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2024-11-07 08:42:26,488 - DEBUG - ping -s 56 -c 3 -W 1 116.204.57.195 2024-11-07 08:42:29,721 - DEBUG - PING 116.204.57.195 (116.204.57.195): 56 data bytes --- 116.204.57.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-11-07 08:42:29,722 - WARNING - Ping to IP 116.204.57.195 from VM ctest-TestBasicPolicy-54857728-07651228 failed 2024-11-07 08:42:29,722 - INFO - Deleting VM ctest-TestBasicPolicy-54857728-14559365 2024-11-07 08:42:29,796 - INFO - Deleting VM ctest-TestBasicPolicy-54857728-07651228 2024-11-07 08:42:30,222 - INFO - Deleted policy ctest-policy-allow-all-42341487 2024-11-07 08:42:30,222 - INFO - Deleting VN ctest-vn-69502485 2024-11-07 08:42:30,261 - DEBUG - VN 6355177d-a7e8-4d7e-b713-baf9c1a995cb still in use: Unable to complete operation on network 6355177d-a7e8-4d7e-b713-baf9c1a995cb. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-3c2795f0-fe74-45a2-bbed-4ef7bb9b656d'] 2024-11-07 08:42:30,261 - WARNING - Deleting VN ctest-vn-69502485 failed..Will retry 2024-11-07 08:42:32,384 - DEBUG - Response for deleting network () 2024-11-07 08:42:32,384 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/9a186afe-0df9-4da2-919a-efce0b341660 2024-11-07 08:42:32,390 - DEBUG - Response Code: 404 2024-11-07 08:42:32,391 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-11-07 08:42:32,399 - DEBUG - Requesting: http://10.0.0.12:8082/domain/68045652-5c67-4ec6-a65d-4750cb2c4873 2024-11-07 08:42:32,454 - DEBUG - Requesting: http://10.0.0.12:8082/project/e4824b4f-7596-46d5-bb93-bdf18a7baf8d 2024-11-07 08:42:32,536 - INFO - Validated that VN ctest-vn-69502485 is not found in API Server 2024-11-07 08:42:32,550 - DEBUG - VN ctest-vn-69502485 is not present in Agent 10.0.0.12 2024-11-07 08:42:32,550 - INFO - Validated that VN ctest-vn-69502485 is not in any agent 2024-11-07 08:42:32,570 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-69502485 info 2024-11-07 08:42:32,570 - INFO - Deleting VN ctest-vn-10193737 2024-11-07 08:42:32,691 - DEBUG - Response for deleting network () 2024-11-07 08:42:32,691 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/227ee419-b883-4c81-9d7a-50d3c6265bad 2024-11-07 08:42:32,697 - DEBUG - Response Code: 404 2024-11-07 08:42:32,697 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2024-11-07 08:42:32,708 - DEBUG - Requesting: http://10.0.0.12:8082/domain/68045652-5c67-4ec6-a65d-4750cb2c4873 2024-11-07 08:42:32,766 - DEBUG - Requesting: http://10.0.0.12:8082/project/e4824b4f-7596-46d5-bb93-bdf18a7baf8d 2024-11-07 08:42:32,869 - INFO - Validated that VN ctest-vn-10193737 is not found in API Server 2024-11-07 08:42:32,883 - DEBUG - VN ctest-vn-10193737 is not present in Agent 10.0.0.12 2024-11-07 08:42:32,883 - INFO - Validated that VN ctest-vn-10193737 is not in any agent 2024-11-07 08:42:32,902 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-10193737 info 2024-11-07 08:42:33,161 - DEBUG - No XMPP flaps were noticed during the test
2024-11-07 08:42:33,161 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31]
2024-11-07 08:42:33,161 - INFO - -------------------------------------------------------------------------------- 2024-11-07 08:42:33,886 - INFO - Deleted project: ctest-TestBasicPolicy-54857728, ID : e4824b4f-7596-46d5-bb93-bdf18a7baf8d