2024-08-27 10:01:58,026 - INFO - Domain Default found not creating 2024-08-27 10:01:58,199 - INFO - Project ctest-TestBasicPolicy-64148914 not found, creating it 2024-08-27 10:01:58,674 - INFO - Created Project:ctest-TestBasicPolicy-64148914, ID : 9ac06b05-44e8-4c97-8395-4fe74471b0e5 2024-08-27 10:02:00,186 - INFO - ================================================================================ 2024-08-27 10:02:00,186 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-27 10:02:00,186 - 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 10:02:00,447 - DEBUG - Nothing to compare xmpp stats {'10.0.0.47': {'10.20.0.12': '0'}} with 2024-08-27 10:02:00,447 - INFO - Initial checks done. Running the testcase now 2024-08-27 10:02:00,447 - INFO - 2024-08-27 10:02:01,154 - DEBUG - Response for create_network : {'network': {'id': '258eef56-bc0e-4bb7-8708-e8e55da67f45', 'name': 'ctest-vn-75369508', 'tenant_id': '9ac06b0544e84c9783954fe74471b0e5', 'project_id': '9ac06b0544e84c9783954fe74471b0e5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64148914', 'ctest-vn-75369508'], 'port_security_enabled': True, 'description': ''}} 2024-08-27 10:02:01,388 - DEBUG - Response for create_subnet : {'subnet': {'id': '209ca657-8198-4e0c-aeb7-c544dcbab7c1', 'name': '', 'tenant_id': '9ac06b0544e84c9783954fe74471b0e5', 'network_id': '258eef56-bc0e-4bb7-8708-e8e55da67f45', 'ip_version': 4, 'cidr': '151.242.121.0/26', 'allocation_pools': [{'start': '151.242.121.2', 'end': '151.242.121.62'}], 'gateway_ip': '151.242.121.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '151.242.121.2', 'tags': [], 'project_id': '9ac06b0544e84c9783954fe74471b0e5'}} 2024-08-27 10:02:01,412 - INFO - Created VN ctest-vn-75369508 2024-08-27 10:02:01,465 - DEBUG - VN ctest-vn-75369508 UUID is 258eef56-bc0e-4bb7-8708-e8e55da67f45 2024-08-27 10:02:01,784 - DEBUG - Response for create_network : {'network': {'id': '7ee7655f-7ab2-4772-985e-e5ac2c2c30d3', 'name': 'ctest-vn-46506311', 'tenant_id': '9ac06b0544e84c9783954fe74471b0e5', 'project_id': '9ac06b0544e84c9783954fe74471b0e5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64148914', 'ctest-vn-46506311'], 'port_security_enabled': True, 'description': ''}} 2024-08-27 10:02:01,960 - DEBUG - Response for create_subnet : {'subnet': {'id': '2cab368c-f367-4cc7-a1f5-e79a9b645dca', 'name': '', 'tenant_id': '9ac06b0544e84c9783954fe74471b0e5', 'network_id': '7ee7655f-7ab2-4772-985e-e5ac2c2c30d3', 'ip_version': 4, 'cidr': '113.110.216.0/26', 'allocation_pools': [{'start': '113.110.216.2', 'end': '113.110.216.62'}], 'gateway_ip': '113.110.216.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '113.110.216.2', 'tags': [], 'project_id': '9ac06b0544e84c9783954fe74471b0e5'}} 2024-08-27 10:02:01,980 - INFO - Created VN ctest-vn-46506311 2024-08-27 10:02:02,029 - DEBUG - VN ctest-vn-46506311 UUID is 7ee7655f-7ab2-4772-985e-e5ac2c2c30d3 2024-08-27 10:02:02,142 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-64148914:ctest-vn-75369508, 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-64148914:ctest-vn-46506311, 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 10:02:02,435 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '258eef56-bc0e-4bb7-8708-e8e55da67f45', 'name': 'ctest-vn-75369508', 'tenant_id': '9ac06b0544e84c9783954fe74471b0e5', 'project_id': '9ac06b0544e84c9783954fe74471b0e5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['209ca657-8198-4e0c-aeb7-c544dcbab7c1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64148914', 'ctest-vn-75369508'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64148914', 'ctest-policy-allow-all-98795264']], 'subnet_ipam': [{'subnet_cidr': '151.242.121.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-27 10:02:02,683 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7ee7655f-7ab2-4772-985e-e5ac2c2c30d3', 'name': 'ctest-vn-46506311', 'tenant_id': '9ac06b0544e84c9783954fe74471b0e5', 'project_id': '9ac06b0544e84c9783954fe74471b0e5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2cab368c-f367-4cc7-a1f5-e79a9b645dca'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64148914', 'ctest-vn-46506311'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64148914', 'ctest-policy-allow-all-98795264']], 'subnet_ipam': [{'subnet_cidr': '113.110.216.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-27 10:02:02,845 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-08-27 10:02:03,147 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-08-27 10:02:03,179 - DEBUG - Requesting: http://10.0.0.47:8082/domain/5e658e76-e45e-4ce4-8ab4-5770df054920 2024-08-27 10:02:03,192 - DEBUG - Requesting: http://10.0.0.47:8082/project/9ac06b05-44e8-4c97-8395-4fe74471b0e5 2024-08-27 10:02:03,263 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/258eef56-bc0e-4bb7-8708-e8e55da67f45 2024-08-27 10:02:03,275 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/258eef56-bc0e-4bb7-8708-e8e55da67f45 2024-08-27 10:02:03,284 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/0fc6a793-c42b-460b-af16-8d2c8754be23 2024-08-27 10:02:03,291 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/0fc6a793-c42b-460b-af16-8d2c8754be23 2024-08-27 10:02:03,298 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/74984706-c4ae-488f-bde1-75fc15b54527 2024-08-27 10:02:03,305 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-27 10:02:03,305 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/258eef56-bc0e-4bb7-8708-e8e55da67f45 2024-08-27 10:02:03,313 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/0fc6a793-c42b-460b-af16-8d2c8754be23 2024-08-27 10:02:03,325 - INFO - Verified VN network id 8 for VN 258eef56-bc0e-4bb7-8708-e8e55da67f45 2024-08-27 10:02:03,326 - INFO - Verifications in API Server for VN ctest-vn-75369508 passed 2024-08-27 10:02:03,326 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/258eef56-bc0e-4bb7-8708-e8e55da67f45 2024-08-27 10:02:03,334 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/0fc6a793-c42b-460b-af16-8d2c8754be23 2024-08-27 10:02:03,341 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/0fc6a793-c42b-460b-af16-8d2c8754be23 2024-08-27 10:02:03,348 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/74984706-c4ae-488f-bde1-75fc15b54527 2024-08-27 10:02:03,360 - DEBUG - Control-node 10.0.0.47 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64148914:ctest-vn-75369508', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64148914', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2706363581897526199', 'uuid-lslong': '9730283066750304069'}, 'enable': 'true', 'created': '2024-08-27T10:02:01', 'last-modified': '2024-08-27T10:02:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.950130'} 2024-08-27 10:02:03,367 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-27 10:02:03,368 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75369508 passed 2024-08-27 10:02:03,368 - DEBUG - ====Verifying policy data for ctest-vn-75369508 in API_Server ====== 2024-08-27 10:02:03,368 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-08-27 10:02:03,373 - DEBUG - Requesting: http://10.0.0.47:8082/domain/5e658e76-e45e-4ce4-8ab4-5770df054920 2024-08-27 10:02:03,385 - DEBUG - Requesting: http://10.0.0.47:8082/project/9ac06b05-44e8-4c97-8395-4fe74471b0e5 2024-08-27 10:02:03,463 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/258eef56-bc0e-4bb7-8708-e8e55da67f45 2024-08-27 10:02:03,472 - DEBUG - ==>Verifying data for policy with id: 5d3473c9-38f0-43e3-b756-9e446bfbb47c, fqn: ['default-domain', 'ctest-TestBasicPolicy-64148914', 'ctest-policy-allow-all-98795264'] 2024-08-27 10:02:03,472 - INFO - VN ctest-vn-75369508 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-27 10:02:03,472 - DEBUG - Verifying the vn in opserver 2024-08-27 10:02:03,472 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64148914:ctest-vn-75369508 virtual network link through opserver 10.0.0.47 2024-08-27 10:02:03,472 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks 2024-08-27 10:02:03,768 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks 2024-08-27 10:02:03,837 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64148914:ctest-vn-75369508', 'href': 'http://10.0.0.47:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64148914:ctest-vn-75369508?flat'} 2024-08-27 10:02:03,837 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64148914:ctest-vn-75369508 is found in opserver 2024-08-27 10:02:03,849 - DEBUG - Do not have enough data to verify VN in agent 2024-08-27 10:02:03,857 - DEBUG - VRF ids for VN ctest-vn-75369508: {} 2024-08-27 10:02:03,857 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-08-27 10:02:03,864 - DEBUG - Requesting: http://10.0.0.47:8082/domain/5e658e76-e45e-4ce4-8ab4-5770df054920 2024-08-27 10:02:03,877 - DEBUG - Requesting: http://10.0.0.47:8082/project/9ac06b05-44e8-4c97-8395-4fe74471b0e5 2024-08-27 10:02:03,945 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/7ee7655f-7ab2-4772-985e-e5ac2c2c30d3 2024-08-27 10:02:03,955 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/7ee7655f-7ab2-4772-985e-e5ac2c2c30d3 2024-08-27 10:02:03,963 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/78cdcc7e-d9ad-48d8-830f-427bfc3076a2 2024-08-27 10:02:03,970 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/78cdcc7e-d9ad-48d8-830f-427bfc3076a2 2024-08-27 10:02:03,977 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/fe883eea-df8a-4d38-9fb0-82c7baf1ba9e 2024-08-27 10:02:03,984 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-27 10:02:03,984 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/7ee7655f-7ab2-4772-985e-e5ac2c2c30d3 2024-08-27 10:02:03,992 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/78cdcc7e-d9ad-48d8-830f-427bfc3076a2 2024-08-27 10:02:04,004 - INFO - Verified VN network id 9 for VN 7ee7655f-7ab2-4772-985e-e5ac2c2c30d3 2024-08-27 10:02:04,004 - INFO - Verifications in API Server for VN ctest-vn-46506311 passed 2024-08-27 10:02:04,004 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/7ee7655f-7ab2-4772-985e-e5ac2c2c30d3 2024-08-27 10:02:04,014 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/78cdcc7e-d9ad-48d8-830f-427bfc3076a2 2024-08-27 10:02:04,022 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/78cdcc7e-d9ad-48d8-830f-427bfc3076a2 2024-08-27 10:02:04,029 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/fe883eea-df8a-4d38-9fb0-82c7baf1ba9e 2024-08-27 10:02:04,041 - DEBUG - Control-node 10.0.0.47 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64148914:ctest-vn-46506311', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64148914', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9144389029153884018', 'uuid-lslong': '10979465469214077139'}, 'enable': 'true', 'created': '2024-08-27T10:02:01', 'last-modified': '2024-08-27T10:02:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.385558'} 2024-08-27 10:02:04,047 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-27 10:02:04,047 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46506311 passed 2024-08-27 10:02:04,047 - DEBUG - ====Verifying policy data for ctest-vn-46506311 in API_Server ====== 2024-08-27 10:02:04,048 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-08-27 10:02:04,053 - DEBUG - Requesting: http://10.0.0.47:8082/domain/5e658e76-e45e-4ce4-8ab4-5770df054920 2024-08-27 10:02:04,066 - DEBUG - Requesting: http://10.0.0.47:8082/project/9ac06b05-44e8-4c97-8395-4fe74471b0e5 2024-08-27 10:02:04,137 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/7ee7655f-7ab2-4772-985e-e5ac2c2c30d3 2024-08-27 10:02:04,145 - DEBUG - ==>Verifying data for policy with id: 5d3473c9-38f0-43e3-b756-9e446bfbb47c, fqn: ['default-domain', 'ctest-TestBasicPolicy-64148914', 'ctest-policy-allow-all-98795264'] 2024-08-27 10:02:04,145 - INFO - VN ctest-vn-46506311 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-27 10:02:04,145 - DEBUG - Verifying the vn in opserver 2024-08-27 10:02:04,145 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64148914:ctest-vn-46506311 virtual network link through opserver 10.0.0.47 2024-08-27 10:02:04,146 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks 2024-08-27 10:02:04,156 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64148914:ctest-vn-46506311', 'href': 'http://10.0.0.47:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64148914:ctest-vn-46506311?flat'} 2024-08-27 10:02:04,156 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64148914:ctest-vn-46506311 is found in opserver 2024-08-27 10:02:04,166 - DEBUG - Do not have enough data to verify VN in agent 2024-08-27 10:02:04,171 - DEBUG - VRF ids for VN ctest-vn-46506311: {} 2024-08-27 10:02:04,229 - DEBUG - Services list from nova: [, , ] 2024-08-27 10:02:05,368 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1796-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1796-1) 2024-08-27 10:02:06,513 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1796-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1796-1) 2024-08-27 10:02:06,513 - INFO - Waiting for VM ctest-TestBasicPolicy-64148914-33623277 to be up.. 2024-08-27 10:02:06,594 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-27 10:02:11,682 - DEBUG - VM is in ACTIVE state now 2024-08-27 10:02:11,682 - INFO - VM name : ctest-TestBasicPolicy-64148914-33623277 2024-08-27 10:02:11,762 - DEBUG - VM ctest-TestBasicPolicy-64148914-33623277 ID is 94a39da0-1cd2-4397-81df-2f57eab4c4e6 2024-08-27 10:02:11,780 - DEBUG - VM ctest-TestBasicPolicy-64148914-33623277 launched on Node cn-jenkins-deploy-platform-ansible-os-1796-1 2024-08-27 10:02:11,858 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine/94a39da0-1cd2-4397-81df-2f57eab4c4e6 2024-08-27 10:02:11,866 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine-interface/5269ccd3-a3fe-4427-bc92-9f6580bc676b 2024-08-27 10:02:15,117 - 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-08-27 10:02:15,117 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-64148914-33623277 failed! 2024-08-27 10:02:15,169 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-64148914:ctest-vn-75369508 is 151.242.121.1 and allocation pool is NOT set 2024-08-27 10:02:17,230 - 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=4.95 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.465 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.465/2.707/4.949/2.242 ms') 2024-08-27 10:02:17,230 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-64148914-33623277 passed 2024-08-27 10:02:17,381 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 10:02:17,381 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-64148914-33623277, IP 151.242.121.3, Port 22 2024-08-27 10:02:17,537 - DEBUG - VM ctest-TestBasicPolicy-64148914-33623277 is ready for SSH connections 2024-08-27 10:02:17,537 - INFO - Waiting for VM ctest-TestBasicPolicy-64148914-78122591 to be up.. 2024-08-27 10:02:17,615 - DEBUG - VM is in ACTIVE state now 2024-08-27 10:02:17,615 - INFO - VM name : ctest-TestBasicPolicy-64148914-78122591 2024-08-27 10:02:17,685 - DEBUG - VM ctest-TestBasicPolicy-64148914-78122591 ID is 8aa07bcf-6c40-4a5e-8e79-7162a690694e 2024-08-27 10:02:17,685 - DEBUG - VM ctest-TestBasicPolicy-64148914-78122591 launched on Node cn-jenkins-deploy-platform-ansible-os-1796-1 2024-08-27 10:02:17,760 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine/8aa07bcf-6c40-4a5e-8e79-7162a690694e 2024-08-27 10:02:17,770 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine-interface/63355a83-0338-4b24-98b0-94a4a8bd1946 2024-08-27 10:02:19,001 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=3.08 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.581 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.581/1.828/3.075/1.247 ms') 2024-08-27 10:02:19,001 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-64148914-78122591 passed 2024-08-27 10:02:19,149 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 10:02:19,149 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-64148914-78122591, IP 113.110.216.3, Port 22 2024-08-27 10:02:19,304 - DEBUG - VM ctest-TestBasicPolicy-64148914-78122591 is ready for SSH connections 2024-08-27 10:02:19,304 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 10:02:19,305 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 113.110.216.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.47, gateway password: c0ntrail123 2024-08-27 10:02:19,305 - DEBUG - ping -s 56 -c 3 -W 1 113.110.216.3 2024-08-27 10:02:23,760 - DEBUG - PING 113.110.216.3 (113.110.216.3): 56 data bytes 64 bytes from 113.110.216.3: seq=0 ttl=63 time=3.764 ms 64 bytes from 113.110.216.3: seq=1 ttl=63 time=0.850 ms 64 bytes from 113.110.216.3: seq=2 ttl=63 time=0.976 ms --- 113.110.216.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.850/1.863/3.764 ms 2024-08-27 10:02:23,760 - INFO - Ping to IP 113.110.216.3 from VM ctest-TestBasicPolicy-64148914-33623277 passed 2024-08-27 10:02:23,937 - DEBUG - Policy Update Response {"network-policy": {"uuid": "5d3473c9-38f0-43e3-b756-9e446bfbb47c", "href": "http://10.0.0.47:8082/network-policy/5d3473c9-38f0-43e3-b756-9e446bfbb47c"}} 2024-08-27 10:02:23,937 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 10:02:23,937 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 113.110.216.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.47, gateway password: c0ntrail123 2024-08-27 10:02:23,937 - DEBUG - ping -s 56 -c 3 -W 1 113.110.216.3 2024-08-27 10:02:27,139 - DEBUG - PING 113.110.216.3 (113.110.216.3): 56 data bytes 64 bytes from 113.110.216.3: seq=0 ttl=63 time=1.543 ms --- 113.110.216.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.543/1.543/1.543 ms 2024-08-27 10:02:27,139 - WARNING - Ping to IP 113.110.216.3 from VM ctest-TestBasicPolicy-64148914-33623277 failed 2024-08-27 10:02:27,139 - INFO - Deleting VM ctest-TestBasicPolicy-64148914-78122591 2024-08-27 10:02:27,211 - INFO - Deleting VM ctest-TestBasicPolicy-64148914-33623277 2024-08-27 10:02:27,620 - INFO - Deleted policy ctest-policy-allow-all-98795264 2024-08-27 10:02:27,620 - INFO - Deleting VN ctest-vn-46506311 2024-08-27 10:02:27,661 - DEBUG - VN 7ee7655f-7ab2-4772-985e-e5ac2c2c30d3 still in use: Unable to complete operation on network 7ee7655f-7ab2-4772-985e-e5ac2c2c30d3. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-82ac8dd1-c67e-498a-a372-f5575d6c57b0'] 2024-08-27 10:02:27,661 - WARNING - Deleting VN ctest-vn-46506311 failed..Will retry 2024-08-27 10:02:29,769 - DEBUG - Response for deleting network () 2024-08-27 10:02:29,769 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/78cdcc7e-d9ad-48d8-830f-427bfc3076a2 2024-08-27 10:02:29,776 - DEBUG - Response Code: 404 2024-08-27 10:02:29,776 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-08-27 10:02:29,783 - DEBUG - Requesting: http://10.0.0.47:8082/domain/5e658e76-e45e-4ce4-8ab4-5770df054920 2024-08-27 10:02:29,842 - DEBUG - Requesting: http://10.0.0.47:8082/project/9ac06b05-44e8-4c97-8395-4fe74471b0e5 2024-08-27 10:02:29,910 - INFO - Validated that VN ctest-vn-46506311 is not found in API Server 2024-08-27 10:02:29,921 - DEBUG - VN ctest-vn-46506311 is not present in Agent 10.0.0.47 2024-08-27 10:02:29,922 - INFO - Validated that VN ctest-vn-46506311 is not in any agent 2024-08-27 10:02:29,938 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-46506311 info 2024-08-27 10:02:29,939 - INFO - Deleting VN ctest-vn-75369508 2024-08-27 10:02:30,054 - DEBUG - Response for deleting network () 2024-08-27 10:02:30,054 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/0fc6a793-c42b-460b-af16-8d2c8754be23 2024-08-27 10:02:30,062 - DEBUG - Response Code: 404 2024-08-27 10:02:30,062 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-08-27 10:02:30,069 - DEBUG - Requesting: http://10.0.0.47:8082/domain/5e658e76-e45e-4ce4-8ab4-5770df054920 2024-08-27 10:02:30,126 - DEBUG - Requesting: http://10.0.0.47:8082/project/9ac06b05-44e8-4c97-8395-4fe74471b0e5 2024-08-27 10:02:30,192 - INFO - Validated that VN ctest-vn-75369508 is not found in API Server 2024-08-27 10:02:30,204 - DEBUG - VN ctest-vn-75369508 is not present in Agent 10.0.0.47 2024-08-27 10:02:30,204 - INFO - Validated that VN ctest-vn-75369508 is not in any agent 2024-08-27 10:02:30,220 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-75369508 info 2024-08-27 10:02:30,474 - DEBUG - No XMPP flaps were noticed during the test
2024-08-27 10:02:30,474 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-08-27 10:02:30,474 - INFO - -------------------------------------------------------------------------------- 2024-08-27 10:02:31,164 - INFO - Deleted project: ctest-TestBasicPolicy-64148914, ID : 9ac06b05-44e8-4c97-8395-4fe74471b0e5