2024-08-20 08:26:27,897 - INFO - Domain Default found not creating 2024-08-20 08:26:28,047 - INFO - Project ctest-TestBasicPolicy-80855412 not found, creating it 2024-08-20 08:26:28,512 - INFO - Created Project:ctest-TestBasicPolicy-80855412, ID : ca467f92-c0bc-414a-8c62-51cba3e466b4 2024-08-20 08:26:30,008 - INFO - ================================================================================ 2024-08-20 08:26:30,008 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-20 08:26:30,008 - 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-20 08:26:30,269 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.21': '0'}} with 2024-08-20 08:26:30,269 - INFO - Initial checks done. Running the testcase now 2024-08-20 08:26:30,270 - INFO - 2024-08-20 08:26:30,874 - DEBUG - Response for create_network : {'network': {'id': 'cc1395e8-84a1-44b9-8f45-6bc53486bfdc', 'name': 'ctest-vn-96600254', 'tenant_id': 'ca467f92c0bc414a8c6251cba3e466b4', 'project_id': 'ca467f92c0bc414a8c6251cba3e466b4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80855412', 'ctest-vn-96600254'], 'port_security_enabled': True, 'description': ''}} 2024-08-20 08:26:31,041 - DEBUG - Response for create_subnet : {'subnet': {'id': '55c28d58-5519-4e38-8608-9077835ecd1d', 'name': '', 'tenant_id': 'ca467f92c0bc414a8c6251cba3e466b4', 'network_id': 'cc1395e8-84a1-44b9-8f45-6bc53486bfdc', 'ip_version': 4, 'cidr': '180.224.130.192/26', 'allocation_pools': [{'start': '180.224.130.194', 'end': '180.224.130.254'}], 'gateway_ip': '180.224.130.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '180.224.130.194', 'tags': [], 'project_id': 'ca467f92c0bc414a8c6251cba3e466b4'}} 2024-08-20 08:26:31,061 - INFO - Created VN ctest-vn-96600254 2024-08-20 08:26:31,115 - DEBUG - VN ctest-vn-96600254 UUID is cc1395e8-84a1-44b9-8f45-6bc53486bfdc 2024-08-20 08:26:31,413 - DEBUG - Response for create_network : {'network': {'id': 'b462079d-8822-4564-895c-75a8be88298e', 'name': 'ctest-vn-57334648', 'tenant_id': 'ca467f92c0bc414a8c6251cba3e466b4', 'project_id': 'ca467f92c0bc414a8c6251cba3e466b4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80855412', 'ctest-vn-57334648'], 'port_security_enabled': True, 'description': ''}} 2024-08-20 08:26:31,622 - DEBUG - Response for create_subnet : {'subnet': {'id': '060f69f3-f243-43f9-94ae-3245a9c686e5', 'name': '', 'tenant_id': 'ca467f92c0bc414a8c6251cba3e466b4', 'network_id': 'b462079d-8822-4564-895c-75a8be88298e', 'ip_version': 4, 'cidr': '187.172.81.192/26', 'allocation_pools': [{'start': '187.172.81.194', 'end': '187.172.81.254'}], 'gateway_ip': '187.172.81.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '187.172.81.194', 'tags': [], 'project_id': 'ca467f92c0bc414a8c6251cba3e466b4'}} 2024-08-20 08:26:31,642 - INFO - Created VN ctest-vn-57334648 2024-08-20 08:26:31,691 - DEBUG - VN ctest-vn-57334648 UUID is b462079d-8822-4564-895c-75a8be88298e 2024-08-20 08:26:31,807 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-80855412:ctest-vn-96600254, 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-80855412:ctest-vn-57334648, 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-20 08:26:32,116 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cc1395e8-84a1-44b9-8f45-6bc53486bfdc', 'name': 'ctest-vn-96600254', 'tenant_id': 'ca467f92c0bc414a8c6251cba3e466b4', 'project_id': 'ca467f92c0bc414a8c6251cba3e466b4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['55c28d58-5519-4e38-8608-9077835ecd1d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80855412', 'ctest-vn-96600254'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80855412', 'ctest-policy-allow-all-44521312']], 'subnet_ipam': [{'subnet_cidr': '180.224.130.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-20 08:26:32,358 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b462079d-8822-4564-895c-75a8be88298e', 'name': 'ctest-vn-57334648', 'tenant_id': 'ca467f92c0bc414a8c6251cba3e466b4', 'project_id': 'ca467f92c0bc414a8c6251cba3e466b4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['060f69f3-f243-43f9-94ae-3245a9c686e5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80855412', 'ctest-vn-57334648'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80855412', 'ctest-policy-allow-all-44521312']], 'subnet_ipam': [{'subnet_cidr': '187.172.81.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-20 08:26:32,515 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-08-20 08:26:32,805 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-08-20 08:26:32,835 - DEBUG - Requesting: http://10.0.0.17:8082/domain/f2a13a47-84e5-4c01-9ba1-33fc0ee27d16 2024-08-20 08:26:32,849 - DEBUG - Requesting: http://10.0.0.17:8082/project/ca467f92-c0bc-414a-8c62-51cba3e466b4 2024-08-20 08:26:32,920 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/cc1395e8-84a1-44b9-8f45-6bc53486bfdc 2024-08-20 08:26:32,930 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/cc1395e8-84a1-44b9-8f45-6bc53486bfdc 2024-08-20 08:26:32,938 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/53c39b98-28e0-4f2c-a668-638ad2a451da 2024-08-20 08:26:32,945 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/53c39b98-28e0-4f2c-a668-638ad2a451da 2024-08-20 08:26:32,952 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/d81d1e00-cefd-44c0-a7f7-e166b8a7e820 2024-08-20 08:26:32,959 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-20 08:26:32,959 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/cc1395e8-84a1-44b9-8f45-6bc53486bfdc 2024-08-20 08:26:32,967 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/53c39b98-28e0-4f2c-a668-638ad2a451da 2024-08-20 08:26:32,981 - INFO - Verified VN network id 9 for VN cc1395e8-84a1-44b9-8f45-6bc53486bfdc 2024-08-20 08:26:32,981 - INFO - Verifications in API Server for VN ctest-vn-96600254 passed 2024-08-20 08:26:32,981 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/cc1395e8-84a1-44b9-8f45-6bc53486bfdc 2024-08-20 08:26:32,989 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/53c39b98-28e0-4f2c-a668-638ad2a451da 2024-08-20 08:26:32,996 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/53c39b98-28e0-4f2c-a668-638ad2a451da 2024-08-20 08:26:33,003 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/d81d1e00-cefd-44c0-a7f7-e166b8a7e820 2024-08-20 08:26:33,015 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80855412:ctest-vn-96600254', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80855412', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14705262034184914105', 'uuid-lslong': '10323776215550705628'}, 'enable': 'true', 'created': '2024-08-20T08:26:30', 'last-modified': '2024-08-20T08:26:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.931301'} 2024-08-20 08:26:33,022 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-20 08:26:33,022 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96600254 passed 2024-08-20 08:26:33,022 - DEBUG - ====Verifying policy data for ctest-vn-96600254 in API_Server ====== 2024-08-20 08:26:33,022 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-08-20 08:26:33,029 - DEBUG - Requesting: http://10.0.0.17:8082/domain/f2a13a47-84e5-4c01-9ba1-33fc0ee27d16 2024-08-20 08:26:33,041 - DEBUG - Requesting: http://10.0.0.17:8082/project/ca467f92-c0bc-414a-8c62-51cba3e466b4 2024-08-20 08:26:33,115 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/cc1395e8-84a1-44b9-8f45-6bc53486bfdc 2024-08-20 08:26:33,123 - DEBUG - ==>Verifying data for policy with id: 9187666c-d6d0-4566-8566-b71858bb7cd2, fqn: ['default-domain', 'ctest-TestBasicPolicy-80855412', 'ctest-policy-allow-all-44521312'] 2024-08-20 08:26:33,123 - INFO - VN ctest-vn-96600254 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-20 08:26:33,124 - DEBUG - Verifying the vn in opserver 2024-08-20 08:26:33,124 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80855412:ctest-vn-96600254 virtual network link through opserver 10.0.0.17 2024-08-20 08:26:33,124 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks 2024-08-20 08:26:33,414 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks 2024-08-20 08:26:33,474 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80855412:ctest-vn-96600254', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80855412:ctest-vn-96600254?flat'} 2024-08-20 08:26:33,474 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80855412:ctest-vn-96600254 is found in opserver 2024-08-20 08:26:33,485 - DEBUG - Do not have enough data to verify VN in agent 2024-08-20 08:26:33,490 - DEBUG - VRF ids for VN ctest-vn-96600254: {} 2024-08-20 08:26:33,490 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-08-20 08:26:33,497 - DEBUG - Requesting: http://10.0.0.17:8082/domain/f2a13a47-84e5-4c01-9ba1-33fc0ee27d16 2024-08-20 08:26:33,509 - DEBUG - Requesting: http://10.0.0.17:8082/project/ca467f92-c0bc-414a-8c62-51cba3e466b4 2024-08-20 08:26:33,577 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/b462079d-8822-4564-895c-75a8be88298e 2024-08-20 08:26:33,588 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/b462079d-8822-4564-895c-75a8be88298e 2024-08-20 08:26:33,596 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/535e33c1-f30e-42bc-9cac-a5ca4b87ccd7 2024-08-20 08:26:33,604 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/535e33c1-f30e-42bc-9cac-a5ca4b87ccd7 2024-08-20 08:26:33,611 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/81892981-a183-4071-a003-f8bd137b25b0 2024-08-20 08:26:33,617 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-20 08:26:33,617 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/b462079d-8822-4564-895c-75a8be88298e 2024-08-20 08:26:33,625 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/535e33c1-f30e-42bc-9cac-a5ca4b87ccd7 2024-08-20 08:26:33,638 - INFO - Verified VN network id 10 for VN b462079d-8822-4564-895c-75a8be88298e 2024-08-20 08:26:33,638 - INFO - Verifications in API Server for VN ctest-vn-57334648 passed 2024-08-20 08:26:33,638 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/b462079d-8822-4564-895c-75a8be88298e 2024-08-20 08:26:33,645 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/535e33c1-f30e-42bc-9cac-a5ca4b87ccd7 2024-08-20 08:26:33,653 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/535e33c1-f30e-42bc-9cac-a5ca4b87ccd7 2024-08-20 08:26:33,660 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/81892981-a183-4071-a003-f8bd137b25b0 2024-08-20 08:26:33,673 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80855412:ctest-vn-57334648', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80855412', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12997959847719880036', 'uuid-lslong': '9897915448665057678'}, 'enable': 'true', 'created': '2024-08-20T08:26:31', 'last-modified': '2024-08-20T08:26:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.343532'} 2024-08-20 08:26:33,680 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-20 08:26:33,680 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57334648 passed 2024-08-20 08:26:33,680 - DEBUG - ====Verifying policy data for ctest-vn-57334648 in API_Server ====== 2024-08-20 08:26:33,680 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-08-20 08:26:33,686 - DEBUG - Requesting: http://10.0.0.17:8082/domain/f2a13a47-84e5-4c01-9ba1-33fc0ee27d16 2024-08-20 08:26:33,698 - DEBUG - Requesting: http://10.0.0.17:8082/project/ca467f92-c0bc-414a-8c62-51cba3e466b4 2024-08-20 08:26:33,766 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/b462079d-8822-4564-895c-75a8be88298e 2024-08-20 08:26:33,774 - DEBUG - ==>Verifying data for policy with id: 9187666c-d6d0-4566-8566-b71858bb7cd2, fqn: ['default-domain', 'ctest-TestBasicPolicy-80855412', 'ctest-policy-allow-all-44521312'] 2024-08-20 08:26:33,774 - INFO - VN ctest-vn-57334648 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-20 08:26:33,774 - DEBUG - Verifying the vn in opserver 2024-08-20 08:26:33,775 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80855412:ctest-vn-57334648 virtual network link through opserver 10.0.0.17 2024-08-20 08:26:33,775 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks 2024-08-20 08:26:33,787 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80855412:ctest-vn-57334648', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80855412:ctest-vn-57334648?flat'} 2024-08-20 08:26:33,787 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80855412:ctest-vn-57334648 is found in opserver 2024-08-20 08:26:33,798 - DEBUG - Do not have enough data to verify VN in agent 2024-08-20 08:26:33,804 - DEBUG - VRF ids for VN ctest-vn-57334648: {} 2024-08-20 08:26:33,860 - DEBUG - Services list from nova: [, , ] 2024-08-20 08:26:34,895 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1672-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1672-1) 2024-08-20 08:26:36,205 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1672-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1672-1) 2024-08-20 08:26:36,205 - INFO - Waiting for VM ctest-TestBasicPolicy-80855412-32965745 to be up.. 2024-08-20 08:26:36,404 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-20 08:26:41,488 - DEBUG - VM is in ACTIVE state now 2024-08-20 08:26:41,488 - INFO - VM name : ctest-TestBasicPolicy-80855412-32965745 2024-08-20 08:26:41,560 - DEBUG - VM ctest-TestBasicPolicy-80855412-32965745 ID is 9443b279-5c33-4f64-9ab5-3394d65deb06 2024-08-20 08:26:41,577 - DEBUG - VM ctest-TestBasicPolicy-80855412-32965745 launched on Node cn-jenkins-deploy-platform-ansible-os-1672-1 2024-08-20 08:26:41,654 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/9443b279-5c33-4f64-9ab5-3394d65deb06 2024-08-20 08:26:41,663 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/9d6dfcf3-1094-4074-8784-449984726d47 2024-08-20 08:26:44,905 - 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 1003ms') 2024-08-20 08:26:44,905 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-80855412-32965745 failed! 2024-08-20 08:26:44,959 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-80855412:ctest-vn-96600254 is 180.224.130.193 and allocation pool is NOT set 2024-08-20 08:26:47,021 - 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.61 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.05 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 = 1.051/2.328/3.605/1.277 ms') 2024-08-20 08:26:47,021 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-80855412-32965745 passed 2024-08-20 08:26:47,171 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-20 08:26:47,171 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-80855412-32965745, IP 180.224.130.195, Port 22 2024-08-20 08:26:47,326 - DEBUG - VM ctest-TestBasicPolicy-80855412-32965745 is ready for SSH connections 2024-08-20 08:26:47,326 - INFO - Waiting for VM ctest-TestBasicPolicy-80855412-06639980 to be up.. 2024-08-20 08:26:47,410 - DEBUG - VM is in ACTIVE state now 2024-08-20 08:26:47,410 - INFO - VM name : ctest-TestBasicPolicy-80855412-06639980 2024-08-20 08:26:47,493 - DEBUG - VM ctest-TestBasicPolicy-80855412-06639980 ID is be724ef7-9048-48c8-83ef-caf6bb0bb622 2024-08-20 08:26:47,493 - DEBUG - VM ctest-TestBasicPolicy-80855412-06639980 launched on Node cn-jenkins-deploy-platform-ansible-os-1672-1 2024-08-20 08:26:47,567 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine/be724ef7-9048-48c8-83ef-caf6bb0bb622 2024-08-20 08:26:47,577 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-machine-interface/078b7879-dd1e-4a2d-9bda-15094faea11e 2024-08-20 08:26:48,817 - 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.40 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.314 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.314/1.356/2.398/1.042 ms') 2024-08-20 08:26:48,817 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-80855412-06639980 passed 2024-08-20 08:26:48,971 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-20 08:26:48,971 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-80855412-06639980, IP 187.172.81.195, Port 22 2024-08-20 08:26:49,144 - DEBUG - VM ctest-TestBasicPolicy-80855412-06639980 is ready for SSH connections 2024-08-20 08:26:49,144 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-20 08:26:49,144 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 187.172.81.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2024-08-20 08:26:49,145 - DEBUG - ping -s 56 -c 3 -W 1 187.172.81.195 2024-08-20 08:26:53,097 - DEBUG - PING 187.172.81.195 (187.172.81.195): 56 data bytes 64 bytes from 187.172.81.195: seq=0 ttl=63 time=3.950 ms 64 bytes from 187.172.81.195: seq=1 ttl=63 time=0.744 ms 64 bytes from 187.172.81.195: seq=2 ttl=63 time=0.781 ms --- 187.172.81.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.744/1.825/3.950 ms 2024-08-20 08:26:53,097 - INFO - Ping to IP 187.172.81.195 from VM ctest-TestBasicPolicy-80855412-32965745 passed 2024-08-20 08:26:53,278 - DEBUG - Policy Update Response {"network-policy": {"uuid": "9187666c-d6d0-4566-8566-b71858bb7cd2", "href": "http://10.0.0.17:8082/network-policy/9187666c-d6d0-4566-8566-b71858bb7cd2"}} 2024-08-20 08:26:53,279 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-20 08:26:53,279 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 187.172.81.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.17, gateway password: c0ntrail123 2024-08-20 08:26:53,279 - DEBUG - ping -s 56 -c 3 -W 1 187.172.81.195 2024-08-20 08:26:56,483 - DEBUG - PING 187.172.81.195 (187.172.81.195): 56 data bytes 64 bytes from 187.172.81.195: seq=0 ttl=63 time=1.285 ms --- 187.172.81.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.285/1.285/1.285 ms 2024-08-20 08:26:56,483 - WARNING - Ping to IP 187.172.81.195 from VM ctest-TestBasicPolicy-80855412-32965745 failed 2024-08-20 08:26:56,483 - INFO - Deleting VM ctest-TestBasicPolicy-80855412-06639980 2024-08-20 08:26:56,557 - INFO - Deleting VM ctest-TestBasicPolicy-80855412-32965745 2024-08-20 08:26:56,961 - INFO - Deleted policy ctest-policy-allow-all-44521312 2024-08-20 08:26:56,961 - INFO - Deleting VN ctest-vn-57334648 2024-08-20 08:26:57,006 - DEBUG - VN b462079d-8822-4564-895c-75a8be88298e still in use: Unable to complete operation on network b462079d-8822-4564-895c-75a8be88298e. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-97dbc27a-b14b-408f-ade6-93006fcbc886'] 2024-08-20 08:26:57,006 - WARNING - Deleting VN ctest-vn-57334648 failed..Will retry 2024-08-20 08:26:59,116 - DEBUG - Response for deleting network () 2024-08-20 08:26:59,116 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/535e33c1-f30e-42bc-9cac-a5ca4b87ccd7 2024-08-20 08:26:59,125 - DEBUG - Response Code: 404 2024-08-20 08:26:59,126 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-08-20 08:26:59,133 - DEBUG - Requesting: http://10.0.0.17:8082/domain/f2a13a47-84e5-4c01-9ba1-33fc0ee27d16 2024-08-20 08:26:59,193 - DEBUG - Requesting: http://10.0.0.17:8082/project/ca467f92-c0bc-414a-8c62-51cba3e466b4 2024-08-20 08:26:59,264 - INFO - Validated that VN ctest-vn-57334648 is not found in API Server 2024-08-20 08:26:59,275 - DEBUG - VN ctest-vn-57334648 is not present in Agent 10.0.0.17 2024-08-20 08:26:59,275 - INFO - Validated that VN ctest-vn-57334648 is not in any agent 2024-08-20 08:26:59,290 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-57334648 info 2024-08-20 08:26:59,290 - INFO - Deleting VN ctest-vn-96600254 2024-08-20 08:26:59,413 - DEBUG - Response for deleting network () 2024-08-20 08:26:59,413 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/53c39b98-28e0-4f2c-a668-638ad2a451da 2024-08-20 08:26:59,422 - DEBUG - Response Code: 404 2024-08-20 08:26:59,422 - DEBUG - Requesting: http://10.0.0.17:8082/domains 2024-08-20 08:26:59,433 - DEBUG - Requesting: http://10.0.0.17:8082/domain/f2a13a47-84e5-4c01-9ba1-33fc0ee27d16 2024-08-20 08:26:59,492 - DEBUG - Requesting: http://10.0.0.17:8082/project/ca467f92-c0bc-414a-8c62-51cba3e466b4 2024-08-20 08:26:59,565 - INFO - Validated that VN ctest-vn-96600254 is not found in API Server 2024-08-20 08:26:59,576 - DEBUG - VN ctest-vn-96600254 is not present in Agent 10.0.0.17 2024-08-20 08:26:59,576 - INFO - Validated that VN ctest-vn-96600254 is not in any agent 2024-08-20 08:26:59,594 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-96600254 info 2024-08-20 08:26:59,849 - DEBUG - No XMPP flaps were noticed during the test 2024-08-20 08:26:59,849 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:29] 2024-08-20 08:26:59,849 - INFO - -------------------------------------------------------------------------------- 2024-08-20 08:27:00,519 - INFO - Deleted project: ctest-TestBasicPolicy-80855412, ID : ca467f92-c0bc-414a-8c62-51cba3e466b4