2024-10-19 18:25:38,721 - INFO - Domain Default found not creating 2024-10-19 18:25:38,903 - INFO - Project ctest-TestBasicPolicy-42835257 not found, creating it 2024-10-19 18:25:39,435 - INFO - Created Project:ctest-TestBasicPolicy-42835257, ID : 383eb63a-e155-47d8-af47-81c72c492956 2024-10-19 18:25:42,582 - INFO - ================================================================================ 2024-10-19 18:25:42,582 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-19 18:25:42,582 - 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-19 18:25:42,855 - DEBUG - Nothing to compare xmpp stats {'10.0.0.37': {'10.20.0.8': '0'}} with 2024-10-19 18:25:42,855 - INFO - Initial checks done. Running the testcase now 2024-10-19 18:25:42,855 - INFO - 2024-10-19 18:25:44,701 - DEBUG - Response for create_network : {'network': {'id': 'f7e75c80-faac-4dd7-9106-b9bd93e0432b', 'name': 'ctest-vn-26223864', 'tenant_id': '383eb63ae15547d8af4781c72c492956', 'project_id': '383eb63ae15547d8af4781c72c492956', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42835257', 'ctest-vn-26223864'], 'port_security_enabled': True, 'description': ''}} 2024-10-19 18:25:44,947 - DEBUG - Response for create_subnet : {'subnet': {'id': '7f1b1b84-36e7-4605-92bb-d71f64c5291b', 'name': '', 'tenant_id': '383eb63ae15547d8af4781c72c492956', 'network_id': 'f7e75c80-faac-4dd7-9106-b9bd93e0432b', 'ip_version': 4, 'cidr': '101.60.41.0/26', 'allocation_pools': [{'start': '101.60.41.2', 'end': '101.60.41.62'}], 'gateway_ip': '101.60.41.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '101.60.41.2', 'tags': [], 'project_id': '383eb63ae15547d8af4781c72c492956'}} 2024-10-19 18:25:44,973 - INFO - Created VN ctest-vn-26223864 2024-10-19 18:25:45,034 - DEBUG - VN ctest-vn-26223864 UUID is f7e75c80-faac-4dd7-9106-b9bd93e0432b 2024-10-19 18:25:45,393 - DEBUG - Response for create_network : {'network': {'id': '6763408f-66cb-4f2f-97a3-232397eda8fe', 'name': 'ctest-vn-60345186', 'tenant_id': '383eb63ae15547d8af4781c72c492956', 'project_id': '383eb63ae15547d8af4781c72c492956', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42835257', 'ctest-vn-60345186'], 'port_security_enabled': True, 'description': ''}} 2024-10-19 18:25:45,573 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a29258c4-5b75-45a4-8655-6128afe46d22', 'name': '', 'tenant_id': '383eb63ae15547d8af4781c72c492956', 'network_id': '6763408f-66cb-4f2f-97a3-232397eda8fe', 'ip_version': 4, 'cidr': '59.101.224.128/26', 'allocation_pools': [{'start': '59.101.224.130', 'end': '59.101.224.190'}], 'gateway_ip': '59.101.224.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '59.101.224.130', 'tags': [], 'project_id': '383eb63ae15547d8af4781c72c492956'}} 2024-10-19 18:25:45,605 - INFO - Created VN ctest-vn-60345186 2024-10-19 18:25:45,670 - DEBUG - VN ctest-vn-60345186 UUID is 6763408f-66cb-4f2f-97a3-232397eda8fe 2024-10-19 18:25:45,819 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-42835257:ctest-vn-26223864, 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-42835257:ctest-vn-60345186, 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-19 18:25:46,167 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f7e75c80-faac-4dd7-9106-b9bd93e0432b', 'name': 'ctest-vn-26223864', 'tenant_id': '383eb63ae15547d8af4781c72c492956', 'project_id': '383eb63ae15547d8af4781c72c492956', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7f1b1b84-36e7-4605-92bb-d71f64c5291b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42835257', 'ctest-vn-26223864'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42835257', 'ctest-policy-allow-all-11826759']], 'subnet_ipam': [{'subnet_cidr': '101.60.41.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-19 18:25:46,471 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6763408f-66cb-4f2f-97a3-232397eda8fe', 'name': 'ctest-vn-60345186', 'tenant_id': '383eb63ae15547d8af4781c72c492956', 'project_id': '383eb63ae15547d8af4781c72c492956', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a29258c4-5b75-45a4-8655-6128afe46d22'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42835257', 'ctest-vn-60345186'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42835257', 'ctest-policy-allow-all-11826759']], 'subnet_ipam': [{'subnet_cidr': '59.101.224.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-19 18:25:46,646 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-10-19 18:25:47,185 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-10-19 18:25:47,247 - DEBUG - Requesting: http://10.0.0.37:8082/domain/ec5f2401-1abc-42f0-94db-b65a9d2773a5 2024-10-19 18:25:47,267 - DEBUG - Requesting: http://10.0.0.37:8082/project/383eb63a-e155-47d8-af47-81c72c492956 2024-10-19 18:25:47,389 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/f7e75c80-faac-4dd7-9106-b9bd93e0432b 2024-10-19 18:25:47,409 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/f7e75c80-faac-4dd7-9106-b9bd93e0432b 2024-10-19 18:25:47,429 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/0995aa39-95b0-43b1-8727-aa8fddaf2afc 2024-10-19 18:25:47,442 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/0995aa39-95b0-43b1-8727-aa8fddaf2afc 2024-10-19 18:25:47,454 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/80081aa3-1d17-4461-a07e-650a5227d1d4 2024-10-19 18:25:47,469 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-19 18:25:47,469 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/f7e75c80-faac-4dd7-9106-b9bd93e0432b 2024-10-19 18:25:47,489 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/0995aa39-95b0-43b1-8727-aa8fddaf2afc 2024-10-19 18:25:47,521 - INFO - Verified VN network id 7 for VN f7e75c80-faac-4dd7-9106-b9bd93e0432b 2024-10-19 18:25:47,521 - INFO - Verifications in API Server for VN ctest-vn-26223864 passed 2024-10-19 18:25:47,522 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/f7e75c80-faac-4dd7-9106-b9bd93e0432b 2024-10-19 18:25:47,540 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/0995aa39-95b0-43b1-8727-aa8fddaf2afc 2024-10-19 18:25:47,551 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/0995aa39-95b0-43b1-8727-aa8fddaf2afc 2024-10-19 18:25:47,562 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/80081aa3-1d17-4461-a07e-650a5227d1d4 2024-10-19 18:25:47,579 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42835257:ctest-vn-26223864', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42835257', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17863348156019527127', 'uuid-lslong': '10450244209240720171'}, 'enable': 'true', 'created': '2024-10-19T18:25:44', 'last-modified': '2024-10-19T18:25:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.443283'} 2024-10-19 18:25:47,588 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-19 18:25:47,588 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26223864 passed 2024-10-19 18:25:47,588 - DEBUG - ====Verifying policy data for ctest-vn-26223864 in API_Server ====== 2024-10-19 18:25:47,588 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-10-19 18:25:47,601 - DEBUG - Requesting: http://10.0.0.37:8082/domain/ec5f2401-1abc-42f0-94db-b65a9d2773a5 2024-10-19 18:25:47,627 - DEBUG - Requesting: http://10.0.0.37:8082/project/383eb63a-e155-47d8-af47-81c72c492956 2024-10-19 18:25:47,719 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/f7e75c80-faac-4dd7-9106-b9bd93e0432b 2024-10-19 18:25:47,738 - DEBUG - ==>Verifying data for policy with id: 032383c4-ba3e-45a9-af4b-354959bb97a8, fqn: ['default-domain', 'ctest-TestBasicPolicy-42835257', 'ctest-policy-allow-all-11826759'] 2024-10-19 18:25:47,738 - INFO - VN ctest-vn-26223864 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-19 18:25:47,738 - DEBUG - Verifying the vn in opserver 2024-10-19 18:25:47,738 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42835257:ctest-vn-26223864 virtual network link through opserver 10.0.0.37 2024-10-19 18:25:47,738 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks 2024-10-19 18:25:48,096 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks 2024-10-19 18:25:48,187 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42835257:ctest-vn-26223864', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42835257:ctest-vn-26223864?flat'} 2024-10-19 18:25:48,187 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42835257:ctest-vn-26223864 is found in opserver 2024-10-19 18:25:48,201 - DEBUG - Do not have enough data to verify VN in agent 2024-10-19 18:25:48,208 - DEBUG - VRF ids for VN ctest-vn-26223864: {} 2024-10-19 18:25:48,208 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-10-19 18:25:48,215 - DEBUG - Requesting: http://10.0.0.37:8082/domain/ec5f2401-1abc-42f0-94db-b65a9d2773a5 2024-10-19 18:25:48,235 - DEBUG - Requesting: http://10.0.0.37:8082/project/383eb63a-e155-47d8-af47-81c72c492956 2024-10-19 18:25:48,336 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/6763408f-66cb-4f2f-97a3-232397eda8fe 2024-10-19 18:25:48,358 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/6763408f-66cb-4f2f-97a3-232397eda8fe 2024-10-19 18:25:48,375 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/1169cab2-1297-4bc8-ba19-2007cd96e005 2024-10-19 18:25:48,388 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/1169cab2-1297-4bc8-ba19-2007cd96e005 2024-10-19 18:25:48,403 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/acd4ee3b-b609-40bc-a7ab-4ef36b0f08c2 2024-10-19 18:25:48,427 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-19 18:25:48,428 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/6763408f-66cb-4f2f-97a3-232397eda8fe 2024-10-19 18:25:48,449 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/1169cab2-1297-4bc8-ba19-2007cd96e005 2024-10-19 18:25:48,479 - INFO - Verified VN network id 8 for VN 6763408f-66cb-4f2f-97a3-232397eda8fe 2024-10-19 18:25:48,479 - INFO - Verifications in API Server for VN ctest-vn-60345186 passed 2024-10-19 18:25:48,479 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/6763408f-66cb-4f2f-97a3-232397eda8fe 2024-10-19 18:25:48,496 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/1169cab2-1297-4bc8-ba19-2007cd96e005 2024-10-19 18:25:48,510 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/1169cab2-1297-4bc8-ba19-2007cd96e005 2024-10-19 18:25:48,532 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/acd4ee3b-b609-40bc-a7ab-4ef36b0f08c2 2024-10-19 18:25:48,552 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42835257:ctest-vn-60345186', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42835257', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7449869193250033455', 'uuid-lslong': '10926615756710717694'}, 'enable': 'true', 'created': '2024-10-19T18:25:45', 'last-modified': '2024-10-19T18:25:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.115518'} 2024-10-19 18:25:48,562 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-19 18:25:48,562 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60345186 passed 2024-10-19 18:25:48,563 - DEBUG - ====Verifying policy data for ctest-vn-60345186 in API_Server ====== 2024-10-19 18:25:48,563 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-10-19 18:25:48,573 - DEBUG - Requesting: http://10.0.0.37:8082/domain/ec5f2401-1abc-42f0-94db-b65a9d2773a5 2024-10-19 18:25:48,590 - DEBUG - Requesting: http://10.0.0.37:8082/project/383eb63a-e155-47d8-af47-81c72c492956 2024-10-19 18:25:48,756 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/6763408f-66cb-4f2f-97a3-232397eda8fe 2024-10-19 18:25:48,793 - DEBUG - ==>Verifying data for policy with id: 032383c4-ba3e-45a9-af4b-354959bb97a8, fqn: ['default-domain', 'ctest-TestBasicPolicy-42835257', 'ctest-policy-allow-all-11826759'] 2024-10-19 18:25:48,794 - INFO - VN ctest-vn-60345186 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-19 18:25:48,794 - DEBUG - Verifying the vn in opserver 2024-10-19 18:25:48,794 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42835257:ctest-vn-60345186 virtual network link through opserver 10.0.0.37 2024-10-19 18:25:48,794 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks 2024-10-19 18:25:48,810 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42835257:ctest-vn-60345186', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42835257:ctest-vn-60345186?flat'} 2024-10-19 18:25:48,810 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42835257:ctest-vn-60345186 is found in opserver 2024-10-19 18:25:48,827 - DEBUG - Do not have enough data to verify VN in agent 2024-10-19 18:25:48,835 - DEBUG - VRF ids for VN ctest-vn-60345186: {} 2024-10-19 18:25:48,911 - DEBUG - Services list from nova: [, , ] 2024-10-19 18:25:50,332 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2119-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2119-1) 2024-10-19 18:25:53,315 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2119-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2119-1) 2024-10-19 18:25:53,316 - INFO - Waiting for VM ctest-TestBasicPolicy-42835257-09022826 to be up.. 2024-10-19 18:25:53,462 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-19 18:25:58,567 - DEBUG - VM is in ACTIVE state now 2024-10-19 18:25:58,567 - INFO - VM name : ctest-TestBasicPolicy-42835257-09022826 2024-10-19 18:25:58,665 - DEBUG - VM ctest-TestBasicPolicy-42835257-09022826 ID is e8072f53-0583-4b4c-96da-f7d44620ef85 2024-10-19 18:25:58,705 - DEBUG - VM ctest-TestBasicPolicy-42835257-09022826 launched on Node cn-jenkins-deploy-platform-ansible-os-2119-1 2024-10-19 18:25:58,821 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/e8072f53-0583-4b4c-96da-f7d44620ef85 2024-10-19 18:25:58,836 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine-interface/20fdced2-5f45-4b1c-83c1-f31e5a8af834 2024-10-19 18:26:02,132 - 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 1026ms') 2024-10-19 18:26:02,132 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-42835257-09022826 failed! 2024-10-19 18:26:02,198 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-42835257:ctest-vn-26223864 is 101.60.41.1 and allocation pool is NOT set 2024-10-19 18:26:06,297 - 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=2 ttl=63 time=4.85 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1032ms\r\nrtt min/avg/max/mdev = 4.851/4.851/4.851/0.000 ms') 2024-10-19 18:26:06,297 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-42835257-09022826 passed 2024-10-19 18:26:06,462 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-19 18:26:06,462 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-42835257-09022826, IP 101.60.41.3, Port 22 2024-10-19 18:26:06,637 - DEBUG - VM ctest-TestBasicPolicy-42835257-09022826 is ready for SSH connections 2024-10-19 18:26:06,637 - INFO - Waiting for VM ctest-TestBasicPolicy-42835257-47964520 to be up.. 2024-10-19 18:26:06,758 - DEBUG - VM is in ACTIVE state now 2024-10-19 18:26:06,758 - INFO - VM name : ctest-TestBasicPolicy-42835257-47964520 2024-10-19 18:26:06,866 - DEBUG - VM ctest-TestBasicPolicy-42835257-47964520 ID is 29308d3c-bdf6-41b2-8569-ddf083a8677b 2024-10-19 18:26:06,866 - DEBUG - VM ctest-TestBasicPolicy-42835257-47964520 launched on Node cn-jenkins-deploy-platform-ansible-os-2119-1 2024-10-19 18:26:06,962 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine/29308d3c-bdf6-41b2-8569-ddf083a8677b 2024-10-19 18:26:06,980 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-machine-interface/02e7f329-2255-4bc9-8bf3-43dfea9f1423 2024-10-19 18:26:08,265 - 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.58 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.487 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.487/2.032/3.577/1.545 ms') 2024-10-19 18:26:08,265 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-42835257-47964520 passed 2024-10-19 18:26:08,426 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-19 18:26:08,426 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-42835257-47964520, IP 59.101.224.131, Port 22 2024-10-19 18:26:08,592 - DEBUG - VM ctest-TestBasicPolicy-42835257-47964520 is ready for SSH connections 2024-10-19 18:26:08,592 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-19 18:26:08,593 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 59.101.224.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.37, gateway password: c0ntrail123 2024-10-19 18:26:08,593 - DEBUG - ping -s 56 -c 3 -W 1 59.101.224.131 2024-10-19 18:26:12,357 - DEBUG - PING 59.101.224.131 (59.101.224.131): 56 data bytes 64 bytes from 59.101.224.131: seq=0 ttl=63 time=3.770 ms 64 bytes from 59.101.224.131: seq=1 ttl=63 time=1.197 ms 64 bytes from 59.101.224.131: seq=2 ttl=63 time=1.179 ms --- 59.101.224.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.179/2.048/3.770 ms 2024-10-19 18:26:12,358 - INFO - Ping to IP 59.101.224.131 from VM ctest-TestBasicPolicy-42835257-09022826 passed 2024-10-19 18:26:12,562 - DEBUG - Policy Update Response {"network-policy": {"uuid": "032383c4-ba3e-45a9-af4b-354959bb97a8", "href": "http://10.0.0.37:8082/network-policy/032383c4-ba3e-45a9-af4b-354959bb97a8"}} 2024-10-19 18:26:12,562 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-19 18:26:12,562 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 59.101.224.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.37, gateway password: c0ntrail123 2024-10-19 18:26:12,562 - DEBUG - ping -s 56 -c 3 -W 1 59.101.224.131 2024-10-19 18:26:15,796 - DEBUG - PING 59.101.224.131 (59.101.224.131): 56 data bytes 64 bytes from 59.101.224.131: seq=0 ttl=63 time=1.828 ms --- 59.101.224.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.828/1.828/1.828 ms 2024-10-19 18:26:15,796 - WARNING - Ping to IP 59.101.224.131 from VM ctest-TestBasicPolicy-42835257-09022826 failed 2024-10-19 18:26:15,797 - INFO - Deleting VM ctest-TestBasicPolicy-42835257-47964520 2024-10-19 18:26:15,879 - INFO - Deleting VM ctest-TestBasicPolicy-42835257-09022826 2024-10-19 18:26:16,412 - INFO - Deleted policy ctest-policy-allow-all-11826759 2024-10-19 18:26:16,413 - INFO - Deleting VN ctest-vn-60345186 2024-10-19 18:26:16,473 - DEBUG - VN 6763408f-66cb-4f2f-97a3-232397eda8fe still in use: Unable to complete operation on network 6763408f-66cb-4f2f-97a3-232397eda8fe. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-2b176d55-aee9-443d-9dae-4ffeea11d199'] 2024-10-19 18:26:16,473 - WARNING - Deleting VN ctest-vn-60345186 failed..Will retry 2024-10-19 18:26:18,627 - DEBUG - Response for deleting network () 2024-10-19 18:26:18,627 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/1169cab2-1297-4bc8-ba19-2007cd96e005 2024-10-19 18:26:18,637 - DEBUG - Response Code: 404 2024-10-19 18:26:18,637 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-10-19 18:26:18,648 - DEBUG - Requesting: http://10.0.0.37:8082/domain/ec5f2401-1abc-42f0-94db-b65a9d2773a5 2024-10-19 18:26:18,707 - DEBUG - Requesting: http://10.0.0.37:8082/project/383eb63a-e155-47d8-af47-81c72c492956 2024-10-19 18:26:18,796 - INFO - Validated that VN ctest-vn-60345186 is not found in API Server 2024-10-19 18:26:18,810 - DEBUG - VN ctest-vn-60345186 is not present in Agent 10.0.0.37 2024-10-19 18:26:18,810 - INFO - Validated that VN ctest-vn-60345186 is not in any agent 2024-10-19 18:26:18,832 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-60345186 info 2024-10-19 18:26:18,832 - INFO - Deleting VN ctest-vn-26223864 2024-10-19 18:26:18,990 - DEBUG - Response for deleting network () 2024-10-19 18:26:18,991 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/0995aa39-95b0-43b1-8727-aa8fddaf2afc 2024-10-19 18:26:18,998 - DEBUG - Response Code: 404 2024-10-19 18:26:18,998 - DEBUG - Requesting: http://10.0.0.37:8082/domains 2024-10-19 18:26:19,004 - DEBUG - Requesting: http://10.0.0.37:8082/domain/ec5f2401-1abc-42f0-94db-b65a9d2773a5 2024-10-19 18:26:19,065 - DEBUG - Requesting: http://10.0.0.37:8082/project/383eb63a-e155-47d8-af47-81c72c492956 2024-10-19 18:26:19,160 - INFO - Validated that VN ctest-vn-26223864 is not found in API Server 2024-10-19 18:26:19,175 - DEBUG - VN ctest-vn-26223864 is not present in Agent 10.0.0.37 2024-10-19 18:26:19,175 - INFO - Validated that VN ctest-vn-26223864 is not in any agent 2024-10-19 18:26:19,202 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-26223864 info 2024-10-19 18:26:20,447 - DEBUG - No XMPP flaps were noticed during the test
2024-10-19 18:26:20,447 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:38]
2024-10-19 18:26:20,447 - INFO - -------------------------------------------------------------------------------- 2024-10-19 18:26:22,535 - INFO - Deleted project: ctest-TestBasicPolicy-42835257, ID : 383eb63a-e155-47d8-af47-81c72c492956